From 3d30aa6db21e274c9b53e99816901cde2face7b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laur=C3=A9line=20Gu=C3=A9rin?= Date: Tue, 13 Jul 2021 19:28:49 +0200 Subject: [PATCH] toodego: agenda cells for caluire (#55586) --- .../json/caluire-enfant-agenda-next-year.html | 1 + .../combo/json/caluire-enfant-agenda.html | 189 ++++++++++++++++++ .../toodego/combo/json/caluire-enfant.html | 2 +- 3 files changed, 191 insertions(+), 1 deletion(-) create mode 100644 templates/variants/toodego/combo/json/caluire-enfant-agenda-next-year.html create mode 100644 templates/variants/toodego/combo/json/caluire-enfant-agenda.html 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 %}