{% extends "./layout/default.twig" %} {% block breadcrumbs %} {{ Breadcrumbs.renderIfExists(Route.getCurrentRoute.getName) }} {% endblock %} {% block content %}

{{ 'rules'|_ }}

{{ 'rules_explanation'|_ }}

{% for ruleGroup in ruleGroups %}

{% if ruleGroup.active %} {{ ruleGroup.title }} {% else %} {{ ruleGroup.title }} (inactive) {% endif %}

{{ ruleGroup.description }}

{% if ruleGroup.rules.count > 0 %} {% for rule in ruleGroup.rules %} {% endfor %}
{{ 'rule_name'|_ }} {{ 'rule_triggers'|_ }} {{ 'rule_actions'|_ }}
{% if rule.order > 1 %} {% else %} {% endif %} {% if rule.order < ruleGroup.rules.count %} {% else %} {% endif %}
{% if rule.active %} {{ rule.title }} {% else %} {{ rule.title }} (inactive) {% endif %} {% if rule.stop_processing %} {% endif %} {% if rule.description != "" %}
{{ rule.description }}
{% endif %}
{% if rule.ruleTriggers.count > 0 %}
    {% for trigger in rule.ruleTriggers %} {% if trigger.trigger_type != "user_action" %}
  • {{ trans(('firefly.rule_trigger_' ~ trigger.trigger_type), {trigger_value: trigger.trigger_value}) }} {% if trigger.stop_processing %} {% endif %}
  • {% endif %} {% endfor %}
{% endif %}
{% if rule.ruleActions.count > 0 %}
    {% for action in rule.ruleActions %}
  • {{ trans(('firefly.rule_action_' ~ action.action_type), {action_value: action.action_value}) }} {% if action.stop_processing %} {% endif %}
  • {% endfor %}
{% endif %}
{% else %}

{{ 'no_rules_in_group'|_ }}

{% endif %}


{{ 'new_rule'|_ }}

{% endfor %}
{{ 'new_rule_group'|_ }}
{% endblock %} {% block scripts %} {% endblock %}