{% extends "./layout/default" %} {% block breadcrumbs %} {{ Breadcrumbs.render(Route.getCurrentRoute.getName, rule) }} {% endblock %} {% block content %} {{ Form.model(rule, {'class' : 'form-horizontal','id' : 'store','url' : route('rules.update', rule.id)}) }}

{{ 'mandatoryFields'|_ }}

{{ ExpandedForm.text('title') }} {{ ExpandedForm.ruleGroupList('rule_group_id', ruleGroup.id) }} {{ ExpandedForm.select('trigger',allJournalTriggers(), primaryTrigger) }} {# only correct way to do active checkbox #} {{ ExpandedForm.checkbox('active', 1, null, {helpText: trans('firefly.rule_help_active')}) }} {{ ExpandedForm.checkbox('stop_processing',1,rule.stop_processing, {helpText: trans('firefly.rule_help_stop_processing')}) }} {{ ExpandedForm.checkbox('strict',1,rule.strict, {helpText: trans('firefly.rule_help_strict')}) }}
{# optional fields #}

{{ 'optionalFields'|_ }}

{{ ExpandedForm.textarea('description', null, {helpText: trans('firefly.field_supports_markdown')}) }}

{{ 'rule_triggers'|_ }}

{% for trigger in oldTriggers %} {{ trigger|raw }} {% endfor %}
{{ 'trigger'|_ }} {{ 'trigger_value'|_ }} {{ 'stop_processing_other_triggers'|_ }}


{{ 'add_rule_trigger'|_ }} {{ 'test_rule_triggers'|_ }}

{% include '/rules/partials/test-trigger-modal' %}

{{ 'rule_actions'|_ }}

{% for action in oldActions %} {{ action|raw }} {% endfor %}
{{ 'action'|_ }} {{ 'action_value'|_ }} {{ 'stop_executing_other_actions'|_ }}


{{ 'add_rule_action'|_ }}

{# panel for options #}

{{ 'options'|_ }}

{{ ExpandedForm.optionsList('update','rule') }}
{{ Form.close|raw }} {% endblock %} {% block scripts %} {% endblock %}