summaryrefslogtreecommitdiff
path: root/public/app/config/app_constants.php
diff options
context:
space:
mode:
Diffstat (limited to 'public/app/config/app_constants.php')
-rw-r--r--public/app/config/app_constants.php355
1 files changed, 323 insertions, 32 deletions
diff --git a/public/app/config/app_constants.php b/public/app/config/app_constants.php
index b46bc51..fedba90 100644
--- a/public/app/config/app_constants.php
+++ b/public/app/config/app_constants.php
@@ -61,9 +61,9 @@ define('DEFAULT_PRIVILEGES', [
// User Roles
// --- -- -- - - -
-define('READER', 1);
-define('EDITOR', 2);
-define('ADMIN', 3);
+define('Admin', 1);
+define('Secretary', 2);
+define('Teacher', 3);
// ACCESS HISTORY //////////////////////////////////////////////////////////////
@@ -72,14 +72,14 @@ define('ADMIN', 3);
define('TRACK_LOGIN', 1); // login / logout
define('TRACK_ACCOUNT', 2); // create user / activate account / modidy profile
-define('TRACK_PAYMENTS', 3); // order / payment / refund etc...
+define('TRACK_REQUESTS', 4); // order / payment / refund etc...
// access type strings
// ---
define('USER_ACCESS_TYPE', [
1 => 'Login',
2 => 'Account',
- 3 => 'Payment'
+ 3 => 'Request'
]);
@@ -99,16 +99,7 @@ define('EMPTY_REQUIRED_FIELDS', 'Δεν έχουν συμπληρωθεί όλα
// JAVASCRIPT LIBRARY PATHS
// -----------------------------------------------------------------------------
define('JS_DIR', '/content/'); // <base> path to contruct link
-define('JS_LIBRARIES', array( // path after <base> to the actual file
- 'jquery' => 'lib/jquery/dist/jquery.min.js',
- 'require/files' => 'lib/require/require.files.js',
- 'require/slim' => 'lib/require/require.slim.js',
-
- 'plugins' => 'lib/plugins/plugins.min.js',
- 'plugins/setup' => 'lib/plugins/plugins.setup.js'
- )
-);
// CSS ASSET PATHS
@@ -122,19 +113,6 @@ define('CSS_FILES', array( // path after <base> to the actual file
);
-// FONTS
-// -----------------------------------------------------------------------------
-define('FONTS_DIR', '/content/fonts/');
-define('FONT_FILES', array(
- 'iconfont' => 'iconfont.woff2',
- 'CFAstyStdBold' => 'CFAstyStd-Bold.woff2',
- 'CFAstyStdBook' => 'CFAstyStd-Book.woff2',
- 'CFAstyStdMedium' => 'CFAstyStd-Medium.woff2'
- )
-);
-
-
-
// Mesagges ////////////////////////////////////////////////////////////////////
// -----------------------------------------------------------------------------
@@ -163,9 +141,322 @@ define ('REGISTRATION_USER_EXISTS', "<h3>Αποτυχία Εγγραφής</h3>
// activation
// ---
define('ACCOUNT_ACTIVATED_TITLE', 'Ο λογαριασμός σας έχει ενεργοποιηθεί');
-define('ACCOUNT_ACTIVATED_MESSAGE', 'Τώρα μπορείτε να κάνετε
- <a href="/login">Είσοδο στο σύστημα</a>
- για να δείτε περισσότερο περιεχόμενο');
+define('ACCOUNT_ACTIVATED_MESSAGE', 'Τώρα μπορείτε να
+ <a href="/login">συνδεθείτε στο σύστημα</a>.');
define('NOT_VALID_ACTIVATION_TITLE', 'Σφάλμα!');
-define('NOT_VALID_ACTIVATION_MESSAGE', 'Ο κωδικός ενεργοποίησης δεν είναι σωστός.
- Μήπως τον έχετε ενεργοποιήσει στο παρελθόν;'); \ No newline at end of file
+
+
+
+define('REGISTRATION_FORM', [
+ 'defaults' => [
+ 'outer_class' => 'col-12',
+ 'inner_class' => 'form-control',
+ 'type' => 'text'
+ ],
+ 'form' => [
+ [
+ 'name' => 'first_name',
+ 'label' => 'Όνομα',
+ 'attributes' => ['required']
+ ],
+ [
+ 'name' => 'last_name',
+ 'label' => 'Επίθετο',
+ 'attributes' => ['required']
+ ],
+ [
+ 'name' => 'email',
+ 'label' => 'e-mail',
+ 'type' => 'email',
+ 'attributes' => ['required']
+ ],
+ [
+ 'name' => 'father_name',
+ 'label' => 'Πατρώνυμο',
+ 'attributes' => ['required']
+ ],
+ [
+ 'name' => 'registration_number',
+ 'label' => 'Αριθμός μητρώου',
+ 'class' => 'col-8',
+ 'attributes' => ['required']
+ ],
+ [
+ 'name' => 'sector',
+ 'label' => 'Κλάδος / Ειδικότητα',
+ 'type' => 'select',
+ // 'source' => 'sectors',
+ 'attributes' => ['required'],
+ 'options' => [
+ 'Π01.00 Θεολόγοι',
+ 'Π02.00 Φιλόλογοι',
+ 'Π04.01 Φυσικοί',
+ 'Π04.02 Χημικοί'
+ ]
+ ],
+ [
+ 'name' => 'belonging_school',
+ 'label' => 'Σχολείο τοποθέτησης',
+ 'attributes' => ['required']
+ ],
+ [
+ 'name' => 'working_school',
+ 'label' => 'Σχολείο εργασίας',
+ 'attributes' => ['required']
+ ],
+ [
+ 'name' => 'position',
+ 'label' => 'Θέση',
+ 'type' => 'select',
+ 'attributes' => ['required'],
+ 'options' => [
+ 'Διευθυν-τής/τρια',
+ 'Υποδιευθυν-τής/τρια',
+ 'Μόνιμ-ος/η Καθηγη-τής/τρια',
+ 'Αναπληρω-τής/τρια',
+ ]
+ ],
+ [
+ 'name' => 'phone',
+ 'label' => 'Τηλέφωνο',
+ 'class' => 'col-8',
+ 'attributes' => ['required']
+ ],
+ [
+ 'name' => 'password',
+ 'label' => 'Κωδικός πρόσβασης',
+ 'type' => 'password',
+ 'class' => 'col-8',
+ 'attributes' => ['required']
+ ],
+ [
+ 'name' => 'confirm_password',
+ 'label' => 'Επαλήθευση κωδικού πρόσβασης',
+ 'type' => 'password',
+ 'class' => 'col-8',
+ 'attributes' => ['required']
+ ]
+ ]
+]);
+
+
+define('COMMON_REQUEST_FORM', [
+ 'defaults' => [
+ 'outer_class' => 'col-12',
+ 'inner_class' => 'form-control',
+ 'type' => 'text',
+ 'source' => 'user'
+ ],
+ 'form' => [
+ [
+ 'name' => 'first_name',
+ 'label' => 'Όνομα',
+ 'attributes' => ['auto']
+ ],
+ [
+ 'name' => 'last_name',
+ 'label' => 'Επίθετο',
+ 'attributes' => ['auto']
+ ],
+ [
+ 'name' => 'email',
+ 'label' => 'e-mail',
+ 'type' => 'email',
+ 'attributes' => ['auto']
+ ],
+ [
+ 'name' => 'father_name',
+ 'label' => 'Πατρώνυμο',
+ 'attributes' => ['auto']
+ ],
+ [
+ 'name' => 'registration_number',
+ 'label' => 'Αριθμός μητρώου',
+ 'class' => 'col-5',
+ 'attributes' => ['auto']
+ ],
+ [
+ 'name' => 'sector',
+ 'label' => 'Κλάδος / Ειδικότητα',
+ 'attributes' => ['auto']
+ ],
+ [
+ 'name' => 'belonging_school',
+ 'label' => 'Σχολείο τοποθέτησης',
+ 'attributes' => ['required']
+ ],
+ [
+ 'name' => 'working_school',
+ 'label' => 'Σχολείο εργασίας',
+ 'attributes' => ['required']
+ ],
+ [
+ 'name' => 'position',
+ 'label' => 'Θέση',
+ 'type' => 'select',
+ 'source' => 'positions',
+ 'attributes' => ['required']
+ ],
+ [
+ 'name' => 'phone',
+ 'label' => 'Τηλέφωνο',
+ 'attributes' => ['required']
+ ],
+ [
+ 'name' => 'request',
+ 'label' => 'Αίτημα (πχ, Παρακαλώ να μου χορηγήσετε ...)',
+ 'type' => 'textarea',
+ 'attributes' => ['required']
+ ],
+ [
+ 'name' => 'date',
+ 'label' => 'Ημερομηνία αίτησης',
+ 'type' => 'date',
+ 'attributes' => ['required']
+ ]
+ ]
+]);
+
+
+define('PENALTY_FORM', [
+ 'defaults' => [
+ 'outer_class' => 'col-12',
+ 'inner_class' => 'form-control',
+ 'type' => 'text',
+ 'source' => 'user'
+ ],
+ 'form' => [
+ [
+ 'label' => 'Πειθαρχική υπόθεση',
+ 'type' => 'label'
+ ],
+ [
+ 'name' => 'of_student',
+ 'label' => 'τ.. μαθητ...',
+ 'attributes' => ['required']
+ ],
+ [
+ 'name' => 'of_department',
+ 'label' => 'του τμήματος...',
+ 'attributes' => ['required']
+ ],
+ [
+ 'name' => 'date',
+ 'label' => 'Ημερομηνία',
+ 'type' => 'date',
+ 'class' => 'col-5',
+ 'attributes' => ['required']
+ ],
+ [
+ 'name' => 'time',
+ 'label' => 'Ώρα',
+ 'class' => 'col-4',
+ 'attributes' => ['required']
+ ],
+ [
+ 'name' => 'place',
+ 'label' => 'Τόπος',
+ 'attributes' => ['required']
+ ],
+ [
+ 'name' => 'rapporteur',
+ 'label' => 'εισηγητής',
+ 'attributes' => ['required']
+ ],
+ [
+ 'name' => 'charge',
+ 'label' => 'κατηγορία',
+ 'attributes' => ['required']
+ ],
+ [
+ 'name' => 'apology',
+ 'label' => 'Απολογία', // + of_student
+ 'type' => 'textarea',
+ 'attributes' => []
+ ],
+ [
+ 'name' => 'decision_reasoning',
+ 'label' => 'Αιτιολογία απόφασης (πχ. Επειδή...)',
+ 'type' => 'textarea',
+ 'attributes' => ['required']
+ ],
+ [
+ 'label' => 'Το Πειθαρχικό Συμβούλιο'
+ ],
+ [
+ 'name' => 'decision',
+ 'label' => 'Αποφασίζει',
+ 'type' => 'select',
+ 'options' => [
+ 'προφορική επίπληψη',
+ 'ωριαία αποβολή',
+ 'ημερήσια αποβολή'
+ ],
+ 'attributes' => []
+ ],
+ [
+ 'name' => 'decision_more',
+ 'label' => '(μη τυποποιημένo κείμενο απόφασης)',
+ 'attributes' => []
+ ],
+ [
+ 'name' => 'president',
+ 'label' => 'Ημερομηνία αίτησης',
+ 'type' => 'text',
+ 'attributes' => ['required']
+ ],
+ [
+ 'name' => 'members',
+ 'label' => 'Μέλη',
+ 'type' => 'select',
+ 'attributes' => ['required', 'multiple'],
+ 'source' => 'teachers',
+ 'options' => [
+ 'Μαρία Χαλκιαδάκη',
+ 'Σπαγκοβαγγελοδημήτρης Νικόλαος',
+ 'Χατζηχριστοδούλου Παναγιώτης',
+ 'Μαρία Χαλκιά',
+ 'Σπανοβαγγελοδημήτρης Νικόλαος',
+ 'Χριστοδούλου Παναγιώτης',
+ 'Μαρίκα Χαλκιαδάκη',
+ 'Σπανακοβαγγελοδημήτρης Νικόλαος',
+ 'Χατζηχριστοδούλου Χριστόδουλος',
+ 'Αννέτα Καββαδία',
+ 'Γιώργος Καΐσας',
+ 'Διονύσης - Χαράλαμπος Καλαματιανός',
+ 'Ηλίας Καματερός',
+ 'Μαρία Κανελλοπούλου',
+ 'Ιωάννης Καραγιάννης',
+ 'Χρήστος Καραγιαννίδης',
+ 'Ευαγγελία Καρακώστα',
+ 'Απόστολος Καραναστάσης',
+ 'Ευφροσύνη Καρασαρλίδου',
+ 'Νίνα Κασιμάτη',
+ 'Αστέριος Καστόρης',
+ 'Βασιλική Κατριβάνου',
+ 'Γιώργος Κατρούγκαλος',
+ 'Χρυσούλα Κατσαβριά-Σιωροπούλου',
+ 'Μάριος Κάτσης',
+ 'Χαρά Καφαντάρη',
+ 'Σίμος Α. Κεδίκογλου',
+ 'Παναγιώτα Κοζομπόλη-Αμανατίδη',
+ 'Βασίλης Κόκκαλης',
+ 'Σταύρος Κοντονής',
+ 'Περικλής Κοροβέσης',
+ 'Νίκος Κοτζιάς',
+ 'Φώτης Κουβέλης',
+ 'Τάσος Κουράκης',
+ 'Παναγιώτης Κουρουμπλής',
+ 'Μιχαήλ Κριτσωτάκης',
+ 'Βασίλης Κυριακάκης',
+ 'Αγλαΐα Κυρίτση',
+ 'Γιώργος Κυρίτσης',
+ 'Πέτρος Κωνσταντινέας',
+ 'Ζωή Κωνσταντοπούλου',
+ 'Ηλίας Κωστοπαναγιώτου'
+ ]
+ ]
+ ]
+]);
+
+