Add cancel reason within the cancel label

This commit is contained in:
2025-09-29 19:22:59 +02:00
parent a41414a460
commit fbb4e8c784

View File

@@ -9,13 +9,20 @@
<div class="item-row main"> <div class="item-row main">
<div class="item-col"> <div class="item-col">
<div class="wrap-header"> <div class="wrap-header">
<div class="wl-row">
{% if calendar.status == 'canceled' %}
<div class="badge rounded-pill bg-danger">
<span>{{ 'chill_calendar.canceled'|trans }}: </span>
<span>{{ calendar.cancelReason.name|localize_translatable_string }}</span>
</div>
{% endif %}
</div>
<div class="wl-row"> <div class="wl-row">
<div class="wl-col title"> <div class="wl-col title">
<p class="date-label"> <p class="date-label">
{% if calendar.status == 'canceled' %} {% if calendar.status == 'canceled' %}
<span class="badge rounded-pill bg-danger">{{ 'chill_calendar.canceled'|trans }}</span> <del>
<del> {% endif %}
{% 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">
@@ -36,13 +43,6 @@
{% if calendar.status == 'canceled' %} {% if calendar.status == 'canceled' %}
</del> </del>
{% endif %} {% endif %}
{% if calendar.status == 'canceled' %}
</del>
<p>
<span>{{ 'chill_calendar.cancel_reason'|trans }}:</span>
<span>{{ calendar.cancelReason.name|localize_translatable_string }}</span>
</p>
{% 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>