mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-07-16 21:34:25 +03:00
21 lines
504 B
Smarty
21 lines
504 B
Smarty
{**
|
|
* Каптча
|
|
*
|
|
* @scripts <framework>/js/livestreet/captcha.js
|
|
*}
|
|
|
|
{extends './field.text.tpl'}
|
|
|
|
{block 'field_input' prepend}
|
|
<span data-type="captcha" data-captcha-name="{$smarty.local.captchaName}" class="field--captcha-image"></span>
|
|
|
|
{$_rules = [
|
|
'required' => true,
|
|
'remote' => {router page='ajax/captcha/validate'},
|
|
'remote-method' => 'POST',
|
|
'remote-param-name' => $smarty.local.captchaName
|
|
]}
|
|
|
|
{$_inputClasses = "$_inputClasses width-100"}
|
|
{/block}
|