{extends "index.tpl"}

{block "css-entry" append}
    {encore_entry_link_tags entry='htmlpage'}
{/block}

{block content}
   <div class="page-login two-factor">
      <h1>{t}Dvoufaktorové ověření{/t}</h1>

      <div class="page-two-factor">
          {include "block.messages.tpl"}

          {block "twofactor-info"}
             <div>
                 {if $ctrl.user.country == "CZ"}
                     {$prephone = "+420"}
                 {else}
                     {$prephone = "+421"}
                 {/if}
                <p>{t phone=$body.phone prephone=$prephone escape=false}Na telefonní číslo <strong>{prephone} xxx xxx {phone}</strong>, které evidujeme ve Vašem účtu,<br>jsme právě odeslali SMS s ověřovacím kódem.{/t}</p>
                <p class="contact-address">{t}Není to Vaše číslo? Napište nám na{/t} <a href="mailto:{$dbcfg.shop_email}">{$dbcfg.shop_email}</a></p>
             </div>
          {/block}
         <div class="form-two-factor">
            <form name="login" method="post">
               <div class="form-group">
                  <input type="text" name="_auth_code" class="form-control" id="auth_code" placeholder="{t}Ověřovací kód{/t}" autocomplete="one-time-code">
               </div>
               <input class="btn btn-primary" type="submit" name="Submit" value="{t}Přihlásit se{/t}">
            </form>
            <a href="/2fa_resend" class="btn btn-secondary">{t}Znovu odeslat{/t}</a>
            <a href="/log-out" class="btn btn-secondary">{t}Zrušit{/t}</a>
         </div>
      </div>
   </div>
{/block}
