2017-01-22 09:15:53 +01:00
|
|
|
<tr data-count="{{ count }}" class="rule-action-holder">
|
2016-01-14 16:41:15 +01:00
|
|
|
<td style="width:40px;">
|
|
|
|
<a href="#" class="btn btn-danger btn-sm remove-action"><i class="fa fa-trash"></i></a>
|
|
|
|
</td>
|
|
|
|
<td style="width:30%;">
|
2018-09-15 13:43:57 +02:00
|
|
|
{# todo error when invalid name. #}
|
2018-12-21 09:01:21 +01:00
|
|
|
<select name="actions[{{ count }}][type]" class="form-control">
|
|
|
|
{% for key,type in allRuleActions() %}
|
|
|
|
<option value="{{ key }}" label="{{ type }}" {% if key == oldAction %} selected{% endif %}>{{ type }}</option>
|
2016-01-14 16:41:15 +01:00
|
|
|
{% endfor %}
|
|
|
|
</select>
|
|
|
|
</td>
|
2018-09-13 20:48:02 +02:00
|
|
|
<td style="position: relative;">
|
2016-01-14 19:20:02 +01:00
|
|
|
|
2018-12-09 20:54:11 +01:00
|
|
|
<input autocomplete="off" type="text" value="{{ oldValue }}" name="actions[{{ count }}][value]"
|
2016-01-14 19:20:02 +01:00
|
|
|
class="form-control">
|
2018-12-09 20:54:11 +01:00
|
|
|
{% if errors.has('actions.'~count~'.value') %}
|
2016-01-14 19:20:02 +01:00
|
|
|
<p class="text-danger">
|
2018-12-09 20:54:11 +01:00
|
|
|
{{ errors.first('actions.'~count~'.value') }}
|
2016-01-14 19:20:02 +01:00
|
|
|
</p>
|
|
|
|
{% endif %}
|
2016-01-14 16:41:15 +01:00
|
|
|
</td>
|
|
|
|
<td style="width:20%;">
|
|
|
|
<div class="checkbox">
|
|
|
|
<label>
|
2018-12-09 20:54:11 +01:00
|
|
|
<input type="checkbox" name="actions[{{ count }}][stop_processing]" value="1"
|
2016-01-14 19:20:02 +01:00
|
|
|
{% if oldChecked %}checked{% endif %}
|
|
|
|
/>
|
2016-01-14 16:41:15 +01:00
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</td>
|
2016-01-28 21:50:20 +01:00
|
|
|
</tr>
|