mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-07-08 09:24:25 +03:00
66 lines
2.4 KiB
Smarty
66 lines
2.4 KiB
Smarty
{**
|
|
* Настройки аккаунта (емэйл, пароль)
|
|
*}
|
|
|
|
{extends file='layouts/layout.user.settings.tpl'}
|
|
|
|
{block name='layout_content'}
|
|
{hook run='settings_account_begin'}
|
|
|
|
<form method="post" enctype="multipart/form-data" class="js-form-validate">
|
|
{hook run='form_settings_account_begin'}
|
|
|
|
<fieldset>
|
|
<legend>{$aLang.settings_account}</legend>
|
|
|
|
{* E-mail *}
|
|
{include file='components/field/field.text.tpl'
|
|
sName = 'mail'
|
|
aRules = [ 'required' => true, 'type'=> 'email' ]
|
|
sValue = $oUserCurrent->getMail()|escape
|
|
sNote = $aLang.settings_profile_mail_notice
|
|
sLabel = $aLang.settings_profile_mail}
|
|
</fieldset>
|
|
|
|
|
|
<fieldset>
|
|
<legend>{$aLang.settings_account_password}</legend>
|
|
|
|
<small class="note mb-20">{$aLang.settings_account_password_notice}</small>
|
|
|
|
{* Текущий пароль *}
|
|
{include file='components/field/field.text.tpl'
|
|
sName = 'password_now'
|
|
sType = 'password'
|
|
sInputClasses = 'width-200'
|
|
sLabel = $aLang.settings_profile_password_current}
|
|
|
|
{* Новый пароль *}
|
|
{include file='components/field/field.text.tpl'
|
|
sName = 'password'
|
|
aRules = [ 'rangelength' => '[5,20]' ]
|
|
sType = 'password'
|
|
sInputClasses = 'width-200'
|
|
sLabel = $aLang.settings_profile_password_new}
|
|
|
|
{* Повторить овый пароль *}
|
|
{include file='components/field/field.text.tpl'
|
|
sName = 'password_confirm'
|
|
aRules = [ 'rangelength' => '[5,20]', 'equalto' => '.js-input-password' ]
|
|
sType = 'password'
|
|
sInputClasses = 'width-200'
|
|
sLabel = $aLang.settings_profile_password_confirm}
|
|
</fieldset>
|
|
|
|
|
|
{hook run='form_settings_account_end'}
|
|
|
|
{* Скрытые поля *}
|
|
{include file='components/field/field.hidden.security_key.tpl'}
|
|
|
|
{* Кнопки *}
|
|
{include file='components/button/button.tpl' sName='submit_account_edit' sStyle='primary' sText=$aLang.settings_profile_submit}
|
|
</form>
|
|
|
|
{hook run='settings_account_end'}
|
|
{/block} |