summaryrefslogtreecommitdiff
path: root/public/app/config
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/config
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/config')
-rw-r--r--public/app/config/setup_application.php31
1 files changed, 11 insertions, 20 deletions
diff --git a/public/app/config/setup_application.php b/public/app/config/setup_application.php
index d44f59d..a5b7557 100644
--- a/public/app/config/setup_application.php
+++ b/public/app/config/setup_application.php
@@ -169,7 +169,7 @@ define('TEACHER_SECTORS', [
/** GENDER-ed constant arrays (LGBTQIA+ inclusive)
- * they use pronounces as key instead of binary gender-flag
+ * they use pronounces as key instead of a binary gender-flag
* -----------------------------------------------------------------------------
*/
@@ -218,48 +218,41 @@ define('REGISTRATION_FORM', [
[
'name' => 'first_name',
'label' => 'Όνομα',
- 'value' => 'auto',
- 'attributes' => ['required']
+ 'attributes' => ['required', 'auto']
],
[
'name' => 'last_name',
'label' => 'Επίθετο',
- 'value' => 'auto',
- 'attributes' => ['required']
+ 'attributes' => ['required', 'auto']
],
[
'name' => 'email',
'label' => 'Email',
'type' => 'email',
- 'value' => 'auto',
- 'attributes' => ['required']
+ 'attributes' => ['required', 'auto']
],
[
'name' => 'father_name',
'label' => 'Πατρώνυμο',
- 'value' => 'auto',
- 'attributes' => ['required']
+ 'attributes' => ['required', 'auto']
],
[
'name' => 'registration_number',
'label' => 'Αριθμός μητρώου',
'class' => 'col-8',
- 'value' => 'auto',
- 'attributes' => ['required']
+ 'attributes' => ['required', 'auto']
],
[
'name' => 'sector',
'label' => 'Κλάδος / Ειδικότητα',
- 'value' => 'auto',
'type' => 'select',
- 'attributes' => ['required'],
+ 'attributes' => ['required', 'auto'],
'options' => TEACHER_SECTORS
],
[
'name' => 'belonging_school',
'label' => 'Σχολείο τοποθέτησης',
- 'value' => 'auto',
- 'attributes' => ['required']
+ 'attributes' => ['required', 'auto']
],
// [ // working school = (obviously) is the current school
// 'name' => 'working_school',
@@ -270,16 +263,14 @@ define('REGISTRATION_FORM', [
'name' => 'position',
'label' => 'Θέση',
'type' => 'select',
- 'value' => 'auto',
- 'attributes' => ['required'],
+ 'attributes' => ['required', 'auto'],
'options' => []
],
[
'name' => 'phone',
'label' => 'Τηλέφωνο',
'class' => 'col-8',
- 'value' => 'auto',
- 'attributes' => ['required']
+ 'attributes' => ['required', 'auto']
],
[
'name' => 'password',
@@ -340,7 +331,7 @@ define('APPLICATION_FORM', [
'name' => 'phone',
'label' => 'Τηλέφωνο',
'class' => 'col-5',
- 'attributes' => ['required']
+ 'attributes' => ['required', 'auto']
],
[
'name' => 'email',