{% extends ajax-suffix ? "@gantry-admin/partials/ajax.html.twig" : "@gantry-admin/partials/base.html.twig" %} {% block gantry %} {% if gantry.particles.overrides(configuration) or gantry.request.get.get('enable') %} {% set stored_data = get_cookie('g5-collapsed')|default('{}')|json_decode %}
{% for group, list in particles if list and (group != 'hidden') %}

{{ group|capitalize }} {{ 'GANTRY5_PLATFORM_DEFAULTS'|trans }}

{% for id, particle in list %} {% if not particle.hidden %} {% set particle = gantry.particles.getBlueprintForm(id) %} {% set prefix = 'particles.' ~ id ~ '.' %} {% set collapsed = particle.form.collapsed or attribute(stored_data, prefix) %} {% set labels = {collapse: 'GANTRY5_PLATFORM_COLLAPSE'|trans, expand: 'GANTRY5_PLATFORM_EXPAND'|trans} %} {% endif %} {% endfor %}
{% endfor %}
{% else %} {% set ajaxify %}data-g5-ajaxify="" data-g5-nav="settings" data-g5-ajaxify-target="[data-g5-content-wrapper]" data-g5-ajaxify-params="{{ {"navbar": true}|json_encode|e('html_attr') }}"{% endset %}

{{ 'GANTRY5_PLATFORM_PARTICLE_DEFAULTS'|trans }}

{{ 'GANTRY5_PLATFORM_PARTICLE_DEFAULTS_FROM_BASE'|trans(ajaxify, gantry.route('configurations/default/settings'), 'GANTRY5_PLATFORM_BASE_OUTLINE'|trans)|raw }}

{{ 'GANTRY5_PLATFORM_PARTICLE_DEFAULTS_ENTER'|trans(ajaxify, gantry.route('configurations', configuration, 'settings') ~ '&enable=1')|raw }}

{{ 'GANTRY5_PLATFORM_PARTICLE_DEFAULTS_WARNING'|trans('GANTRY5_PLATFORM_PARTICLE_DEFAULTS'|trans)|raw }}

{% endif %}
{% endblock %}