From 0306af1a0c58943c680ce918ed189dcaaed1e295 Mon Sep 17 00:00:00 2001 From: Julie Lenaerts Date: Mon, 3 Mar 2025 13:10:04 +0100 Subject: [PATCH] template adjustments + add missing translations --- .../Resources/views/Calendar/_list.html.twig | 20 ++++++++----------- .../translations/messages.fr.yml | 2 ++ 2 files changed, 10 insertions(+), 12 deletions(-) diff --git a/src/Bundle/ChillCalendarBundle/Resources/views/Calendar/_list.html.twig b/src/Bundle/ChillCalendarBundle/Resources/views/Calendar/_list.html.twig index 167341c23..4023931e3 100644 --- a/src/Bundle/ChillCalendarBundle/Resources/views/Calendar/_list.html.twig +++ b/src/Bundle/ChillCalendarBundle/Resources/views/Calendar/_list.html.twig @@ -13,7 +13,7 @@

{% if calendar.status == 'canceled' %} - {{ 'chill_calendar.canceled'|trans }} + {{ 'chill_calendar.canceled'|trans }} {% endif %} {% if context == 'person' and calendar.context == 'accompanying_period' %} @@ -73,8 +73,7 @@

- {% if calendar.comment.comment is not empty - or calendar.users|length > 0 + {% if calendar.users|length > 0 or calendar.thirdParties|length > 0 or calendar.users|length > 0 %}
@@ -113,12 +112,13 @@
{% endif %} -
-
- - {{ include('@ChillCalendar/Calendar/_documents.twig.html') }} + {% if calendar.documents is not empty %} +
+
+ {{ include('@ChillCalendar/Calendar/_documents.twig.html') }} +
-
+ {% endif %} {% if calendar.activity is not null %}
@@ -235,10 +235,6 @@ class="btn btn-remove">{{ 'cancel'|trans }} {% endif %} -
  • - {{ 'cancel'|trans }} -
  • {% if is_granted('CHILL_CALENDAR_CALENDAR_DELETE', calendar) %}