Add reverse button

This commit is contained in:
James Cole
2022-10-01 07:19:33 +02:00
parent 749ce2ca9b
commit 5714bd0749
4 changed files with 12 additions and 1 deletions

View File

@@ -3,7 +3,7 @@
<a href="#" class="btn btn-danger btn-sm remove-action"><span class="fa fa-trash"></span></a>
</td>
<td style="width:30%;">
{# See reference nr. 2 #}
{# See reference nr. 2 #}
<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>

View File

@@ -13,6 +13,15 @@
{% endfor %}
</select>
</td>
<td style="width:40px;">
<div class="checkbox">
<label>
<input type="checkbox" name="triggers[{{ count }}][prohibited]" value="1"
{% if oldProhibited %}checked{% endif %}
/>
</label>
</div>
</td>
<td>
<input autocomplete="off" type="text" value="{{ oldValue }}" name="triggers[{{ count }}][value]"
class="form-control">

View File

@@ -51,6 +51,7 @@
<thead>
<tr>
<th colspan="2">{{ 'trigger'|_ }}</th>
<th>{{ 'is_not_rule_trigger'|_ }}</th>
<th>{{ 'trigger_value'|_ }}</th>
<th>{{ 'stop_processing_other_triggers'|_ }}</th>
</tr>