From 8336a93aeb7ea5b8b8fcf4218beddcf28383c5f3 Mon Sep 17 00:00:00 2001 From: Julie Lenaerts Date: Mon, 3 Mar 2025 13:21:35 +0100 Subject: [PATCH] Re-establish canceled tag and strikethrough --- .../Resources/views/Calendar/_list.html.twig | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/Bundle/ChillCalendarBundle/Resources/views/Calendar/_list.html.twig b/src/Bundle/ChillCalendarBundle/Resources/views/Calendar/_list.html.twig index 9e96a978a..2f77778a8 100644 --- a/src/Bundle/ChillCalendarBundle/Resources/views/Calendar/_list.html.twig +++ b/src/Bundle/ChillCalendarBundle/Resources/views/Calendar/_list.html.twig @@ -12,6 +12,9 @@

+ {% if calendar.status == 'canceled' %} + {{ 'chill_calendar.canceled'|trans }} + {% endif %} {% if context == 'person' and calendar.context == 'accompanying_period' %} @@ -19,6 +22,9 @@ {% endif %} + {% if calendar.status == 'canceled' %} + + {% endif %} {% if calendar.endDate.diff(calendar.startDate).days >= 1 %} {{ calendar.startDate|format_datetime('short', 'short') }} - {{ calendar.endDate|format_datetime('short', 'short') }} @@ -26,6 +32,9 @@ {{ calendar.startDate|format_datetime('short', 'short') }} - {{ calendar.endDate|format_datetime('none', 'short') }} {% endif %} + {% if calendar.status == 'canceled' %} + + {% endif %} {% if calendar.status == 'canceled' %}

{{ 'chill_calendar.cancel_reason'|trans }}: