{# Variables - tmpl - security - form - formThemes - formConfigs - isWritable #} {% if formThemes is not empty and formThemes is iterable %} {% form_theme form with formThemes %} {% elseif formThemes is not empty and formThemes is string %} {% form_theme form formThemes %} {% endif %} {% set isIndex = 'index' == tmpl ? true : false %} {% set tmpl = 'list' %} {% extends isIndex ? '@MauticCore/Default/content.html.twig' : '@MauticCore/Default/raw_output.html.twig' %} {% block mauticContent %}config{% endblock %} {% block headerTitle %}{{ 'mautic.config.header.index'|trans }}{% endblock %} {% block content %}
{% if not isWritable %}
{{ 'mautic.config.notwritable'|trans }}
{% endif %}
{{ form_start(form) }}
{% for key in form.children|keys|filter(v => formConfigs[v] is defined) %} {% if form[key].children|length > 0 %}

{{ ('mautic.config.tab.' ~ key)|trans }}

{{ form_widget(form[key], {'formConfig': formConfigs[key]}) }}
{% else %} {% do form[key].setRendered() %} {% endif %} {% endfor %}
{{ form_end(form) }}
{% endblock %}