{extends file="actions/action.tpl"}
{block "action"}
   <div class="form-group">
       <div class="col-md-2 control-label"><label>{'add'|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][discount]" maxlength="11" value="{$data.discount}">
               <span class="input-group-addon">
                   {'points'|translate:'bonus_program'}
               </span>
           </div>
       </div>
       <div class="col-md-3 control-label" style="white-space: nowrap;">{'or'|translate:'bonus_program'}
           <label>{'multiply'|translate:'bonus_program'}</label>&nbsp;
           <a class="help-tip" data-toggle="tooltip"
              title="{'multiplyTitle'|translate:'bonus_program'}"
              style="position: static;"><i
                       class="bi bi-question-circle"></i></a>

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

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