summaryrefslogtreecommitdiff
path: root/public/app/controllers/Office.php
diff options
context:
space:
mode:
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)