{% extends 'partials/base.html.twig' %} {% set mode = 'types' %} {% if uri.paths[1] == 'data-manager' and uri.paths[2] %} {% set mode = 'items' %} {% set type = uri.paths[2] %} {% if uri.paths[3] %} {% set mode = 'item' %} {% set item = uri.paths[3] %} {% endif %} {% endif %} {% if admin.route %} {% set context = admin.page(true) %} {% endif %} {% block titlebar %} {% if mode == 'types' %}
{{ "PLUGIN_ADMIN.BACK"|tu }}

{{ "PLUGIN_DATA_MANAGER.DATA_TYPES"|tu }}

{% elseif mode == 'items' %}
{{ "PLUGIN_ADMIN.BACK"|tu }}

{{ "PLUGIN_DATA_MANAGER.ITEMS_LIST"|tu }}

{% elseif mode == 'item' %}
{{ "PLUGIN_ADMIN.BACK"|tu }}

{{ "PLUGIN_DATA_MANAGER.ITEM_DETAILS"|tu }}

{% endif %} {% endblock %} {% block content %}
{% if mode == 'types' %} {% include "partials/types.html.twig" %} {% endif %} {% if mode == 'items' %} {% include ['partials/data-manager/' ~ type ~ '/items.html.twig', 'partials/items.html.twig'] %} {% endif %} {% if mode == 'item' %} {% include ['partials/data-manager/' ~ type ~ '/item.html.twig', 'partials/item.html.twig'] %} {% endif %}
{% endblock %}