{% 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 %}programm.title{% endtrans %}{% endblock %} {% block page_content %} {% if (is_granted('ROLE_MANAGER') or is_granted('ROLE_DDD')) %}
{{ form_start(form) }}
{% if is_granted('ROLE_MANAGER') %}
{{ form_widget(form.type) }}
{{ form_widget(form.entite) }}
{% else %}
{{ form_widget(form.entite) }}
{% endif %}
{{ form_end(form) }}
{% else %}
{% trans %}programm.add{% endtrans %}
{% endif %} {% if entite %} {% embed '@AdminLTE/Widgets/box-widget.html.twig' %} {% block box_body %} {% for programm in programms %} {% if programm.ministry %} {% else %} {% endif %} {% endfor %}
{% trans %}basics.code{% endtrans %} {% trans %}basics.name{% endtrans %} {% trans %}basics.year{% endtrans %} {% trans %}basics.uploadkey{% endtrans %}
{{ programm.code }} {{ programm.name }} {{ programm.years ? max(programm.years) : '' }}M{{ "%02d"|format(programm.ministry.id) }}-P{{ "%05d"|format(programm.id) }}C{{ "%02d"|format(programm.commune.id) }}-P{{ "%05d"|format(programm.id) }}
{% trans %}basics.update{% endtrans %}
{% endblock %} {% endembed %} {% else %} {% endif %} {% endblock %} {% block javascripts %} {% endblock %} {% block stylesheets %} {% endblock %}