This commit is contained in:
James Cole
2020-06-26 07:28:25 +02:00
parent 8da6ec3f5b
commit 5a03f3395c
7 changed files with 83 additions and 63 deletions

View File

@@ -56,22 +56,23 @@
</p>
{% if ruleGroup.rules.count > 0 %}
<table class="table table-hover table-striped">
<table class="table table-hover table-striped group-rules">
<thead>
<tr>
<th>&nbsp;</th>
<th>&nbsp;</th>
<th>&nbsp;</th>
<th>{{ 'rule_name'|_ }}</th>
<th class="hidden-xs">{{ 'rule_triggers'|_ }}</th>
<th class="hidden-xs">{{ 'rule_actions'|_ }}</th>
<th style="width:5%;">&nbsp;</th>
<th style="width:10%;">&nbsp;</th>
<th style="width:10%;">&nbsp;</th>
<th style="width:25%;">{{ 'rule_name'|_ }}</th>
<th style="width:25%;" class="hidden-xs">{{ 'rule_triggers'|_ }}</th>
<th style="width:25%;" class="hidden-xs">{{ 'rule_actions'|_ }}</th>
</tr>
</thead>
<tbody>
<tbody class="rule-connected-list">
{% for rule in ruleGroup.rules %}
<tr>
<tr class="single-rule" data-order="{{ rule.order }}" data-id="{{ rule.id }}" data-group-id="{{ ruleGroup.id }}" data-position="{{ loop.index0 }}">
<td>
<div class="btn-group btn-group-xs prio_buttons">
{#
{% if rule.order > 1 %}
<a title="{{ 'rule_priority_up'|_ }}"
href="{{ route('rules.up', rule.id) }}"
@@ -91,6 +92,8 @@
<button disabled="disabled" class="btn btn-default"><span
class="fa fa-fw"></span></button>
{% endif %}
#}
<i class="fa fa-fw fa-bars rule-handle"></i>
</div>
</td>
<td>
@@ -144,7 +147,7 @@
</td>
<td class="hidden-xs">
{% if rule.ruleTriggers.count > 0 %}
<ul class="small rule-triggers" data-id="{{ rule.id }}">
<ul class="small" data-id="{{ rule.id }}">
{% for trigger in rule.ruleTriggers %}
{% if trigger.trigger_type != "user_action" %}
<li
@@ -164,7 +167,7 @@
</td>
<td class="hidden-xs">
{% if rule.ruleActions.count > 0 %}
<ul class="small rule-actions" data-id="{{ rule.id }}">
<ul class="small" data-id="{{ rule.id }}">
{% for action in rule.ruleActions %}
<li
{% if not rule.active %}