summaryrefslogtreecommitdiff
path: root/public/app/controllers/Office.php
diff options
context:
space:
mode:
authorGeo Halkiadakis <gchalkiadakis@sklavenitis.co.gr>2023-05-22 18:28:59 +0300
committerGeo Halkiadakis <gchalkiadakis@sklavenitis.co.gr>2023-05-22 18:28:59 +0300
commit8f947db6515f2ff2b6b2cd8abaedf297745c2176 (patch)
tree172abfb15142ea7b53a4bc99145453be30e375b8 /public/app/controllers/Office.php
parentd827d5345f778bb9a481e916666c540801108d18 (diff)
downloadgyraf1gov-8f947db6515f2ff2b6b2cd8abaedf297745c2176.tar.gz
gyraf1gov-8f947db6515f2ff2b6b2cd8abaedf297745c2176.tar.bz2
gyraf1gov-8f947db6515f2ff2b6b2cd8abaedf297745c2176.zip
working onto application form
Diffstat (limited to 'public/app/controllers/Office.php')
-rw-r--r--public/app/controllers/Office.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/public/app/controllers/Office.php b/public/app/controllers/Office.php
index 5e8af75..d0c10b9 100644
--- a/public/app/controllers/Office.php
+++ b/public/app/controllers/Office.php
@@ -144,8 +144,8 @@ class Office {
switch ($petition_tag) { // route to specific type of petition
- case 'common':
- self::render_common_petition(['user' => $user]);
+ case 'application':
+ self::render_application_form(['user' => $user]);
break;
case 'penalty':
@@ -160,18 +160,18 @@ class Office {
}
- private static function render_common_petition($opts)
+ private static function render_application_form($opts)
{
$user_id = $opts['user']->getID();
- $form_setup = json_decode(json_encode(COMMON_REQUEST_FORM, JSON_UNESCAPED_UNICODE));
+ $form_setup = json_decode(json_encode(APPLICATION_FORM, JSON_UNESCAPED_UNICODE));
// get Form's HTML and Jsvascript
$form = JsonToForm::json_form($form_setup, [
['name' => 'user_id', 'value' => $user_id] // pass user identity
]);
- Render::view('templates/common-form', ['form' => $form]);
+ Render::view('templates/application', ['form' => $form]);
}
private static function render_penalty_form($opts)