From 8f84b1e137fd3431826f806c3620c25b7b88b215 Mon Sep 17 00:00:00 2001 From: Julie Lenaerts Date: Tue, 14 Jan 2025 10:46:02 +0100 Subject: [PATCH] Adjust display of canceled calendar items in the list --- .../Resources/views/Calendar/_list.html.twig | 19 +++++++++++++++---- .../translations/messages.fr.yml | 2 ++ 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/src/Bundle/ChillCalendarBundle/Resources/views/Calendar/_list.html.twig b/src/Bundle/ChillCalendarBundle/Resources/views/Calendar/_list.html.twig index 46da9a911..dd24c875f 100644 --- a/src/Bundle/ChillCalendarBundle/Resources/views/Calendar/_list.html.twig +++ b/src/Bundle/ChillCalendarBundle/Resources/views/Calendar/_list.html.twig @@ -12,6 +12,10 @@

+ {% if calendar.status == 'canceled' %} + {{ 'chill_calendar.canceled'|trans }} + + {% endif %} {% if context == 'person' and calendar.context == 'accompanying_period' %} @@ -26,13 +30,19 @@ {{ calendar.startDate|format_datetime('short', 'short') }} - {{ calendar.endDate|format_datetime('none', 'short') }} {% endif %} -

+ {% if calendar.status == 'canceled' %} + +

+ {{ 'chill_calendar.cancel_reason'|trans }}: + {{ calendar.cancelReason.name|localize_translatable_string }} +

+ {% endif %}
{{ calendar.duration|date('%H:%I') }} {% if false == calendar.sendSMS or null == calendar.sendSMS %} - + {% else %} {% if calendar.smsStatus == 'sms_sent' %} @@ -151,7 +161,7 @@