From bb0a04b19aa8e81f34ececa807b7ec709e014f49 Mon Sep 17 00:00:00 2001 From: Julie Lenaerts Date: Fri, 14 Jan 2022 14:37:50 +0100 Subject: [PATCH] Using translations instead of hardcoded --- .../ChillPersonBundle/Resources/public/chill/scss/badge.scss | 4 ---- .../Resources/views/AccompanyingPeriod/_list_item.html.twig | 2 +- .../Resources/views/Person/list_with_period.html.twig | 4 ++-- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/src/Bundle/ChillPersonBundle/Resources/public/chill/scss/badge.scss b/src/Bundle/ChillPersonBundle/Resources/public/chill/scss/badge.scss index dca1d6d30..e8a98bc80 100644 --- a/src/Bundle/ChillPersonBundle/Resources/public/chill/scss/badge.scss +++ b/src/Bundle/ChillPersonBundle/Resources/public/chill/scss/badge.scss @@ -184,10 +184,6 @@ div[class*='activity-'] { background-color: $chill-ll-gray; color: $chill-blue; } - &.bg-urgent { - background-color: $chill-red; - color: white; - } &.bg-confidential { background-color: $chill-ll-gray; color: $chill-red; diff --git a/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingPeriod/_list_item.html.twig b/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingPeriod/_list_item.html.twig index 79e159596..d2084bd87 100644 --- a/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingPeriod/_list_item.html.twig +++ b/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingPeriod/_list_item.html.twig @@ -11,7 +11,7 @@ {{- 'Emergency'|trans|upper -}} {% endif %} {% if period.confidential %} - {{- 'Confidential'|trans|upper -}} + {{- 'Confidential'|trans|upper -}} {% endif %}
diff --git a/src/Bundle/ChillPersonBundle/Resources/views/Person/list_with_period.html.twig b/src/Bundle/ChillPersonBundle/Resources/views/Person/list_with_period.html.twig index 2de25c0c0..4b0076078 100644 --- a/src/Bundle/ChillPersonBundle/Resources/views/Person/list_with_period.html.twig +++ b/src/Bundle/ChillPersonBundle/Resources/views/Person/list_with_period.html.twig @@ -82,10 +82,10 @@
{% if acp.emergency %} - urgent + {{- 'Emergency'|trans|upper -}} {% endif %} {% if acp.confidential %} - confidentiel + {{- 'Confidential'|trans|upper -}} {% endif %}
{% if acp.step == 'DRAFT' %}