{% extends '@AdminLTE/layout/mesodd-layout.html.twig' %} {% block page_title %} {% if is_granted('ROLE_FOCAL') and app.user.commune %} Soumission du PTA {% else %} {% trans %}validate.title{% endtrans %} {% endif %} {% endblock %} {% block page_content %} {{ form_start(form) }} {% embed '@AdminLTE/Widgets/box-widget.html.twig' %} {% block box_body %} {% if is_granted('ROLE_MANAGER') or is_granted('ROLE_DDD') %} {% if is_granted('ROLE_MANAGER') %} {{ form_row(form.type) }} {% endif %} {{ form_row(form.entite) }} {% endif %} {{ form_row(form.programm) }} {{ form_row(form.action) }} {% endblock %} {% endembed %} {{ form_end(form) }} {% if action %} {% embed '@AdminLTE/Widgets/box-widget.html.twig' %} {% block box_body %} {% for activity in activities %} {% endfor %}
{% trans %}basics.code{% endtrans %} {% trans %}basics.name{% endtrans %} {% trans %}basics.direction{% endtrans %} {% trans %}basics.amount{% endtrans %}
{{ activity.code }} {{ activity.name }} {{ activity.direction.name }} {{ activity.amount }}
{% trans %}basics.update{% endtrans %}
{% endblock %} {% block box_footer %} {% if autorisation %}
{% trans %}basics.delete{% endtrans %}
{% if is_granted('ROLE_MANAGER') or is_granted('ROLE_DDD') or is_granted('ROLE_DPP') %}
{% trans %}basics.validate{% endtrans %}
{% else %}
{% trans %}Soumettre à la validation{% endtrans %}
{% endif %}
{% endif %} {% endblock %} {% endembed %} {% else %} {% endif %} {% endblock %} {% block javascripts %} {% endblock %}