1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-07-08 17:34:26 +03:00
ifhub.club/application/frontend/components/user/settings/account.tpl

62 lines
2.2 KiB
Smarty
Raw Normal View History

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