{extends "focus/focus.base.tpl"}

{block "focus-title"}
   {t}Přihlášení{/t}
{/block}

{block "focus-content"}
   <form method="post" action="{url s=login}">
      <input type="hidden" name="url" value="{$ctrl.currUrl.Rel}">

      <div class="form-group">
         <input type="email" name="login" value="{$body.inputLogin}" placeholder="{t}E-mail{/t}" aria-label="{t}E-mail{/t}"
                class="form-control">
      </div>
      <div class="form-group">
         <input type="password" name="password" value="" placeholder="{t}Heslo{/t}" aria-label="{t}Heslo{/t}" class="form-control"
                autocomplete="current-password">
      </div>
      <div class="text-center">
         <input class="btn btn-primary" type="submit" value="{t}Přihlásit se{/t}" name="Submit">
      </div>
   </form>
   {ifmodule USER_OAUTH}
   {if $dbcfg.oauth.facebook.client_id or $dbcfg.oauth.google.client_id}
      <div class="oauth-login">
         <p class="text-center">{t}nebo{/t}</p>
         <div class="oauth-buttons">
            {if $dbcfg.oauth.facebook.client_id}
               <a href="/login-bind/facebook" class="btn fb"><span class="icon"></span><span
                     class="text">{t}Facebook přihlášení{/t}</span></a>
            {/if}
            {if $dbcfg.oauth.google.client_id}
               <a href="/login-bind/google" class="btn gp"><span class="icon"></span><span
                     class="text">{t}Google přihlášení{/t}</span></a>
            {/if}
            {ifmodule USER_OAUTH__SEZNAM_LOGIN}
            {if $dbcfg.oauth.seznam.client_id}
               <a href="/login-bind/seznam" class="btn sz"><span class="icon"></span><span
                     class="text">{t}Seznam přihlášení{/t}</span></a>
            {/if}
            {/ifmodule}
            {ifmodule USER_OAUTH__AMAZON_LOGIN}
            {if $dbcfg.oauth.amazon.client_id}
               <a href="/login-bind/amazon" class="btn amazon"><span class="icon"></span><span
                     class="text">{t}Amazon přihlášení{/t}</span></a>
            {/if}
            {/ifmodule}
            {ifmodule USER_OAUTH__APPLE_LOGIN}
            {if $dbcfg.oauth.apple.client_id}
               <a href="/login-bind/apple" class="btn apple"><span class="icon"></span><span
                     class="text">{t}Apple přihlášení{/t}</span></a>
            {/if}
            {/ifmodule}
         </div>
      </div>
   {/if}
   {/ifmodule}
   <div class="focus-footer">
      <p><a href="{url s=login act=passw}">{t}Zapomenuté heslo.{/t}</a></p>
      <p>{* @formatter:off *}
         {t escape=false url={url s=user act=new}}Jste tu poprvé? <a href="{url}">Zaregistrujte se</a>.{/t}
         {* @formatter:on *}
      </p>
   </div>
{/block}
