badges added in list view for parcours that are urgent and/or confidential

This commit is contained in:
Julie Lenaerts 2022-01-14 13:58:56 +01:00
parent 6c71cb0e80
commit 9e48a1db0a
2 changed files with 15 additions and 1 deletions

View File

@ -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;
}
}

View File

@ -80,7 +80,14 @@
{% set app = person.findParticipationForPeriod(acp) %}
<div class="wl-row separator">
<div class="wl-col title">
<div>
{% if acp.emergency %}
<span class="badge bg-urgent">urgent</span>
{% endif %}
{% if acp.confidential %}
<span class="badge bg-confidential">confidentiel</span>
{% endif %}
</div>
{% if acp.step == 'DRAFT' %}
<div class="is-draft">
<span class="course-draft badge bg-secondary" title="{{ 'course.draft'|trans }}">{{ 'course.draft'|trans }}</span>