summaryrefslogtreecommitdiff
path: root/public/app/config/setup_application.php
diff options
context:
space:
mode:
Diffstat (limited to 'public/app/config/setup_application.php')
-rw-r--r--public/app/config/setup_application.php70
1 files changed, 70 insertions, 0 deletions
diff --git a/public/app/config/setup_application.php b/public/app/config/setup_application.php
index 068c8a8..f56cc1a 100644
--- a/public/app/config/setup_application.php
+++ b/public/app/config/setup_application.php
@@ -283,6 +283,76 @@ define('REGISTRATION_FORM', [
]
]);
+
+
+define('USER_PROPERTIES_FORM', [
+ 'defaults' => [
+ 'outer_class' => 'col-12',
+ 'inner_class' => 'form-control',
+ 'type' => 'text',
+ 'source' => '\app\controllers\User::current'
+ ],
+ 'form' => [
+ [
+ 'name' => 'first_name',
+ 'label' => 'Όνομα',
+ 'attributes' => ['required', 'auto']
+ ],
+ [
+ 'name' => 'last_name',
+ 'label' => 'Επίθετο',
+ 'attributes' => ['required', 'auto']
+ ],
+ [
+ 'name' => 'email',
+ 'label' => 'Email',
+ 'type' => 'email',
+ 'attributes' => ['required', 'auto']
+ ],
+ [
+ 'name' => 'father_name',
+ 'label' => 'Πατρώνυμο',
+ 'attributes' => ['required', 'auto']
+ ],
+ [
+ 'name' => 'registration_number',
+ 'label' => 'Αριθμός μητρώου',
+ 'class' => 'col-8',
+ 'attributes' => ['required', 'auto']
+ ],
+ [
+ 'name' => 'sector',
+ 'label' => 'Κλάδος / Ειδικότητα',
+ 'type' => 'select',
+ 'attributes' => ['required', 'auto'],
+ 'options' => TEACHER_SECTORS
+ ],
+ [
+ 'name' => 'belonging_school',
+ 'label' => 'Σχολείο τοποθέτησης',
+ 'attributes' => ['required', 'auto']
+ ],
+ // [ // working school = (obviously) is the current school
+ // 'name' => 'working_school',
+ // 'label' => 'Σχολείο εργασίας',
+ // 'attributes' => ['required']
+ // ],
+ [
+ 'name' => 'position',
+ 'label' => 'Θέση',
+ 'type' => 'select',
+ 'attributes' => ['required', 'auto'],
+ 'options' => []
+ ],
+ [
+ 'name' => 'phone',
+ 'label' => 'Τηλέφωνο',
+ 'class' => 'col-8',
+ 'attributes' => ['required', 'auto']
+ ]
+ ]
+]);
+
// Application (common request) form
// ---
define('APPLICATION_FORM', [