{$codes = $data.codes}
{if is_array($codes)}{$codes = implode("\r\n", $data.codes)}{/if}
<div class="form-group">
    <div class="col-md-3 control-label">
        <label>{'couponCodes'|translate}</label>
        <a class="help-tip" data-toggle="tooltip" title="{'couponCodesTitle'|translate}"><i class="bi bi-question-circle"></i></a>
    </div>
    <div class="col-md-6">
        <textarea name="{$name}[data][codes]" class="form-control input-sm" rows="3" required>{$codes}</textarea>
    </div>
</div>
<div class="form-group">
   <div class="col-md-10 col-md-offset-3">
      <input type="hidden" name="{$name}[data][multiple]" value="N">
      <div class="checkbox">
         {$multiple = $data.multiple|default:"N"}
         <input id="{$name}" class="check" type="checkbox" name="{$name}[data][multiple]"
                value="Y" {if $multiple == "Y"}checked{/if} />
         <label for="{$name}">{'multiple'|translate:'OrderDiscounts'}</label>
      </div>
   </div>
</div>
