mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-07-08 01:14:24 +03:00
c31a235423
Остальные перенесены во фреймворк
54 lines
1.8 KiB
Smarty
54 lines
1.8 KiB
Smarty
{**
|
|
* Форма регистрации
|
|
*
|
|
* @param string $redirectUrl
|
|
*}
|
|
|
|
{$redirectUrl = $smarty.local.redirectUrl|default:$PATH_WEB_CURRENT}
|
|
|
|
{hook run='registration_begin'}
|
|
|
|
<form action="{router page='registration'}" method="post" class="js-auth-registration-form">
|
|
{hook run='form_registration_begin'}
|
|
|
|
{* Логин *}
|
|
{component 'field' template='text'
|
|
name = 'login'
|
|
rules = [ 'required' => true, 'rangelength' => '[2,20]', 'remote' => "{router page='registration'}ajax-validate-fields", 'remote-method' => 'POST' ]
|
|
label = $aLang.auth.labels.login}
|
|
|
|
{* E-mail *}
|
|
{component 'field' template='email' rules=[ 'remote' => "{router page='registration'}ajax-validate-fields", 'remote-method' => 'POST' ]}
|
|
|
|
{* Пароль *}
|
|
{component 'field' template='text'
|
|
name = 'password'
|
|
type = 'password'
|
|
rules = [ 'required' => true, 'rangelength' => '[5,20]' ]
|
|
label = $aLang.auth.labels.password
|
|
inputClasses = 'js-input-password-reg'}
|
|
|
|
{* Повторите пароль *}
|
|
{component 'field' template='text'
|
|
name = 'password_confirm'
|
|
type = 'password'
|
|
rules = [ 'required' => true, 'rangelength' => '[5,20]', 'equalto' => '.js-input-password-reg' ]
|
|
label = $aLang.auth.registration.form.fields.password_confirm.label}
|
|
|
|
{* Каптча *}
|
|
{component 'field' template='captcha'
|
|
name = 'captcha'
|
|
captchaName = 'user_signup'
|
|
label = $aLang.auth.labels.captcha}
|
|
|
|
{hook run='form_registration_end'}
|
|
|
|
{if $redirectUrl}
|
|
{component 'field' template='hidden' name='return-path' value=$redirectUrl}
|
|
{/if}
|
|
|
|
{component 'button' name='submit_register' mods='primary' text=$aLang.auth.registration.form.fields.submit.text}
|
|
</form>
|
|
|
|
{hook run='registration_end'}
|