summaryrefslogtreecommitdiff
path: root/public/app/config/app_constants.php
diff options
context:
space:
mode:
authorGeo Xalkis <gx23100@gmail.com>2023-05-02 01:02:48 +0300
committerGeo Xalkis <gx23100@gmail.com>2023-05-02 01:02:48 +0300
commit931a93cd7bae092e2752064568cebe407d2bf46e (patch)
treeaa25822cc3f9a66f27e6462c7cc7c78d9cdd87fd /public/app/config/app_constants.php
parent2b4ed611e7e001ad8ea93ef3e8cdce35bc56dc07 (diff)
downloadgyraf1gov-931a93cd7bae092e2752064568cebe407d2bf46e.tar.gz
gyraf1gov-931a93cd7bae092e2752064568cebe407d2bf46e.tar.bz2
gyraf1gov-931a93cd7bae092e2752064568cebe407d2bf46e.zip
(almost) final structrure of forms
Diffstat (limited to 'public/app/config/app_constants.php')
-rw-r--r--public/app/config/app_constants.php49
1 files changed, 37 insertions, 12 deletions
diff --git a/public/app/config/app_constants.php b/public/app/config/app_constants.php
index fedba90..9dff566 100644
--- a/public/app/config/app_constants.php
+++ b/public/app/config/app_constants.php
@@ -245,7 +245,7 @@ define('COMMON_REQUEST_FORM', [
'outer_class' => 'col-12',
'inner_class' => 'form-control',
'type' => 'text',
- 'source' => 'user'
+ 'source' => '\app\controllers\User::current'
],
'form' => [
[
@@ -331,20 +331,36 @@ define('PENALTY_FORM', [
'type' => 'label'
],
[
- 'name' => 'of_student',
- 'label' => 'τ.. μαθητ...',
+ 'name' => 'of_article',
+ 'label' => 'του/της...',
+ 'type' => 'select',
+ 'options' => [
+ 'του μαθητή',
+ 'της μαθήτριας',
+ 'των μαθητών',
+ 'των μαθητριών'
+ ],
+ 'class' => 'col-4',
+ 'attributes' => ['required']
+ ],
+ [
+ 'name' => 'student_names',
+ 'label' => '(ονοματεπώνυ-μο/μα, πτώση γενική)',
+ 'type' => 'textarea',
+ 'class' => 'col-8',
'attributes' => ['required']
],
[
'name' => 'of_department',
'label' => 'του τμήματος...',
+ 'class' => 'col-4',
'attributes' => ['required']
],
[
'name' => 'date',
'label' => 'Ημερομηνία',
'type' => 'date',
- 'class' => 'col-5',
+ 'class' => 'col-4',
'attributes' => ['required']
],
[
@@ -356,21 +372,28 @@ define('PENALTY_FORM', [
[
'name' => 'place',
'label' => 'Τόπος',
+ 'type' => 'select',
+ 'options' => [
+ 'Γραφείο Διευθηντή',
+ 'Γραφείο Καθηγητών'
+ ],
'attributes' => ['required']
],
[
'name' => 'rapporteur',
'label' => 'εισηγητής',
+ 'source' => '\app\extends\Cache_service::all_users',
'attributes' => ['required']
],
[
'name' => 'charge',
- 'label' => 'κατηγορία',
+ 'label' => 'Περιγραφή συμβάντος:',
+ 'type' => 'textarea',
'attributes' => ['required']
],
[
'name' => 'apology',
- 'label' => 'Απολογία', // + of_student
+ 'label' => 'Απολογία: (μαθητή/-των)', // + of_student
'type' => 'textarea',
'attributes' => []
],
@@ -378,17 +401,18 @@ define('PENALTY_FORM', [
'name' => 'decision_reasoning',
'label' => 'Αιτιολογία απόφασης (πχ. Επειδή...)',
'type' => 'textarea',
- 'attributes' => ['required']
+ 'attributes' => []
],
[
- 'label' => 'Το Πειθαρχικό Συμβούλιο'
+ 'label' => 'Το Πειθαρχικό Συμβούλιο',
+ 'type' => 'label'
],
[
'name' => 'decision',
'label' => 'Αποφασίζει',
'type' => 'select',
'options' => [
- 'προφορική επίπληψη',
+ 'προφορική επίπληξη',
'ωριαία αποβολή',
'ημερήσια αποβολή'
],
@@ -396,13 +420,14 @@ define('PENALTY_FORM', [
],
[
'name' => 'decision_more',
- 'label' => '(μη τυποποιημένo κείμενο απόφασης)',
+ 'label' => '(μη τυποποιημένο κείμενο απόφασης)',
'attributes' => []
],
[
'name' => 'president',
- 'label' => 'Ημερομηνία αίτησης',
+ 'label' => 'Πρόεδρος συνεδρίασης',
'type' => 'text',
+ 'source' => '\app\extends\Cache_service::all_users',
'attributes' => ['required']
],
[
@@ -410,7 +435,7 @@ define('PENALTY_FORM', [
'label' => 'Μέλη',
'type' => 'select',
'attributes' => ['required', 'multiple'],
- 'source' => 'teachers',
+ 'source' => '\app\extends\Cache_service::all_users',
'options' => [
'Μαρία Χαλκιαδάκη',
'Σπαγκοβαγγελοδημήτρης Νικόλαος',