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

      <div class="isl-margin">
        If the order total is at least
        <?php echo $currency; ?> <input type="text" name="<?php echo $module_setting; ?>[condition_min_amount]" value="<?php echo $setting['item']['condition_min_amount']; ?>" class="form-control input-sm isl-inline-block isl-w-xs isl-mh-5" required>
      </div>

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

      <div class="isl-margin">
        Then they will get
        <input type="text" name="<?php echo $module_setting; ?>[discount_value]" value="<?php echo $setting['item']['discount_value']; ?>" class="form-control input-sm isl-inline-block isl-w-xs isl-mh-5" required> % off
        <input type="number" name="<?php echo $module_setting; ?>[discount_quantity]" value="<?php echo $setting['item']['discount_quantity']; ?>" min="1" class="form-control input-sm isl-inline-block isl-w-xs isl-mh-5" required>
        unit(s)
      </div>

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

      <div class="isl-margin">
        of the
        <select name="<?php echo $module_setting; ?>[discount_qualifier]" class="form-control input-sm isl-inline-block isl-w-xs isl-mh-5">
          <option value="least" <?php echo $setting['item']['discount_qualifier'] == 'least' ? 'selected' : ''; ?>>least</option>
          <option value="most" <?php echo $setting['item']['discount_qualifier'] == 'most' ? 'selected' : ''; ?>>most</option>
        </select>
        expensive item(s) in the cart
      </div>

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

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