{extends "index.tpl"}

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

      <div class="page-content">
         {block "user-messages"}
            {include "block.messages.tpl"}
         {/block}

         {if $body.unsubscribed}
            <p>
               <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">
                   <input class="input form-control" type="email" id="email" name="email" value="{$body.inputLogin}"
                          maxlength="70" required placeholder="{t}Zadejte Váš e-mail{/t}">
                   <input class="btn btn-primary" type="submit" name="Submit" value="{t}Odhlá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>
   </div>
{/block}

{block newsletter}
{/block}

