mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-12-12 01:42:32 +00:00
Move v1 views
This commit is contained in:
32
resources/views/rules/partials/action.twig
Normal file
32
resources/views/rules/partials/action.twig
Normal 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>
|
||||
21
resources/views/rules/partials/test-trigger-modal.twig
Normal file
21
resources/views/rules/partials/test-trigger-modal.twig
Normal 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>×</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>
|
||||
34
resources/views/rules/partials/trigger.twig
Normal file
34
resources/views/rules/partials/trigger.twig
Normal 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>
|
||||
Reference in New Issue
Block a user