{extends "index.tpl"}

{block "content"}
   <div class="page-newsletter">
      <h1>{t}Přihlášení k zasílání novinek{/t}</h1>

      {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}" style="width: 250px; margin: 20px auto;">
            <div class="form-group">
               <label for="email">{t}Zadejte Váš e-mail{/t}:</label>
               <input class="input form-control" type="email" id="email" name="email" value="{$body.email}" maxlength="70"
                      style="width: 250px;" required>
               {include "block.recaptcha.invisible.tpl"}
               {sharedCaptchaBtn text="{t}Přihlásit{/t}" class="btn" style="width: 250px; margin-top: 10px;"}
            </div>
         </form>
      {/if}
   </div>
{/block}

{block "js-dynamic-load" append}
   {if !$body.hide_form}
      {captchaScript}
   {/if}
{/block}
