From 1388a64651f1c61a6aafc32f8e3e60f7a6ffd339 Mon Sep 17 00:00:00 2001 From: George Halkiadakis Date: Tue, 6 Jun 2023 00:46:19 +0300 Subject: admin petition ready --- public/app/config/setup_application.php | 34 +++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) (limited to 'public/app/config') 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','Τώρα μπορείτε να επιστρέψετε στον πίνακα ελέγχου.'); +define('RETRY_SET_PASSWORD', 'Μπορείτε να ξαναδοκιμάσετε ή +
ή να επιστρέψετε στον πίνακα ελέγψου.'); @@ -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', [ -- cgit v1.2.3