2015-01-04 08:37:51 +01:00
|
|
|
<?php
|
2020-12-06 08:55:25 +01:00
|
|
|
/** @var \App\Environment $environment */
|
|
|
|
|
2021-07-08 22:03:54 +02:00
|
|
|
$locale_select = \App\Locale::SUPPORTED_LOCALES;
|
2018-03-19 02:31:43 +01:00
|
|
|
$locale_select = ['default' => __('Use Browser Default')] + $locale_select;
|
2016-10-06 08:03:00 +02:00
|
|
|
|
2016-09-19 21:20:26 +02:00
|
|
|
return [
|
2015-01-04 08:37:51 +01:00
|
|
|
'method' => 'post',
|
2016-09-19 21:20:26 +02:00
|
|
|
'groups' => [
|
|
|
|
|
|
|
|
'account_info' => [
|
2019-05-19 16:54:34 +02:00
|
|
|
'use_grid' => true,
|
2016-09-19 21:20:26 +02:00
|
|
|
'elements' => [
|
2015-01-04 08:37:51 +01:00
|
|
|
|
2017-01-24 01:35:16 +01:00
|
|
|
'name' => [
|
|
|
|
'text',
|
|
|
|
[
|
2018-03-19 02:31:43 +01:00
|
|
|
'label' => __('Name'),
|
2017-01-24 01:35:16 +01:00
|
|
|
'class' => 'half-width',
|
2019-05-19 16:54:34 +02:00
|
|
|
'form_group_class' => 'col-md-6',
|
2020-07-08 09:03:50 +02:00
|
|
|
],
|
2017-01-24 01:35:16 +01:00
|
|
|
],
|
2016-09-19 21:20:26 +02:00
|
|
|
|
2017-01-24 01:35:16 +01:00
|
|
|
'email' => [
|
|
|
|
'text',
|
|
|
|
[
|
2018-03-19 02:31:43 +01:00
|
|
|
'label' => __('E-mail Address'),
|
2017-01-24 01:35:16 +01:00
|
|
|
'class' => 'half-width',
|
|
|
|
'required' => true,
|
|
|
|
'autocomplete' => 'off',
|
2019-05-19 16:54:34 +02:00
|
|
|
'form_group_class' => 'col-md-6',
|
2020-07-08 09:03:50 +02:00
|
|
|
],
|
2017-01-24 01:35:16 +01:00
|
|
|
],
|
2016-09-19 21:20:26 +02:00
|
|
|
|
2017-08-13 10:48:17 +02:00
|
|
|
],
|
|
|
|
],
|
|
|
|
|
|
|
|
'reset_password' => [
|
2019-05-19 16:54:34 +02:00
|
|
|
'use_grid' => true,
|
2018-03-19 02:31:43 +01:00
|
|
|
'legend' => __('Reset Password'),
|
|
|
|
'description' => __('Leave these fields blank to continue using your current password.'),
|
2017-08-13 10:48:17 +02:00
|
|
|
'elements' => [
|
|
|
|
|
|
|
|
'password' => [
|
|
|
|
'password',
|
|
|
|
[
|
2018-03-19 02:31:43 +01:00
|
|
|
'label' => __('Current Password'),
|
2017-08-13 10:48:17 +02:00
|
|
|
'autocomplete' => 'off',
|
2019-05-09 00:23:26 +02:00
|
|
|
'form_group_class' => 'col-md-4',
|
2020-07-08 09:03:50 +02:00
|
|
|
],
|
2017-08-13 10:48:17 +02:00
|
|
|
],
|
|
|
|
|
|
|
|
'new_password' => [
|
|
|
|
'password',
|
|
|
|
[
|
2018-03-19 02:31:43 +01:00
|
|
|
'label' => __('New Password'),
|
2019-07-21 03:31:03 +02:00
|
|
|
'autocomplete' => 'new-password',
|
2017-08-13 10:48:17 +02:00
|
|
|
'class' => 'strength',
|
|
|
|
'confirm' => 'new_password_confirm',
|
2019-05-09 00:23:26 +02:00
|
|
|
'form_group_class' => 'col-md-4',
|
2020-07-08 09:03:50 +02:00
|
|
|
],
|
2017-08-13 10:48:17 +02:00
|
|
|
],
|
|
|
|
|
|
|
|
'new_password_confirm' => [
|
2017-01-24 01:35:16 +01:00
|
|
|
'password',
|
|
|
|
[
|
2018-03-19 02:31:43 +01:00
|
|
|
'label' => __('Confirm New Password'),
|
2019-07-21 03:31:03 +02:00
|
|
|
'autocomplete' => 'new-password',
|
2019-05-09 00:23:26 +02:00
|
|
|
'form_group_class' => 'col-md-4',
|
2020-07-08 09:03:50 +02:00
|
|
|
],
|
2017-01-24 01:35:16 +01:00
|
|
|
],
|
2016-09-19 21:20:26 +02:00
|
|
|
|
|
|
|
],
|
|
|
|
],
|
2015-01-04 08:37:51 +01:00
|
|
|
|
2016-10-06 08:03:00 +02:00
|
|
|
'customization' => [
|
2019-05-19 16:54:34 +02:00
|
|
|
'use_grid' => true,
|
2018-03-19 02:31:43 +01:00
|
|
|
'legend' => __('Customization'),
|
2016-10-06 08:03:00 +02:00
|
|
|
'elements' => [
|
|
|
|
|
2017-01-24 01:35:16 +01:00
|
|
|
'locale' => [
|
|
|
|
'radio',
|
|
|
|
[
|
2018-03-19 02:31:43 +01:00
|
|
|
'label' => __('Language'),
|
2017-01-24 01:35:16 +01:00
|
|
|
'options' => $locale_select,
|
|
|
|
'default' => 'default',
|
2019-05-19 16:54:34 +02:00
|
|
|
'form_group_class' => 'col-md-6',
|
2020-07-08 09:03:50 +02:00
|
|
|
],
|
2017-01-24 01:35:16 +01:00
|
|
|
],
|
2016-10-06 08:03:00 +02:00
|
|
|
|
2017-01-24 01:35:16 +01:00
|
|
|
'theme' => [
|
|
|
|
'radio',
|
|
|
|
[
|
2018-03-19 02:31:43 +01:00
|
|
|
'label' => __('Site Theme'),
|
2018-05-17 11:02:46 +02:00
|
|
|
'choices' => [
|
2021-04-29 14:01:41 +02:00
|
|
|
App\Customization::THEME_BROWSER => __('Prefer System Default'),
|
|
|
|
App\Customization::THEME_LIGHT => __('Light'),
|
|
|
|
App\Customization::THEME_DARK => __('Dark'),
|
2018-03-19 08:31:35 +01:00
|
|
|
],
|
2020-07-08 09:03:50 +02:00
|
|
|
'default' => App\Customization::DEFAULT_THEME,
|
2019-05-19 16:54:34 +02:00
|
|
|
'form_group_class' => 'col-md-6',
|
2020-07-08 09:03:50 +02:00
|
|
|
],
|
2017-01-24 01:35:16 +01:00
|
|
|
],
|
2016-10-07 04:41:04 +02:00
|
|
|
|
2016-10-06 08:03:00 +02:00
|
|
|
],
|
|
|
|
],
|
|
|
|
|
2016-09-19 21:20:26 +02:00
|
|
|
'submit' => [
|
|
|
|
'elements' => [
|
2017-01-24 01:35:16 +01:00
|
|
|
'submit' => [
|
|
|
|
'submit',
|
|
|
|
[
|
|
|
|
'type' => 'submit',
|
2018-03-19 02:31:43 +01:00
|
|
|
'label' => __('Save Changes'),
|
2017-01-24 01:35:16 +01:00
|
|
|
'class' => 'btn btn-lg btn-primary',
|
2020-07-08 09:03:50 +02:00
|
|
|
],
|
2017-01-24 01:35:16 +01:00
|
|
|
],
|
2016-09-19 21:20:26 +02:00
|
|
|
],
|
|
|
|
],
|
|
|
|
|
|
|
|
],
|
2018-09-11 06:03:22 +02:00
|
|
|
];
|