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

      <div class="isl-margin">
        Seçilen kategorilerin ürünlerine
        <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 class="isl-margin isl-w-l">
        <input type="text" placeholder="Type category name" data-isl-autocomplete='{"type":"category", "target":"isl-autocomplete-a", "name":"{{ module_setting }}[condition_category_ids][]"}' class="form-control input-sm">
        <div class="well well-sm isl-well isl-autocomplete-a">
          {% for category in condition_category_ids_data %}
            <div class="isl-autocomplete-a{{ category['category_id'] }}"><i class="fa fa-minus-circle pointer"></i> {{ category['path'] ? category['path'] ~ '&nbsp;&nbsp;&gt;&nbsp;&nbsp;' ~ category['name'] : category['name'] }}<input type="hidden" name="{{ module_setting }}[condition_category_ids][]" value="{{ category['category_id'] }}"></div>
          {% endfor %}
        </div>
      </div>

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

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