{% extends ajax-suffix ? "@gantry-admin/partials/ajax.html.twig" : "@gantry-admin/partials/base.html.twig" %} {% set edit = gantry.authorize('outline.assign') %} {% block gantry %}
{% if assignments %}
{% if edit %} {% endif %}

{{ 'GANTRY5_PLATFORM_ASSIGNMENTS'|trans }}

{% if edit %} All None {% endif %} {% if options %}
{% include '@gantry-admin/forms/fields/select/selectize.html.twig' with {'layout': 'input', 'name': 'assignments.assignment', 'field': {'type': 'select.selectize', 'options': options}, 'value': assignment} only %}
{% endif %}
{% for type, types in assignments %} {% for name, list in types %} {% if list.items %}

{{ list.label }}
{% if edit %} All None {% endif %}

{% for link in list.items %} {% set path = 'assignments.' ~ type ~ '.' ~ name ~ '.' ~ link.name %} {% set group = link.section ? 'data-g-assignments-group="' ~ link.name|e ~ '"' : 'data-g-assignments-parent="' ~ link.taxonomy|e ~ '"' %} {% set value = link.value is defined ? link.value : gantry.config.get(path) %} {% endfor %}
{% endif %} {% endfor %} {% endfor %}
{% if edit %} {% endif %}
{% else %}

{{ 'GANTRY5_PLATFORM_ASSIGNMENTS'|trans }}

{% if configuration == 'default' %}

{{ 'GANTRY5_PLATFORM_ASSIGN_BASE_DESC'|trans }}

{% else %}

{{ 'GANTRY5_PLATFORM_NO_ASSIGNMENTS_DESC'|trans }}

{% endif %} {% endif %}
{% endblock %}