1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-07-08 01:14:24 +03:00
ifhub.club/application/frontend/components/auth/auth.login.tpl
Denis Shakhov c31a235423 Компоненты специфичные для lscms перенесены во frontend/components
Остальные перенесены во фреймворк
2015-01-31 19:16:15 +07:00

57 lines
1.6 KiB
Smarty

{**
* Форма входа
*
* @param string $redirectUrl
*}
{$redirectUrl = $smarty.local.redirectUrl|default:$PATH_WEB_CURRENT}
{hook run='login_begin'}
<form action="{router page='login'}" method="post" class="js-auth-login-form">
{hook run='form_login_begin'}
{* Логин *}
{component 'field' template='text'
name = 'login'
rules = [ 'required' => true, 'rangelength' => '[2,20]' ]
label = $aLang.auth.login.form.fields.login.label}
{* Пароль *}
{component 'field' template='text'
name = 'password'
type = 'password'
rules = [ 'required' => true, 'rangelength' => '[2,20]' ]
label = $aLang.auth.labels.password}
{* Каптча *}
{if Config::Get('general.login.captcha')}
{component 'field' template='captcha'
name = 'captcha'
captchaName = 'user_auth'
label = $aLang.auth.labels.captcha}
{/if}
{* Запомнить *}
{component 'field' template='checkbox'
name = 'remember'
label = $aLang.auth.login.form.fields.remember.label
checked = true}
{hook run='form_login_end'}
{if $redirectUrl}
{component 'field' template='hidden' name='return-path' value=$redirectUrl}
{/if}
{component 'button' name='submit_login' mods='primary' text=$aLang.auth.login.form.fields.submit.text}
</form>
{if $smarty.local.showExtra}
<div class="pt-20">
<a href="{router page='registration'}">{$aLang.auth.registration.title}</a><br />
<a href="{router page='login'}reset/">{$aLang.auth.reset.title}</a>
</div>
{/if}
{hook run='login_end'}