{extends file="actions/action.tpl"}
{block "action"}
   <div class="form-group">
      <div class="col-md-2 control-label"><label>{'userName'|translate:'bonus_program'}</label></div>
      <div class="col-md-4">
         <select name="{$name}[data][other_receiver_user_id]" class="selecter"
                 data-autocomplete="users" data-preload="users">
             {if {$data.other_receiver_user_id}}
                <option value="{$data.other_receiver_user_id}"
                        selected>{$data.other_receiver_user_id}</option>
             {/if}
         </select>
      </div>
   </div>
   <div class="form-group">
       <div class="col-md-2 control-label"><label>{'count'|translate:'bonus_program'}</label></div>
       <div class="col-md-3">
           <div class="input-group">
               <input type="number" min=0 class="form-control input-sm" name="{$name}[data][other_receiver_fixed_amount]" maxlength="11" value="{$data.other_receiver_fixed_amount}">
               <span class="input-group-addon">
                   {'points'|translate:'bonus_program'}
               </span>
           </div>
       </div>
       <div class="col-md-3 control-label" style="white-space: nowrap;">
           <label>{'percentFromPrice'|translate:'bonus_program'}</label>&nbsp;
           <a class="help-tip" data-toggle="tooltip"
              title="{'percentFromPriceTitle'|translate:'bonus_program'}"
              style="position: static;"><i
                       class="bi bi-question-circle"></i></a>
       </div>
       <div class="col-md-3">
           <div class="input-group">

              <input type="number" class="form-control input-sm" name="{$name}[data][other_receiver_percent_from_price]"
                     value="{$data.other_receiver_percent_from_price}" maxlength="2" min="0" max="100" step="0.1" style="min-width: 55px;">
              <span class="input-group-addon">%</span>
           </div>
       </div>
   </div>

    {include 'block.productsFilter.tpl' filter_size=2 filter=$data.other_receiver_filter filterName=$name filterInputName=$name|cat:'[data][other_receiver_filter]' filterEnabled=true}
{/block}
