Move v1 views

This commit is contained in:
James Cole
2022-01-29 14:15:34 +01:00
parent a12fd4a3ae
commit 6da6a68e33
251 changed files with 17989 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
<tr data-count="{{ count }}" class="rule-action-holder">
<td style="width:40px;">
<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 #}
<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>
{% endfor %}
</select>
</td>
<td style="position: relative;">
<input autocomplete="off" type="text" value="{{ oldValue }}" name="actions[{{ count }}][value]"
class="form-control">
{% if errors.has('actions.'~count~'.value') %}
<p class="text-danger">
{{ errors.first('actions.'~count~'.value') }}
</p>
{% endif %}
</td>
<td style="width:20%;">
<div class="checkbox">
<label>
<input type="checkbox" name="actions[{{ count }}][stop_processing]" value="1"
{% if oldChecked %}checked{% endif %}
/>
</label>
</div>
</td>
</tr>

View File

@@ -0,0 +1,21 @@
<div class="modal fade" id="testTriggerModal" tabindex="-1" role="dialog" aria-labelledby="testTriggerLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span>&times;</span></button>
<h4 class="modal-title" id="testTriggerLabel">{{ 'test_rule_triggers'|_ }}</h4>
</div>
<div class="modal-body">
<div class="transaction-warning alert alert-warning">
<h4><span class="icon fa fa-warning"></span> {{ 'flash_warning'|_ }}</h4>
<span class="warning-contents"></span>
</div>
<div class="transactions-list">
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">{{ 'close'|_ }}</button>
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,34 @@
<tr data-count="{{ count }}" class="rule-trigger-holder">
<td style="width:40px;">
<a href="#" class="btn btn-danger btn-sm remove-trigger"><span class="fa fa-trash"></span></a>
</td>
<td style="width:30%;">
<select name="triggers[{{ count }}][type]" class="form-control">
{% for key,type in triggers %}
<option value="{{ key }}" label="{{ type }}"
{% if key == oldTrigger %}
selected
{% endif %}
>{{ type }}</option>
{% endfor %}
</select>
</td>
<td>
<input autocomplete="off" type="text" value="{{ oldValue }}" name="triggers[{{ count }}][value]"
class="form-control">
{% if errors.has('triggers.'~count~'.value') %}
<p class="text-danger">
{{ errors.first('triggers.'~count~'.value') }}
</p>
{% endif %}
</td>
<td style="width:20%;">
<div class="checkbox">
<label>
<input type="checkbox" name="triggers[{{ count }}][stop_processing]" value="1"
{% if oldChecked %}checked{% endif %}
/>
</label>
</div>
</td>
</tr>