{% extends 'aircraft/base.html.twig' %} {% set aircraft_section_title = 'Gestion des types d\'appareils' %} {% block title %} {{ parent() }} - Types d\'appareils{% endblock %} {% block aircraftContent %} {% if type_aircrafts_chart is defined and type_aircrafts_chart.data.arrayToDataTable %} Répartition des appareils en fonction du type {% endif %} {# Graph section #} Liste des Types {% if is_granted('create', 'aircraft') %} Ajouter un type {% endif %} Nombre de types: {{ type_aircrafts.getTotalItemCount }} {{ knp_pagination_render(type_aircrafts) }} {{ knp_pagination_sortable(type_aircrafts, 'Id', 't.id') }} {{ knp_pagination_sortable(type_aircrafts, 'Nom', 't.name') }} Nombre d'appareils {% if is_granted('edit', 'aircraft') or is_granted('edit', 'aircraft') or is_granted('view', 'aircraft') %} actions {% endif %} {% for type_aircraft in type_aircrafts %} {{ type_aircraft.id }} {{ type_aircraft.name }} {{ type_aircraft.aircrafts|length }} {% if is_granted('edit', 'aircraft') or is_granted('edit', 'aircraft') or is_granted('view', 'aircraft') %} {% if is_granted('view', 'aircraft') %} {% endif %} {% if is_granted('edit', 'aircraft') %} {% endif %} {% if is_granted('delete', 'aircraft') %} {% include "aircraft/type_aircraft/_delete_form.html.twig" %} {% endif %} {% endif %} {% else %} Aucun constructeur trouvé {% endfor %} {% endblock %} {% block javascripts %} {% if type_aircrafts_chart is defined and type_aircrafts_chart.data.arrayToDataTable %} {% endif %} {% endblock %}
Nombre de types: {{ type_aircrafts.getTotalItemCount }}