2016-01-14 09:41:15 -06:00
|
|
|
<tr data-count="{{ count }}">
|
|
|
|
<td style="width:40px;">
|
|
|
|
<a href="#" class="btn btn-danger btn-sm remove-trigger"><i class="fa fa-trash"></i></a>
|
|
|
|
</td>
|
|
|
|
<td style="width:30%;">
|
2016-01-14 11:09:20 -06:00
|
|
|
{% if errors.has('rule-trigger.'~count) %}
|
|
|
|
<span class="form-control-feedback"><i class="fa fa-fw fa-remove"></i></span>
|
|
|
|
<p class="text-danger">{{ errors.first('rule-trigger.'~count) }}</p>
|
|
|
|
{% endif %}
|
|
|
|
|
2016-01-14 09:41:15 -06:00
|
|
|
<select name="rule-trigger[{{ count }}]" class="form-control">
|
2016-01-15 01:06:33 -06:00
|
|
|
{% for key,name in allRuleTriggers() %}
|
2016-01-14 11:09:20 -06:00
|
|
|
<option value="{{ key }}" label="{{ name }}"
|
|
|
|
{% if key == oldTrigger %}
|
|
|
|
selected
|
|
|
|
{% endif %}
|
|
|
|
>{{ name }}</option>
|
2016-01-14 09:41:15 -06:00
|
|
|
{% endfor %}
|
|
|
|
</select>
|
|
|
|
</td>
|
|
|
|
<td>
|
2016-01-14 11:57:52 -06:00
|
|
|
|
|
|
|
<input type="text" value="{{ oldValue }}" name="rule-trigger-value[{{ count }}]"
|
|
|
|
class="form-control">
|
|
|
|
{% if errors.has(('rule-trigger-value.'~count)) %}
|
2016-01-15 16:12:52 -06:00
|
|
|
<p class="text-danger">
|
|
|
|
{{ errors.first('rule-trigger-value.'~count) }}
|
|
|
|
</p>
|
2016-01-14 11:57:52 -06:00
|
|
|
{% endif %}
|
2016-01-14 09:41:15 -06:00
|
|
|
</td>
|
|
|
|
<td style="width:20%;">
|
|
|
|
<div class="checkbox">
|
|
|
|
<label>
|
2016-01-14 11:09:20 -06:00
|
|
|
<input type="checkbox" name="rule-trigger-stop[{{ count }}]" value="1"
|
|
|
|
{% if oldChecked %}checked{% endif %}
|
|
|
|
/>
|
2016-01-14 09:41:15 -06:00
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</td>
|
2016-01-28 14:50:20 -06:00
|
|
|
</tr>
|