2014-08-07 19:55:18 +03:00
|
|
|
|
{**
|
|
|
|
|
* Настройки аккаунта (емэйл, пароль)
|
|
|
|
|
*}
|
|
|
|
|
|
2016-04-07 12:40:28 +03:00
|
|
|
|
{component_define_params params=[ 'user' ]}
|
2014-08-07 19:55:18 +03:00
|
|
|
|
|
|
|
|
|
{hook run='settings_account_begin'}
|
|
|
|
|
|
|
|
|
|
<form method="post" enctype="multipart/form-data" class="js-form-validate">
|
2015-06-17 03:32:19 +03:00
|
|
|
|
{* @hook Начало формы с настройками аккаунта *}
|
|
|
|
|
{hook run='user_settings_account_begin'}
|
2014-08-07 19:55:18 +03:00
|
|
|
|
|
2015-10-27 11:02:57 +02:00
|
|
|
|
<fieldset>
|
|
|
|
|
<legend>{lang name='user.settings.account.account'}</legend>
|
2014-08-07 19:55:18 +03:00
|
|
|
|
|
|
|
|
|
{* E-mail *}
|
2015-01-03 10:19:49 +02:00
|
|
|
|
{component 'field' template='email'
|
2015-06-16 07:48:40 +03:00
|
|
|
|
value = $user->getMail()
|
2014-10-18 09:07:45 +03:00
|
|
|
|
note = {lang name='user.settings.account.fields.email.note'}}
|
2015-10-27 11:02:57 +02:00
|
|
|
|
</fieldset>
|
2014-08-07 19:55:18 +03:00
|
|
|
|
|
|
|
|
|
|
2015-10-27 11:02:57 +02:00
|
|
|
|
<fieldset>
|
|
|
|
|
<legend>{lang name='user.settings.account.password'}</legend>
|
2014-08-07 19:55:18 +03:00
|
|
|
|
|
2015-10-27 11:02:57 +02:00
|
|
|
|
<p class="text-info">{lang name='user.settings.account.password_note'}</p>
|
2014-08-07 19:55:18 +03:00
|
|
|
|
|
|
|
|
|
{* Текущий пароль *}
|
2015-01-03 10:19:49 +02:00
|
|
|
|
{component 'field' template='text'
|
2014-10-18 09:07:45 +03:00
|
|
|
|
name = 'password_now'
|
|
|
|
|
type = 'password'
|
2015-10-28 13:00:45 +02:00
|
|
|
|
inputClasses = 'ls-width-200'
|
2014-10-18 09:07:45 +03:00
|
|
|
|
label = {lang name='user.settings.account.fields.password.label'}}
|
2014-08-07 19:55:18 +03:00
|
|
|
|
|
|
|
|
|
{* Новый пароль *}
|
2015-01-03 10:19:49 +02:00
|
|
|
|
{component 'field' template='text'
|
2014-10-18 09:07:45 +03:00
|
|
|
|
name = 'password'
|
2015-03-30 14:34:41 +03:00
|
|
|
|
rules = [ 'length' => '[5,20]' ]
|
2014-10-18 09:07:45 +03:00
|
|
|
|
type = 'password'
|
2015-10-28 13:00:45 +02:00
|
|
|
|
inputClasses = 'ls-width-200 js-user-settings-password'
|
2014-10-18 09:07:45 +03:00
|
|
|
|
label = {lang name='user.settings.account.fields.password_new.label'}}
|
2014-08-07 19:55:18 +03:00
|
|
|
|
|
2014-10-07 16:07:00 +03:00
|
|
|
|
{* Повторить новый пароль *}
|
2015-01-03 10:19:49 +02:00
|
|
|
|
{component 'field' template='text'
|
2014-10-18 09:07:45 +03:00
|
|
|
|
name = 'password_confirm'
|
2015-03-30 14:34:41 +03:00
|
|
|
|
rules = [ 'length' => '[5,20]', 'equalto' => '.js-user-settings-password' ]
|
2014-10-18 09:07:45 +03:00
|
|
|
|
type = 'password'
|
2015-10-28 13:00:45 +02:00
|
|
|
|
inputClasses = 'ls-width-200'
|
2014-10-18 09:07:45 +03:00
|
|
|
|
label = {lang name='user.settings.account.fields.password_confirm.label'}}
|
2015-10-27 11:02:57 +02:00
|
|
|
|
</fieldset>
|
2014-08-07 19:55:18 +03:00
|
|
|
|
|
2015-06-17 03:32:19 +03:00
|
|
|
|
{* @hook Конец формы с настройками аккаунта *}
|
2015-10-27 11:02:57 +02:00
|
|
|
|
{hook run='user_settings_account_end'}
|
2014-08-07 19:55:18 +03:00
|
|
|
|
|
|
|
|
|
{* Скрытые поля *}
|
2015-01-03 10:19:49 +02:00
|
|
|
|
{component 'field' template='hidden.security-key'}
|
2014-08-07 19:55:18 +03:00
|
|
|
|
|
|
|
|
|
{* Кнопки *}
|
2015-04-15 17:51:37 +03:00
|
|
|
|
{component 'button' mods='primary' text=$aLang.common.save}
|
2014-08-07 19:55:18 +03:00
|
|
|
|
</form>
|
|
|
|
|
|
|
|
|
|
{hook run='settings_account_end'}
|