{% extends 'partials/base.html.twig' %} {% set config_slug = uri.basename %} {% set isInfo = (config_slug == 'info') %} {% set title = "PLUGIN_ADMIN.CONFIGURATION"|tu ~ ": " ~ ("PLUGIN_ADMIN." ~ config_slug|upper)|tu %} {% if not isInfo %} {% set data = admin.data('config/' ~ config_slug) %} {% endif %} {% block stylesheets %} {% do assets.addCss(theme_url ~ '/css/codemirror/codemirror.css') %} {{ parent() }} {% endblock %} {% block javascripts %} {{ parent() }} {% endblock %} {% block titlebar %}
{{ "PLUGIN_ADMIN.BACK"|tu }}

{{ "PLUGIN_ADMIN.CONFIGURATION"|tu }} - {{ ("PLUGIN_ADMIN." ~ config_slug|upper)|tu }}

{% endblock %} {% block content_top %}
{{ "PLUGIN_ADMIN.SAVE_LOCATION"|tu }}: {{ data.file.filename|replace({(base_path):''}) }}
{% if authorize(['admin.configuration_system', 'admin.super']) %} {{ "PLUGIN_ADMIN.SYSTEM"|tu }} {% endif %} {% if authorize(['admin.configuration_site', 'admin.super']) %} {{ "PLUGIN_ADMIN.SITE"|tu }} {% endif %} {% for configuration in admin.configurations %} {% if authorize(['admin.configuration_' ~ configuration, 'admin.super']) %} {% set current_blueprints = admin.data('config/' ~ configuration).blueprints.toArray() %} {% if configuration != 'system' and configuration != 'site' and not current_blueprints.form.hidden and current_blueprints.form.fields is not empty %} {{ configuration|tu|humanize }} {% endif %} {% endif %} {% endfor %} {% if authorize(['admin.configuration_info', 'admin.super']) %} {{ "PLUGIN_ADMIN.INFO"|tu }} {% endif %}
{% endblock %} {% block content %} {% if authorize(['admin.configuration_' ~ config_slug, 'admin.super']) %} {% if isInfo %}
{{ admin.phpinfo|raw }}
{% else %} {% include 'partials/blueprints.html.twig' with { blueprints: data.blueprints, data: data } %} {% endif %} {% endif %} {% include 'partials/modal-changes-detected.html.twig' %} {% endblock %}