{extends "../window.tpl"}

{block tabs}
   {windowTab id='titleTab'}
{/block}

{block tabsContent}
   <div id="titleTab" class="tab-pane fade active in boxFlex box">
      <div class="form-group">
         <div class="col-md-2 control-label">
            <label>{'tabName'|translate}</label>
         </div>
         <div class="col-md-10">
            <input type="text" class="form-control" name="data[name]" maxlength="255" value="{$body.data.name}" />
         </div>
      </div>

      <div class="form-group">
         <div class="col-md-2 control-label">
            <label>{'tabIco'|translate}</label>
         </div>
         <div class="col-md-10">
            <input type="text" class="form-control" name="data[ico]" maxlength="100" value="{$body.data.ico}" />
         </div>
      </div>

      <div class="form-group">
         <div class="col-md-2 control-label">
            <label>{'tabDic'|translate}</label>
         </div>
         <div class="col-md-10">
            <input type="text" class="form-control" name="data[dic]" maxlength="100" value="{$body.data.dic}" />
         </div>
      </div>

      <div class="form-group">
         <div class="col-md-2 control-label">
            <label>{'tabAddress'|translate}</label>
         </div>
         <div class="col-md-10">
            <textarea class="form-control" name="data[address]" rows="5" placeholder="{'addressPlaceholder'|translate}">{$body.data.address}</textarea>
         </div>
      </div>

      <div class="form-group">
         <div class="col-md-2 control-label">
            <label>{'tabphone'|translate}</label>
         </div>
         <div class="col-md-10">
            <input type="text" class="form-control" name="data[phone]" maxlength="100" value="{$body.data.phone}" />
         </div>
      </div>

      <div class="form-group">
         <div class="col-md-2 control-label">
            <label>{'tabEmail'|translate}</label>
         </div>
         <div class="col-md-10">
            <input type="text" class="form-control" name="data[email]" maxlength="100" value="{$body.data.email}" />
         </div>
      </div>

      <div class="form-group">
         <div class="col-md-2 control-label">
            <label>{'tabLink'|translate}</label>
         </div>
         <div class="col-md-10">
            <input type="text" class="form-control" name="data[order_url]" maxlength="100" value="{$body.data.order_url}" />
         </div>
      </div>
       <div class="form-group">
           <div class="col-md-2 control-label">
               <label>{'note'|translate}</label>
           </div>
           <div class="col-md-10">
               <textarea class="form-control" name="data[data][note]" rows="5">{$body.data.data.note}</textarea>
           </div>
       </div>
      {if findModule('stock_in')}
      <div class="form-group">
         <div class="col-md-2 control-label">
            <label>{'import_settings'|translate}</label>
               {if !$body.data.import_settings}
               <a href="/admin/static/files/ObecnyImportTemplate.xls" class="help-tip" data-toggle="tooltip" title="" data-original-title="
               Obecný import ve formátu xls, po kliknutí na tento otazníček vám stáhne ukázkový soubor"><i class="bi bi-question-circle"></i></a>
               {/if}
         </div>
         <div class="col-md-10">
            <textarea class="form-control" name="data[import_settings]" rows="5">{$body.data.import_settings}</textarea>
         </div>
      </div>
      {/if}

      {block "custom-data"}{/block}
   </div>

{/block}
