<ul class="isl-nodetree">
  <li>
    <div>

      <div class="isl-margin">
        Sepete
        <input type="number" name="{{ module_setting }}[discount_quantity]" value="{{ setting['item']['discount_quantity'] }}" min="1" class="form-control input-sm isl-inline-block isl-w-xs isl-mh-5" required>
        <label class="isl-p0 isl-mr-5" data-toggle="tooltip" title="Select this option to apply only once regardless of how many products are purchased."><input type="checkbox" name="{{ module_setting }}[apply_once]" value="1" {{ setting['item']['apply_once'] ? 'checked' : '' }}> (or more)</label>
        adet ürün eklenirse aşağıdaki ürüne
      </div>
      <div class="isl-margin isl-w-l">
        <input type="text" placeholder="Type product name" data-isl-autocomplete='{"type":"product", "target":"isl-autocomplete-a", "name":"{{ module_setting }}[discount_product_ids][]"}' class="form-control input-sm">
        <div class="well well-sm isl-well isl-autocomplete-a">
          {% for product in discount_product_ids_data %}
            <div class="isl-autocomplete-a{{ product['product_id'] }}"><i class="fa fa-minus-circle pointer"></i> {{ product['name'] }}<input type="hidden" name="{{ module_setting }}[discount_product_ids][]" value="{{ product['product_id'] }}"></div>
          {% endfor %}
        </div>
      </div>

    </div>
  </li>
  <li>
    <div>

      <div class="isl-margin">
        
        <input type="text" name="{{ module_setting }}[discount_value]" value="{{ setting['item']['discount_value'] }}" min="1" class="form-control input-sm isl-inline-block isl-w-xs isl-mh-5" required>
        <select name="{{ module_setting }}[discount_type]" class="form-control input-sm isl-inline-block isl-w-xs isl-mh-5">
          <option value="fixed" {{ setting['item']['discount_type'] == 'fixed' ? 'selected' : '' }}>{{ currency }}</option>
          <option value="percentage" {{ setting['item']['discount_type'] == 'percentage' ? 'selected' : '' }}>%</option>
        </select>
       indirim uygula
      </div>

    </div>
  </li>
</ul>

<script>
$(document).trigger('isl.autocomplete');
</script>
