Files
kupshop/web/templates/elnino/user.tpl
2025-08-02 16:30:27 +02:00

50 lines
1.3 KiB
Smarty

{extends "index.tpl"}
{block "css-entry" append}
{encore_entry_link_tags entry='user'}
{/block}
{block "main"}
{if $body.newUser}
{include "user/user.new.tpl"}
{else}
{include "user/user.edit.tpl"}
{/if}
{/block}
{block "js-entry" append}
{encore_entry_script_tags entry='user'}
{/block}
{block "js-dynamic-load" append}
{asset_compile}
<script src="/common/static/bootstrapvalidator/js/bootstrapValidator.js"></script>
<script src="/common/static/bootstrapvalidator/js/language/{$ctrl.active_language_code}.js"></script>
{/asset_compile}
{if findModule('recaptcha','registration') and findModule('recaptcha','site_invisible') and $body.newUser}
{include "block.recaptcha.invisible.tpl"}
{captchaScript}
{/if}
{/block}
{block analytics append}
{include "components/block.smartForm.tpl"}
{/block}
<script>
{block onready append}
$('[data-form="user"]').on('click', '[data-toggle-password]', function() {
var $pw_field = $('#password');
if ($pw_field.attr('type') === 'password') {
$pw_field.attr('type', 'text');
$(this).html('{t}Skrýt{/t}');
} else {
$pw_field.attr('type', 'password');
$(this).html('{t}Zobrazit{/t}');
}
return false;
});
{/block}
</script>