<div id="flapReclamationsLanguageSettings" class="tab-pane boxStatic box">
   <div class="row bottom-space">
      <div class="col-md-12">
         <h1 class="h4 main-panel-title">{'flapReclamationsSettings'|translate:'reclamationsWindowTab'}</h1>
      </div>
   </div>

   <div class="form-group">
      <div class="col-md-2 control-label">
         <label>
            {'reclamation_days'|translate:'reclamationsWindowTab'}
            <a class="help-tip" data-toggle="tooltip" title="" data-original-title="{'reclamation_days_tooltip'|translate:'reclamationsWindowTab'}"><i class="bi bi-question-circle"></i></a>
         </label>
      </div>
      <div class="col-md-3">
         <input type="text" class="form-control input-sm" name="data[reclamations][days]" size="30" placeholder="{$dbcfg.reclamations.days}" value="{$body.data.reclamations.days}">
      </div>
   </div>

   <div class="form-group">
      <div class="col-md-2 control-label">
         <label>
             {'delivery'|translate:'reclamationsWindowTab'}
             <a class="help-tip" data-toggle="tooltip" title="" data-original-title="{'reclamationsDelivery'|translate:'reclamationsWindowTab'}">
               <i class="bi bi-question-circle"></i>
             </a>
         </label>
      </div>
      <div class="col-md-3">
         <select class="selecter" name="data[reclamations][delivery]">
            <option value="0">-- nevybráno --</option>
             {foreach $tab.data.deliveries as $delivery}
                <option value="{$delivery.id}" {if $body.data.reclamations.delivery == $delivery.id}selected{/if}>{$delivery.name_admin|default:$delivery.name}</option>
             {/foreach}
         </select>
      </div>
   </div>


   <div class="row bottom-space">
      <div class="col-md-12">
         <h1 class="h4 main-panel-title">{'flapReclamationsInstructions'|translate:'reclamationsWindowTab'}</h1>
      </div>
   </div>

   <div class="panel panel-default" id="#reclamations_symbols">
      <div class="panel-heading" data-toggle="collapse" data-target="#reclamations-symbol-collapse">
         Zástupné symboly
         <i class="glyphicon glyphicon-minus-sign"></i>
      </div>

      <div class="panel-collapse collapse symbol-collapse" id="reclamations-symbol-collapse">
          {$placeholders = $tab.data.tabView->getPlaceholders()}
          {$half = (($placeholders|count)/ 2)|round}
          {foreach $placeholders as $key => $placeholder}
              {if $placeholder@first}
                 <div>
                 <table class="table table-striped">
              {/if}
              {if $placeholder@index == $half}
                 </table>
                 </div>
                 <div>
                 <table class="table table-striped">
              {/if}
             <tr>
                <td><strong>{literal}{{/literal}{$key}{literal}}{/literal}</strong></td>
                <td>{$placeholder.text nofilter}</td>
             </tr>
              {if $placeholder@last}
                 </table>
                 </div>
              {/if}
          {/foreach}
      </div>
   </div>

   <div class="form-group">
      <div class="col-md-3 control-label"><label>{'returnDescr'|translate:'reclamationsWindowTab'}</label></div>
      <div class="col-md-8">
         <textarea name="data[reclamations][descr]" rows="14" cols="30" placeholder="{$dbcfg.reclamations.descr}">{$body.data.reclamations.descr}</textarea>
          {insert_wysiwyg target="data[reclamations][descr]"}
      </div>
   </div>
</div>
