From 0fa3ff4c16a555923d644f64190003e0b4fdd457 Mon Sep 17 00:00:00 2001 From: nobohan Date: Tue, 26 Oct 2021 17:13:41 +0200 Subject: [PATCH] accompanying course work: handle case end date is null --- .../public/chill/scss/accompanying_period_work.scss | 3 +++ .../list_by_accompanying_period.html.twig | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/src/Bundle/ChillPersonBundle/Resources/public/chill/scss/accompanying_period_work.scss b/src/Bundle/ChillPersonBundle/Resources/public/chill/scss/accompanying_period_work.scss index e6bdb174b..cc56fcbda 100644 --- a/src/Bundle/ChillPersonBundle/Resources/public/chill/scss/accompanying_period_work.scss +++ b/src/Bundle/ChillPersonBundle/Resources/public/chill/scss/accompanying_period_work.scss @@ -37,6 +37,9 @@ div.accompanying_course_work-list { border-radius: 12px; border: 2px solid $chill-green; } + &.no-label:before { + display: none; + } } } } diff --git a/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourseWork/list_by_accompanying_period.html.twig b/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourseWork/list_by_accompanying_period.html.twig index a4f959b81..dd8beded5 100644 --- a/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourseWork/list_by_accompanying_period.html.twig +++ b/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourseWork/list_by_accompanying_period.html.twig @@ -28,6 +28,11 @@ {{ 'accompanying_course_work.start_date'|trans }} + {% if w.endDate == null %} +
  • +
    +
  • + {% else %}
  • {{ w.endDate|format_date('long') }} @@ -36,6 +41,7 @@ {{ 'accompanying_course_work.end_date'|trans }}
  • + {% endif %}