{% if app.session.get('_application') == 0 %}
{% set extendedTemplate = '@AdminLTE/layout/mesodd-layout.html.twig' %}
{% endif %}
{% if app.session.get('_application') == 1 %}
{% set extendedTemplate = '@AdminLTE/layout/suiodd-layout.html.twig' %}
{% endif %}
{% if app.session.get('_application') == 2 %}
{% set extendedTemplate = '@AdminLTE/layout/cfgodd-layout.html.twig' %}
{% endif %}
{% extends extendedTemplate %}
{% block page_title %}{% trans %}direction.title{% endtrans %}{% endblock %}
{% block page_content %}
{% if is_granted('ROLE_MANAGER') or is_granted('ROLE_DDD') %}
| {% trans %}basics.code{% endtrans %} | {% trans %}basics.name{% endtrans %} | {% trans %}basics.year{% endtrans %} | {% trans %}basics.uploadkey{% endtrans %} | {% for direction in directions %} | |
|---|---|---|---|---|---|
| {{ direction.code }} | {{ direction.name }} | {{ direction.years ? max(direction.years) : null }} | {% if direction.ministry %}M{{ "%02d"|format(direction.ministry.id) }}-D{{ "%05d"|format(direction.id) }} | {% else %}C{{ "%02d"|format(direction.commune.id) }}-D{{ "%05d"|format(direction.id) }} | {% endif %}