summaryrefslogtreecommitdiff
path: root/public/app/config/setup_application.php
diff options
context:
space:
mode:
authorGeorge Halkiadakis <gchalkiadakis@sklavenitis.co.gr>2023-06-06 00:46:19 +0300
committerGeorge Halkiadakis <gchalkiadakis@sklavenitis.co.gr>2023-06-06 00:46:19 +0300
commit1388a64651f1c61a6aafc32f8e3e60f7a6ffd339 (patch)
treedd5bcd7b438929ffec89d32011144831eebabb06 /public/app/config/setup_application.php
parentd5475ce60729c3f743a6451b42072f1a13ffed59 (diff)
downloadgyraf1gov-1388a64651f1c61a6aafc32f8e3e60f7a6ffd339.tar.gz
gyraf1gov-1388a64651f1c61a6aafc32f8e3e60f7a6ffd339.tar.bz2
gyraf1gov-1388a64651f1c61a6aafc32f8e3e60f7a6ffd339.zip
admin petition ready
Diffstat (limited to 'public/app/config/setup_application.php')
-rw-r--r--public/app/config/setup_application.php34
1 files changed, 34 insertions, 0 deletions
diff --git a/public/app/config/setup_application.php b/public/app/config/setup_application.php
index e7d2ca4..2c8b756 100644
--- a/public/app/config/setup_application.php
+++ b/public/app/config/setup_application.php
@@ -130,6 +130,8 @@ define('NOT_VALID_ACTIVATION_MESSAGE', 'Ο λογαριασμός δεν έχε
define('ACCOUNT_UPDATED_TITLE','Ο λογαριασμός σας ενημερώθηκε!');
define('ACCOUNT_UPDATED_MESSAGE','Τώρα μπορείτε να επιστρέψετε
<a href="/panel">στον πίνακα ελέγχου</a>.');
+define('RETRY_SET_PASSWORD', 'Μπορείτε <a href="/user/password_form">να ξαναδοκιμάσετε</a> ή
+ <br>ή να επιστρέψετε στον <a href="/panel">πίνακα ελέγψου</a>.');
@@ -204,6 +206,7 @@ define('GENDERED_ARTICLE',[ // gendered (grammar) articles
+
// the forms ///////////////////////////////////////////////////////////////////
// -----------------------------------------------------------------------------
@@ -361,6 +364,37 @@ define('USER_PROPERTIES_FORM', [
]
]);
+
+
+define('SET_PASSWORD_FORM', [
+ 'defaults' => [
+ 'outer_class' => 'col-12',
+ 'inner_class' => 'form-control',
+ 'type' => 'text',
+ 'source' => '\app\controllers\User::current'
+ ],
+ 'form' => [
+ [
+ 'name' => 'oldpass',
+ 'label' => 'Τρέχον κωδικός πρόσβασης',
+ 'type' => 'password',
+ 'attributes' => ['required']
+ ],
+ [
+ 'name' => 'password',
+ 'label' => 'Νέος Κωδικός πρόσβασης',
+ 'type' => 'password',
+ 'attributes' => ['required']
+ ],
+ [
+ 'name' => 'confirm_password',
+ 'label' => 'Επαλήθευση νέου κωδικού πρόσβασης',
+ 'type' => 'password',
+ 'attributes' => ['required']
+ ]
+ ]
+]);
+
// Application (common request) form
// ---
define('APPLICATION_FORM', [