Move cancel reason into red label

This commit is contained in:
Julie Lenaerts 2025-03-27 18:45:34 +01:00
parent cfbf7b4599
commit 4f170bf4cf

View File

@ -10,11 +10,11 @@
<div class="item-col"> <div class="item-col">
<div class="wrap-header"> <div class="wrap-header">
<div class="wl-row"> <div class="wl-row">
{% if calendar.status == 'canceled' %}
<p class="badge rounded-pill bg-danger">{{ 'chill_calendar.canceled'|trans }}: <span>{{ calendar.cancelReason.name|localize_translatable_string }}</span></p>
{% endif %}
<div class="wl-col title"> <div class="wl-col title">
<p class="date-label"> <p class="date-label">
{% if calendar.status == 'canceled' %}
<span class="badge rounded-pill bg-danger">{{ 'chill_calendar.canceled'|trans }}</span>
{% endif %}
{% if context == 'person' and calendar.context == 'accompanying_period' %} {% if context == 'person' and calendar.context == 'accompanying_period' %}
<a href="{{ chill_path_add_return_path('chill_person_accompanying_course_index', {'accompanying_period_id': calendar.accompanyingPeriod.id}) }}" style="text-decoration: none;"> <a href="{{ chill_path_add_return_path('chill_person_accompanying_course_index', {'accompanying_period_id': calendar.accompanyingPeriod.id}) }}" style="text-decoration: none;">
<span class="badge bg-primary"> <span class="badge bg-primary">
@ -35,12 +35,12 @@
{% if calendar.status == 'canceled' %} {% if calendar.status == 'canceled' %}
</del> </del>
{% endif %} {% endif %}
{% if calendar.status == 'canceled' %} {# {% if calendar.status == 'canceled' %}#}
<p> {# <p>#}
<span>{{ 'chill_calendar.cancel_reason'|trans }}:</span> {# <span>{{ 'chill_calendar.cancel_reason'|trans }}:</span>#}
<span>{{ calendar.cancelReason.name|localize_translatable_string }}</span> {##}
</p> {# </p>#}
{% endif %} {# {% endif %}#}
<div class="duration short-message"> <div class="duration short-message">
<i class="fa fa-fw fa-hourglass-end"></i> <i class="fa fa-fw fa-hourglass-end"></i>