{extends "index.tpl"}

{block "content"}
   <div class="page-newsletter p-b-3 m-b-3">

      <h1 class="text-center">{t}Odhlášení ze zasílání novinek{/t}</h1>

      {block "user-messages"}
         {include "block.messages.tpl"}
      {/block}

      {if $body.unsubscribed}
         <p class="text-center m-b-2">
            <strong>{t adresa=$body.unsubscribed}E-mailová adresa {adresa} byla odhlášena ze zasílání novinek.{/t}</strong></p>
      {else}
         <form name="login" method="post" action="{$ctrl.currUrl.Abs}">
            <div class="form-group">
               <label for="email">{t}Zadejte Váš e-mail:{/t}</label>
               <input class="input form-control" type="text" id="email" name="email" value="{$body.email}" required>
               <input class="btn btn-primary" type="submit" name="Submit" value="{t}Přihlásit{/t}">
            </div>
         </form>
      {/if}

      {if $cfg.social|count}
         <div class="text-center">
            <h3>{t}Sledujte nás na sociálních sítích{/t}</h3>
            {block 'newsletter-social'}
               {if $cfg.social.facebook}
                  <a href="{$cfg.social.facebook}" class="social-link" title="Facebook"><span class="fc icons_facebook"></span></a>
               {/if}
               {if $cfg.social.instagram}
                  <a href="{$cfg.social.instagram}" class="social-link" title="Instagram"><span class="fc icons_instagram"></span></a>
               {/if}
            {/block}
         </div>
      {/if}
   </div>
{/block}

{block newsletter}
{/block}

