From 56da8272682996771d43b7a7aa4959adaf4d7ba6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laur=C3=A9line=20Gu=C3=A9rin?= Date: Tue, 13 Jul 2021 19:30:18 +0200 Subject: [PATCH] toodego: calendar widget compatibility with calendar cell (#55586) --- .../widgets/caluire-reservations-enfant.html | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/templates/variants/toodego/qommon/forms/widgets/caluire-reservations-enfant.html b/templates/variants/toodego/qommon/forms/widgets/caluire-reservations-enfant.html index cd8dedd9..5ca5dbaa 100644 --- a/templates/variants/toodego/qommon/forms/widgets/caluire-reservations-enfant.html +++ b/templates/variants/toodego/qommon/forms/widgets/caluire-reservations-enfant.html @@ -4,15 +4,17 @@ {% with options=widget.get_options|list %} {% with first_monday=options.0.options.details.JOURDATE|adjust_to_week_monday last_option=options|last %} {% with last_day=last_option.options.details.JOURDATE|adjust_to_week_monday|add_days:6 %} +{% now 'Y-m-d' as now %} +{% spaceless %} {% endif %} -
  • Semaine
    du {{day|date:"d/m"}} au {{day|add_days:6|date:"d/m"}}