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

      <div class="isl-margin">
        Order total at least
        <?php echo $currency; ?> <input type="text" name="<?php echo $module_setting; ?>[condition_min_amount]" value="<?php echo $setting['item']['condition_min_amount']; ?>" min="1" class="form-control input-sm isl-inline-block isl-w-xs isl-mh-5" required>,
        get one unit of the following products
      </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":"<?php echo $module_setting; ?>[condition_product_ids][]"}' class="form-control input-sm">
        <div class="well well-sm isl-well isl-autocomplete-a">
          <?php foreach ($condition_product_ids_data as $product) { ?>
            <div class="isl-autocomplete-a<?php echo $product['product_id']; ?>"><i class="fa fa-minus-circle pointer"></i> <?php echo $product['name']; ?><input type="hidden" name="<?php echo $module_setting; ?>[condition_product_ids][]" value="<?php echo $product['product_id']; ?>"></div>
          <?php } ?>
        </div>
      </div>

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

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

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

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