<div id="flapB2B" class="tab-pane fade in boxFlex">

   <h4 class="main-panel-title">Objednávky</h4>

   <div class="form-group">
      <div class="col-md-2 control-label">
         <label>Minimální cena objednávky</label>
      </div>
      <div class="col-md-2">
         <div class="input-group">
            <input type="number" class="form-control input-sm" name="data[b2b][minOrderPrice]" min="0"
                   value="{$body.data.b2b.minOrderPrice}">
            <span class="input-group-addon">Kč</span>
         </div>
      </div>
   </div>

  {ifmodule RETURNS}
    <h4 class="main-panel-title">Vratky</h4>

    <div class="form-group">
       <div class="col-md-4 control-label">
          <label>Povolit B2B uživatelům vytvářet vratky</label>
       </div>
       <div class="col-md-1">
           {print_toggle name="b2b][allowCreateReturns" value=$body.data.b2b.allowCreateReturns}
       </div>
    </div>
 {/ifmodule}


    <h4 class="main-panel-title">Uživatelé</h4>
    <div class="form-group">
       <div class="col-md-4 control-label">
          <label>Zakázat B2B uživatelům editaci fakturačních údajů</label>
         <a class="help-tip" data-toggle="tooltip" title="v košíku, v uživatelském účtu"><i class="bi bi-question-circle"></i></a>
       </div>
       <div class="col-md-1">
           {print_toggle name="b2b][disallowEditB2B" value=$body.data.b2b.disallowEditB2B}
       </div>
    </div>
   {ifmodule USER_ADDRESSES}
      <div class="form-group">
         <div class="col-md-4 control-label">
            <label>{'edit_user_addresses'|translate: 'UserAddresses'}</label>
         </div>
         <div class="col-md-1">
            {print_toggle name="edit_user_addresses" numeric=1}
         </div>
         <div class="col-md-7">
            <span class="help-block">{'edit_user_addresses_tooltip'|translate: 'UserAddresses'}</span>
         </div>
      </div>
   {/ifmodule}

    <h4 class="main-panel-title">Registrační formulář</h4>
    <div class="form-group">
       <div class="col-md-3 control-label">
          <label>Vytvářet při registraci uživatele</label>
         <a class="help-tip" data-toggle="tooltip" title="Uživatel bude vytvořen s údaji z formuláře, ale bude neaktivní, dokud mu účet neaktivujete."><i class="bi bi-question-circle"></i></a>
       </div>
       <div class="col-md-1">
           {print_toggle name="b2b][formCreateUser" value=$body.data.b2b.formCreateUser}
       </div>
    </div>
   <div class="form-group">
       <div class="col-md-3 control-label">
          <label>Email pro nové registrace</label>
         <a class="help-tip" data-toggle="tooltip" title="Na tento email budou zasílány nové registrace"><i class="bi bi-question-circle"></i></a>
       </div>
       <div class="col-md-4">
          <input type="text" class="form-control input-sm" name="data[b2b][formCreateEmail]" placeholder="{$dbcfg.order_shopkeeper_mail}"
                    value="{$body.data.b2b.formCreateEmail}">
       </div>
    </div>

   {include 'block.b2b.invoicing-data.tpl' placeholdersData=$body.data}
</div>
