From 2a7fa517ee5f2f4edd2eff384b8fc3eb8f8275f8 Mon Sep 17 00:00:00 2001 From: Julie Lenaerts Date: Mon, 24 Mar 2025 16:07:47 +0100 Subject: [PATCH] Only show merge button if there are more than 1 works attached to the parcours --- .../Resources/views/AccompanyingCourseWork/show.html.twig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourseWork/show.html.twig b/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourseWork/show.html.twig index 4af5c4029..176861d75 100644 --- a/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourseWork/show.html.twig +++ b/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourseWork/show.html.twig @@ -68,12 +68,14 @@ {% endif %} + {% if work.accompanyingPeriod.getWorks|length > 1 %}
  • {{ 'Merge'|trans }}
  • + {% endif %} {% if is_granted('CHILL_MAIN_ACCOMPANYING_PERIOD_WORK_UPDATE', work) %}