Agenda de l'année scolaire {{ json.extra_data.school_year }}
{% with first_monday=json.extra_data.start_date|adjust_to_week_monday %}
{% with last_day=json.extra_data.end_date|adjust_to_week_monday|add_days:6 %}
{% now 'WY' as current_week %}
{% spaceless %}
{% for day in first_monday|iterate_days_until:last_day %}
{% if day.weekday == 0 %}
{% with sunday=day|add_days:6 %}
Du {{ day|date:"d/m" }} au {{ sunday|date:"d/m" }}
{% endwith %}
{% endif %}
{{ day|date:"l d/m" }}
{% with day_str=day|date:"Y-m-d" %}
{% for item in json.data %}
{% if item.details.JOURDATE == day_str or item.details.day_str == day_str %}