2015-05-22 11:13:52 +02:00
|
|
|
<?php
|
2018-02-09 12:53:17 +01:00
|
|
|
/** @var array $roles */
|
2016-10-02 06:35:06 +02:00
|
|
|
|
2016-09-19 21:20:26 +02:00
|
|
|
return [
|
2018-02-01 12:49:40 +01:00
|
|
|
'elements' => [
|
|
|
|
|
|
|
|
'name' => [
|
|
|
|
'text',
|
|
|
|
[
|
2019-09-25 01:19:51 +02:00
|
|
|
'label' => __('Display Name'),
|
2018-02-01 12:49:40 +01:00
|
|
|
'class' => 'half-width',
|
2019-05-09 00:23:26 +02:00
|
|
|
'label_class' => 'mb-2',
|
2019-10-29 10:27:03 +01:00
|
|
|
],
|
2018-02-01 12:49:40 +01:00
|
|
|
],
|
2017-08-20 19:44:51 +02:00
|
|
|
|
2018-02-01 12:49:40 +01:00
|
|
|
'email' => [
|
|
|
|
'email',
|
|
|
|
[
|
2018-03-19 02:31:43 +01:00
|
|
|
'label' => __('E-mail Address'),
|
2018-02-01 12:49:40 +01:00
|
|
|
'required' => true,
|
2019-07-21 03:31:03 +02:00
|
|
|
'autocomplete' => 'new-password',
|
2019-05-09 00:23:26 +02:00
|
|
|
'label_class' => 'mb-2',
|
2019-05-19 16:54:34 +02:00
|
|
|
'form_group_class' => 'mt-3',
|
2019-10-29 10:27:03 +01:00
|
|
|
],
|
2018-02-01 12:49:40 +01:00
|
|
|
],
|
2015-05-22 11:13:52 +02:00
|
|
|
|
2019-10-29 10:27:03 +01:00
|
|
|
'new_password' => [
|
2018-02-01 12:49:40 +01:00
|
|
|
'password',
|
|
|
|
[
|
2018-03-19 02:31:43 +01:00
|
|
|
'label' => __('Reset Password'),
|
|
|
|
'description' => __('Leave blank to use the current password.'),
|
2018-02-01 12:49:40 +01:00
|
|
|
'autocomplete' => 'off',
|
|
|
|
'required' => false,
|
2019-05-09 00:23:26 +02:00
|
|
|
'label_class' => 'mb-2',
|
2019-05-19 16:54:34 +02:00
|
|
|
'form_group_class' => 'mt-3',
|
2019-10-29 10:27:03 +01:00
|
|
|
],
|
2018-02-01 12:49:40 +01:00
|
|
|
],
|
2016-09-19 21:20:26 +02:00
|
|
|
|
2018-02-01 12:49:40 +01:00
|
|
|
'roles' => [
|
|
|
|
'multiCheckbox',
|
|
|
|
[
|
2018-03-19 02:31:43 +01:00
|
|
|
'label' => __('Roles'),
|
2018-02-09 12:53:17 +01:00
|
|
|
'options' => $roles,
|
2019-05-19 16:54:34 +02:00
|
|
|
'form_group_class' => 'mt-3',
|
2019-10-29 10:27:03 +01:00
|
|
|
],
|
2018-02-01 12:49:40 +01:00
|
|
|
],
|
2016-09-19 21:20:26 +02:00
|
|
|
|
2018-02-01 12:49:40 +01:00
|
|
|
'submit' => [
|
|
|
|
'submit',
|
|
|
|
[
|
|
|
|
'type' => 'submit',
|
2018-03-19 02:31:43 +01:00
|
|
|
'label' => __('Save Changes'),
|
2017-05-24 11:21:11 +02:00
|
|
|
|
2018-02-01 12:49:40 +01:00
|
|
|
'class' => 'btn btn-lg btn-primary',
|
2019-05-19 16:54:34 +02:00
|
|
|
'form_group_class' => 'mt-3',
|
2019-10-29 10:27:03 +01:00
|
|
|
],
|
2016-09-19 21:20:26 +02:00
|
|
|
],
|
|
|
|
],
|
2019-05-09 00:23:26 +02:00
|
|
|
];
|