summaryrefslogtreecommitdiff
path: root/public/app/controllers/Auth.php
diff options
context:
space:
mode:
authorGeorge Halkiadakis <gchalkiadakis@sklavenitis.co.gr>2023-05-25 09:30:37 +0300
committerGeorge Halkiadakis <gchalkiadakis@sklavenitis.co.gr>2023-05-25 09:30:37 +0300
commita3dc1f0f55003ca2fb325ed2e3f974094f6cad2e (patch)
tree09aa5f8208460c5c2883209d7139d59ba2d623e3 /public/app/controllers/Auth.php
parent2b1f4aed56c5bfbf014f3f871e9dcc336b5a31b7 (diff)
downloadgyraf1gov-a3dc1f0f55003ca2fb325ed2e3f974094f6cad2e.tar.gz
gyraf1gov-a3dc1f0f55003ca2fb325ed2e3f974094f6cad2e.tar.bz2
gyraf1gov-a3dc1f0f55003ca2fb325ed2e3f974094f6cad2e.zip
break form scripts in parts; first pdf example
Diffstat (limited to 'public/app/controllers/Auth.php')
-rw-r--r--public/app/controllers/Auth.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/public/app/controllers/Auth.php b/public/app/controllers/Auth.php
index d52b6c9..e2fe989 100644
--- a/public/app/controllers/Auth.php
+++ b/public/app/controllers/Auth.php
@@ -50,6 +50,7 @@ class Auth {
->set('first_name', $record['first_name'])
->set('last_name', $record['last_name'])
->set('father_name', $record['father_name'])
+ ->set('phone', $record['phone'])
->set('email', $record['email'])
->set('sector', $record['sector'])
->set('position', $record['position'])
@@ -172,7 +173,7 @@ class Auth {
$form_setup->form[$key]->options = $gendered_position;
// attach default values
- $form_setup->defaults->values = $user;
+ $form_setup->defaults = $user;
// get Form's HTML and Jsvascript
$form = JsonToForm::json_form($form_setup, [
@@ -180,7 +181,7 @@ class Auth {
['name' => 'id', 'value' => $user->id],
['name' => 'invitation', 'value' => $user->invitation]
- ]);
+ ]); // print_r($form_setup); die();
Render::view('user/invitation', [
'form' => $form,
@@ -231,6 +232,7 @@ class Auth {
'first_name' => $user->get('first_name'),
'last_name' => $user->get('last_name'),
'father_name' => $user->get('father_name'),
+ 'phone' => $user->get('phone'),
'email' => $user->get('email'),
'sector' => $user->get('sector'),
'position' => $user->get('position'),