{extends "returns/returns-new.tpl"}

{block "content"}
    {insert_page type="RETURN_LOGIN" use_default=1 assign="page"}
    {if $page.blocks[1].content}
        {$page.blocks[1].content nofilter}
    {/if}
   <div class="returns-login-row row">
      <div class="col-xxs-12 col-xs-12 col-lg-7">
         <div class="bg-alt">
            {$page.blocks[0].content nofilter}
         </div>
      </div>
      <div class="col-xxs-12 col-xs-12 col-lg-5 returns-login {if $ctrl.logged}logged-in{else}logged-out{/if}">
          {if $ctrl.logged}
             <span class="fc icons_user"></span>
             <p><strong>{t}Jste přihlášeni jako{/t}</strong>
                 {if $ctrl.user.name and $ctrl.user.surname}{$ctrl.user.name} {$ctrl.user.surname}{else}{$ctrl.email}{/if}</p>
             <a href="{path('kupshop_returns_returns_createreturn')}" class="btn btn-primary">{t}Pokračovat na výběr produktů{/t}</a>
          {else}
             <span class="fc icons_user"></span>
             <p class="title-default">{t}Máte u nás účet? Přihlaste se.{/t}</p>
             <a href="{url s=login}" class="btn btn-primary cart-signin">{t}Přihlásit se{/t}</a>
             <div class="separator">
                <span>{t}nebo{/t}</span>
             </div>
             <p class="title-default">{t}Nakupovali jste bez registrace?{/t}</p>
             <form action="{path('kupshop_returns_returns_createreturnslogin')}" method="post">
                <input type="email" name="email" class="form-control" placeholder="{t}E-mailová adresa{/t}">
                <input type="text" name="order_no" class="form-control" pattern="[A-Za-z0-9]*"
                         title="Uveďte pouze čísla 0-9 nebo znaky a-z." placeholder="{t}Číslo objednávky{/t}">
                <button type="submit" name="submit" value="1" class="btn btn-primary">{t}Načíst objednávku{/t}</button>
             </form>
          {/if}
      </div>
   </div>
   <div class="returns-faq">
       {if $page.blocks[2].content}
           {$page.blocks[2].content nofilter}
       {/if}
   </div>
{/block}
