diff --git a/templates/variants/toodego/combo/json/caluire-enfant-agenda-next-year.html b/templates/variants/toodego/combo/json/caluire-enfant-agenda-next-year.html new file mode 100644 index 00000000..a4f923d6 --- /dev/null +++ b/templates/variants/toodego/combo/json/caluire-enfant-agenda-next-year.html @@ -0,0 +1 @@ +{% extends 'combo/json/caluire-enfant-agenda.html' %} diff --git a/templates/variants/toodego/combo/json/caluire-enfant-agenda.html b/templates/variants/toodego/combo/json/caluire-enfant-agenda.html new file mode 100644 index 00000000..4fc982b5 --- /dev/null +++ b/templates/variants/toodego/combo/json/caluire-enfant-agenda.html @@ -0,0 +1,189 @@ +{% if json.extra_data %} +

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 'Y-m-d' as now %} + +{% spaceless %} + + + +{% endspaceless %} +{% endwith %} +{% endwith %} + + +
+{% endif %} diff --git a/templates/variants/toodego/combo/json/caluire-enfant.html b/templates/variants/toodego/combo/json/caluire-enfant.html index 1ae40ab3..0026e162 100644 --- a/templates/variants/toodego/combo/json/caluire-enfant.html +++ b/templates/variants/toodego/combo/json/caluire-enfant.html @@ -27,6 +27,6 @@

{% now "n" as current_month %} {% if current_month in "678" %}Inscriptions de l'an prochain{% endif %} -Modifier l'agenda

+Voir l'agenda

{% endwith %}