{# Display bookings changes by activities #} {% regroup form_workflow_data_ws_response.changes|dictsort:"activity_label" by activity_label as changements_par_activite %} {% for changes in changements_par_activite %} {% if changes.grouper %}

{{changes.grouper}} :

{% endif %} {% regroup changes.list|dictsort:"booked" by booked as changements_par_statut %} {% for status_changes in changements_par_statut %} {% if status_changes.grouper %}

Réservations : {% for change in status_changes.list %}{{change.day}}{% if not forloop.last %}, {% endif %}{% endfor %}

{% endif %} {% endfor %} {% for status_changes in changements_par_statut %} {% if not status_changes.grouper %}

Annulations : {% for change in status_changes.list %}{{change.day}}{% if not forloop.last %}, {%endif %}{% endfor %}

{% endif %} {% endfor %} {% endfor %}