44 lines
1.6 KiB
Smarty
44 lines
1.6 KiB
Smarty
{extends "index.tpl"}
|
|
|
|
{block "css-entry" append}
|
|
{encore_entry_link_tags entry='htmlpage'}
|
|
{/block}
|
|
|
|
{block "content"}
|
|
<div class="page-newsletter">
|
|
<h1>{t}Přihlášení k zasílání novinek{/t}</h1>
|
|
|
|
<div class="page-content">
|
|
{insert_page type="NEWSLETTER_SUBSCRIBE" exists='exists'}
|
|
|
|
{block "user-messages"}
|
|
{include "block.messages.tpl"}
|
|
{/block}
|
|
|
|
{if !$body.hide_form}
|
|
<form name="login" method="post" action="{$ctrl.currUrl.Abs}" {ifmodule RECAPTCHA__CLOUDFLARE}data-wpj-captcha-lazy="newsletter-full"{/ifmodule}>
|
|
<div class="form-group">
|
|
<input class="form-control" type="email" id="email" name="email" value="{$body.email}" maxlength="70"
|
|
placeholder="{t}Zadejte Váš e-mail{/t}" required>
|
|
{ifmodule RECAPTCHA__CLOUDFLARE}
|
|
<input class="btn btn-primary" type="submit" name="Submit" value="{t}Přihlásit se{/t}">
|
|
{if $body.email}
|
|
<script>wpj.onReady.push(function (){ wpj.captcha.initializeCaptcha($('form[data-wpj-captcha-lazy="newsletter-full"]')); })</script>
|
|
{/if}
|
|
{elsemodule}
|
|
{include "block.recaptcha.invisible.tpl"}
|
|
{sharedCaptchaBtn text="{t}Přihlásit se{/t}" class="btn btn-primary"}
|
|
{/ifmodule}
|
|
</div>
|
|
</form>
|
|
{/if}
|
|
</div>
|
|
</div>
|
|
{/block}
|
|
|
|
{block "js-dynamic-load" append}
|
|
{if !$body.hide_form}
|
|
{captchaScript}
|
|
{/if}
|
|
{/block}
|