summaryrefslogtreecommitdiff
path: root/public/app/config/app_constants.php
diff options
context:
space:
mode:
authorGeorge Halkiadakis <gchalkiadakis@sklavenitis.co.gr>2023-05-05 04:07:05 +0300
committerGeorge Halkiadakis <gchalkiadakis@sklavenitis.co.gr>2023-05-05 04:07:05 +0300
commit537673748f0b01539fc5839c2af1bacbefafc86d (patch)
treec2032ff9efb06257bbf70f3329524d86bc2cb6e3 /public/app/config/app_constants.php
parent63f714d5a78b765c117ebf6bbdfdbd748dd45644 (diff)
downloadgyraf1gov-537673748f0b01539fc5839c2af1bacbefafc86d.tar.gz
gyraf1gov-537673748f0b01539fc5839c2af1bacbefafc86d.tar.bz2
gyraf1gov-537673748f0b01539fc5839c2af1bacbefafc86d.zip
the penalty form (input, new record)
Diffstat (limited to 'public/app/config/app_constants.php')
-rw-r--r--public/app/config/app_constants.php43
1 files changed, 35 insertions, 8 deletions
diff --git a/public/app/config/app_constants.php b/public/app/config/app_constants.php
index 262a727..3404033 100644
--- a/public/app/config/app_constants.php
+++ b/public/app/config/app_constants.php
@@ -23,7 +23,7 @@ if (file_exists("../core/auth/.env")) {
// WEB-APP name and url
// --- -- -- - - -
define('SITE_TITLE', 'Classroom');
-define('SITE_URL', 'http://localhost');
+define('SITE_URL', $env['ANOM_HOSTNAME']);
// Session and cookie names
// --- -- -- - - -
@@ -31,6 +31,19 @@ define('SESSION_NAME', 'offticket'); // cookie for session (office ticket)
define('CONNECTION_COOKIE', 'con'); // cookie for connection
define('MAX_SESSION_LIFE', 2*60*60); // maximum session lifetime (2 hours)
+// Cookie Policy
+// --- -- -- - - -
+# define('COOKIE_DOMAIN', $env['ANOM_HOSTNAME']); // domain to be visible on
+define('COOKIE_SECURE', false); // Secure cookie policy [true|false]
+define('COOKIE_SAMESITE', 'Strict'); // SameSite cookie policy [Strict|Lax|None]
+ // recomended values:
+ // COOKIE_SECURE=true, COOKIE_SAMESITE='Strict'
+ // --- -- -- - - -
+ // for more info about cookie policy read:
+ // https://www.php.net/manual/en/function.session-set-cookie-params.php
+
+
+
// email setup
// --- -- -- - - -
// SMTP
@@ -180,7 +193,7 @@ define('REGISTRATION_FORM', [
],
[
'name' => 'email',
- 'label' => 'e-mail',
+ 'label' => 'Email',
'type' => 'email',
'value' => 'auto',
'attributes' => ['required']
@@ -284,6 +297,11 @@ define('COMMON_REQUEST_FORM', [
],
'form' => [
[
+ 'name' => 'subject',
+ 'label' => 'Θέμα (χαρακτηριστικός τίτλος για αναφορά)',
+ 'attributes' => ['required']
+ ],
+ [
'name' => 'first_name',
'label' => 'Όνομα',
'attributes' => ['auto']
@@ -364,12 +382,21 @@ define('PENALTY_FORM', [
],
'form' => [
[
+ 'name' => 'subject',
+ 'label' => 'Θέμα (χαρακτηριστικός τίτλος για αναφορά)',
+ 'attributes' => ['required']
+ ],
+ [
+ 'label' => '',
+ 'type' => 'label'
+ ],
+ [
'label' => 'Πειθαρχική υπόθεση',
'type' => 'label'
],
[
'name' => 'of_article',
- 'label' => 'του/της...',
+ 'label' => 'του/της/των...',
'type' => 'select',
'options' => [
'του μαθητή',
@@ -377,33 +404,33 @@ define('PENALTY_FORM', [
'των μαθητών',
'των μαθητριών'
],
- 'class' => 'col-4',
+ 'class' => 'col-md-4',
'attributes' => ['required']
],
[
'name' => 'student_names',
'label' => '(ονοματεπώνυ-μο/μα, πτώση γενική)',
'type' => 'textarea',
- 'class' => 'col-8',
+ 'class' => 'col-md-8',
'attributes' => ['required']
],
[
'name' => 'of_department',
'label' => 'του τμήματος...',
- 'class' => 'col-4',
+ 'class' => 'col-md-4',
'attributes' => ['required']
],
[
'name' => 'date',
'label' => 'Ημερομηνία',
'type' => 'date',
- 'class' => 'col-4',
+ 'class' => 'col-md-4',
'attributes' => ['required']
],
[
'name' => 'time',
'label' => 'Ώρα',
- 'class' => 'col-4',
+ 'class' => 'col-md-4',
'attributes' => ['required']
],
[