{% set trans_day_hash = { Jan : 'Janvier', Feb : 'Février', Mar : 'Mars', Apr : 'Avril', May : 'Mai', Jun : 'Juin', Jul : 'Juillet', Aug : 'Août', Sep : 'Septembre', Oct : 'Octobre', Nov : 'Novembre', Dec : 'Décembre' } %} {% extends 'base.html.twig' %} {% block facture %} {% endblock %} {% block title %} Toutes les actions par formation du {{ dates[0]|date('d/m/Y') }} au {{ dates[1]|date('d/m/Y') }} {% if dates[2] %} pour {{ dates[2] }} {% endif %} {% endblock %} {% block body %}

Toutes les actions par formation

Periode du {{ dates[0]|date('d') }} {{ trans_day_hash[dates[0]|date('M')] }} {{ dates[0]|date('Y') }} au {{ dates[1]|date('d') }} {{ trans_day_hash[dates[1]|date('M')] }} {{ dates[1]|date('Y') }} {% if dates[2] %} pour {{ dates[2] }} {% endif %}

{% for intituleFormation,others in actionsPeriode %} {% set total = 0 %} {% set jours = 0 %}

{{ intituleFormation }}

{% for codeAction,rest in others %}
Code Action : {{ codeAction }}
{% for bonCommande,values in rest %}
Bon commande : {{ bonCommande }}
{% for codeFacture,other in values %}
Code Facture : {{ codeFacture }}
{% for week,tables in other %}

Semaine {{ week }}

{% for action in tables %} {% set total = total + action[3] %} {% set jours = jours + 1 %} {% endfor %}
Date de l'intervention Code Action Formateur Notes Nombre d'heures
{{ action[0] ? action[0]|date('d/m/Y') : '' }} {{ codeAction }} {{ action[1] }} {{ action[2] }} {{ action[3] }}
Total
{{ jours }} Jours
{{ total }}

{% endfor %} {% endfor %} {% endfor %} {% endfor %} {% else %}
La requête n'a retourné aucune données pour cette periode.
{% endfor %}
{% endblock %}