{extends file="[shared]/window.tpl"}

{block tabs}
   <li>
      <a data-toggle="tab" href="#ReturnCheck" data-tab="ReturnCheck">Kontrola vratky <b>{$body.data.id}</b><button onclick="nw('Returns', {$body.data.id|default:"document.getElementById('root').dataset.id"})" style="margin-left: 10px;" class="btn btn-sm">Detail vratky</button></a>
   </li>
{/block}

{block size}
   width = 1680;
   height = 1050;
{/block}


{block css append}
   {foreach $assets.css as $asset}
      <link href="{$asset}" rel="stylesheet">
   {/foreach}

   <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
   <meta name="theme-color" content="#000000">

   <link rel="manifest" href="/web/bundles/warehouse/check-app/manifest.json">
   <link rel="shortcut icon" href="/web/bundles/warehouse/check-app/favicon.ico">
{/block}

{block "js-onready"}
   {foreach $assets.js as $asset}
      <script type="text/javascript" src="{$asset}"></script>
   {/foreach}
{/block}

{block tabsContent}
   <div id="ReturnCheck" class="tab-pane fade in active boxStatic">
      <div id="root" data-type="return-check" data-id="{$body.data.id}"></div>
   </div>
{/block}

{block windowButtons}{/block}


<script type="text/javascript">
   {block onready}

   {if $body.acn=='erased'}
   refreshOpener(window.opener.top.mainFrame);
   closeWindow();
   {/if}
   {/block}
</script>
