{% extends './v1/layout/default' %} {% block breadcrumbs %} {{ Breadcrumbs.render(Route.getCurrentRoute.getName, ruleGroup) }} {% endblock %} {% block content %}
{% if bill %}

{{ trans('firefly.create_rule_for_bill', {name: bill.name}) }}

{{ trans('firefly.create_rule_for_bill_txt', {name: bill.name}) }}

{% endif %}

{{ 'mandatoryFields'|_ }}

{{ ExpandedForm.text('title') }} {{ ExpandedForm.select('trigger',allJournalTriggers()) }} {{ RuleForm.ruleGroupList('rule_group_id', ruleGroup.id) }} {{ ExpandedForm.checkbox('stop_processing',1,null, {helpText: trans('firefly.rule_help_stop_processing')}) }} {{ ExpandedForm.checkbox('strict',1, null,{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'|_ }}


{{ 'test_rule_triggers'|_ }}

{% include 'v1.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('create','rule') }}
{% endblock %} {% block scripts %} {% endblock %} {% block styles %} {% endblock %}