{% extends 'admin/@layout.html.twig' %} {% set removedList = app.request.attributes.get('_route') == 'admin_template_index' and removedTemplates|length %} {% if removedList %} {% set pageName = 'page_name_template_index'|trans({}, 'admin') %} {% else %} {% set pageName = 'page_name_template_removed_index'|trans({}, 'admin') %} {% endif %} {% macro printTemplateSnippet(template) %}
{{ template.name }}
{{ template.name }}
{% endmacro %} {% macro templateCardFooter(template) %}
{{ 'button_update'|trans({}, 'admin') }}
{% endmacro %} {% macro templateRemovedCardFooter(template) %}
{{ 'template_restore'|trans({}, 'admin') }}
{{ 'template_remove_permanently'|trans({}, 'admin') }}
{% endmacro %} {% block content %} {% if app.request.attributes.get('_route') == 'admin_template_index' and removedTemplates|length %}
{{ 'button_show_removed_templates'|trans({}, 'admin') }} ({{ removedTemplates|length }})
{% endif %}
{% for template in templates %} {{ _self.printTemplateSnippet(template) }} {% endfor %}
{% endblock %} {% block body_class %}template-list{% endblock %}