{% extends 'base.html.twig' %} {% block title %}{% trans %}title_directory_view{% endtrans %} : #{{ directory.id }} - {{ directory.fullname }}{% endblock %} {% block body %}

{% trans %}title_certificate{% endtrans %} {% if is_granted('create', classMetadataToEntity(directory.certificates.typeClass, app.user)) %} {% trans %}button_create{% endtrans %} {% endif %}

{% include '_cells/documentTable.html.twig' with {'documents': Certificate, notype: true, limit: 3, nodirectoryinfo: true,} %}

{% trans %}title_complaint{% endtrans %} {% if is_granted('create', classMetadataToEntity(directory.complaints.typeClass, app.user)) %} {% trans %}button_create{% endtrans %} {% endif %}

{% include '_cells/documentTable.html.twig' with {'documents': Complaint, notype: true, limit: 3, nodirectoryinfo: true} %}

{% trans %}title_licencewithdrawals{% endtrans %} {% if is_granted('create', classMetadataToEntity(directory.licenceWithdrawals.typeClass, app.user)) %} {% trans %}button_create{% endtrans %} {% endif %}

{% include '_cells/documentTable.html.twig' with {'documents': LicenceWithdrawal, notype: true, limit: 3, nodirectoryinfo: true} %}

{% trans %}title_infringements{% endtrans %} {% if is_granted('create', classMetadataToEntity(directory.infringements.typeClass, app.user)) %} {% trans %}button_create{% endtrans %} {% endif %}

{% include '_cells/documentTable.html.twig' with {'documents': Infringement, notype: true, limit: 3, nodirectoryinfo: true} %}

{% trans %}title_jails{% endtrans %} {% if is_granted('create', classMetadataToEntity(directory.jails.typeClass, app.user)) %} {% trans %}button_create{% endtrans %} {% endif %}

{% include '_cells/documentTable.html.twig' with {'documents': Jail, notype: true, limit: 3, nodirectoryinfo: true} %}

{% trans %}title_bracelets{% endtrans %} {% if is_granted('create', classMetadataToEntity(directory.bracelets.typeClass, app.user)) %} {% trans %}button_create{% endtrans %} {% endif %}

{% include '_cells/documentTable.html.twig' with {'documents': Bracelet, notype: true, limit: 3, nodirectoryinfo: true} %}

{% trans %}title_criminals{% endtrans %} {% if is_granted('create', classMetadataToEntity(directory.criminals.typeClass, app.user)) %} {% trans %}button_create{% endtrans %} {% endif %}

{% include '_cells/documentTable.html.twig' with {'documents': Criminal, notype: true, limit: 3, nodirectoryinfo: true} %}

{% trans %}title_stolen_vehicles{% endtrans %} {% if is_granted('create', classMetadataToEntity(directory.stolenvehicles.typeClass, app.user)) %} {% trans %}button_create{% endtrans %} {% endif %}

{% include '_cells/documentTable.html.twig' with {'documents': Stolenvehicle, notype: true, limit: 3, nodirectoryinfo: true} %}

{% trans %}title_medicals{% endtrans %} {% if is_granted('create', classMetadataToEntity(directory.medicals.typeClass, app.user)) %} {% trans %}button_create{% endtrans %} {% endif %}

{% include '_cells/documentTable.html.twig' with {'documents': Medical, notype: true, limit: 3, nodirectoryinfo: true} %}
{% include '_cells/directoryCard.html.twig' with {'directory': directory} %}
{% endblock %}