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

      <div class="isl-margin">
        Sepete
        <input type="number" name="{{ module_setting }}[condition_min_quantity]" value="{{ setting['item']['condition_min_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="Kaç adet ürün sepete eklediğine bakılmaksızın uygulamak isterseniz seçiniz."><input type="checkbox" name="{{ module_setting }}[apply_once]" value="1" {{ setting['item']['apply_once'] ? 'checked' : '' }}> (veya daha fazlası)</label>
        adet ürün eklendiyse aşağıdaki üründen
      </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 }}[condition_product_ids][]"}' class="form-control input-sm">
        <div class="well well-sm isl-well isl-autocomplete-a">
          {% for product in condition_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 }}[condition_product_ids][]" value="{{ product['product_id'] }}"></div>
          {% endfor %}
        </div>
      </div>

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

      <div class="isl-margin">
        aşağıdaki ürünlerden
        <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>
        tanesini ücretsiz yap
      </div>
      <div class="isl-margin isl-w-l">
        <input type="text" placeholder="Type product name" data-isl-autocomplete='{"type":"product", "target":"isl-autocomplete-b", "name":"{{ module_setting }}[discount_product_ids][]"}' class="form-control input-sm">
        <div class="well well-sm isl-well isl-autocomplete-b">
          {% for product in discount_product_ids_data %}
            <div class="isl-autocomplete-b{{ 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>
</ul>

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