{% extends 'base.html.twig' %} {% block title %}{{ ('documentType_' ~ type)|trans }}{% if archive %} | {% trans %}title_archives{% endtrans %}{% endif %}{% endblock %} {% block subtitle %} {{ ('documentType_' ~ type)|trans }} {% if archive %} | {% trans %}title_archives{% endtrans %}{% else %} {% if documentTypeEntity.directory is not defined and documentTypeEntity.user is not defined %} {% if app.user.hasPermission(type ~ '_create') %} {% trans %}button_create{% endtrans %}{% endif %} {% endif %} {% endif %} {% endblock %} {% block body %}
{{form(searchForm)}}
{% if archive %} {% trans %}button_go_to_not_archived{% endtrans %} {% else %} {% trans %}button_go_to_archived{% endtrans %} {% endif %}

{{ 'title_count'|trans }}: {{ count }}

{% include '_cells/documentTable.html.twig' with {'documents': pagination, 'notype': true } %}
{% if directory is defined and directory is not null %}

{% trans %}title_document_linked_to_directory{% endtrans %}:


{% include '_cells/directoryCard.html.twig' with {'directory': directory} %}
{% endif %}
{{ knp_pagination_render(pagination) }}
{% endblock %}