From 9e48a1db0a8cb54337050116fbfbd0482cae44c0 Mon Sep 17 00:00:00 2001 From: Julie Lenaerts Date: Fri, 14 Jan 2022 13:58:56 +0100 Subject: [PATCH] badges added in list view for parcours that are urgent and/or confidential --- .../Resources/public/chill/scss/badge.scss | 7 +++++++ .../Resources/views/Person/list_with_period.html.twig | 9 ++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/src/Bundle/ChillPersonBundle/Resources/public/chill/scss/badge.scss b/src/Bundle/ChillPersonBundle/Resources/public/chill/scss/badge.scss index 46c13d152..444fd19e4 100644 --- a/src/Bundle/ChillPersonBundle/Resources/public/chill/scss/badge.scss +++ b/src/Bundle/ChillPersonBundle/Resources/public/chill/scss/badge.scss @@ -184,5 +184,12 @@ div[class*='activity-'] { background-color: $chill-ll-gray; color: $chill-blue; } + &.bg-urgent { + background-color: $chill-orange; + } + &.bg-confidential { + background-color: $chill-ll-gray; + color: $chill-red; + } } 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 f28115d8d..22da171f2 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 @@ -80,7 +80,14 @@ {% set app = person.findParticipationForPeriod(acp) %}
- +
+ {% if acp.emergency %} + urgent + {% endif %} + {% if acp.confidential %} + confidentiel + {% endif %} +
{% if acp.step == 'DRAFT' %}
{{ 'course.draft'|trans }}