Re-establish canceled tag and strikethrough

This commit is contained in:
Julie Lenaerts 2025-03-03 13:21:35 +01:00
parent caf0407451
commit 8336a93aeb

View File

@ -12,6 +12,9 @@
<div class="wl-row">
<div class="wl-col title">
<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' %}
<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">
@ -19,6 +22,9 @@
</span>
</a>
{% endif %}
{% if calendar.status == 'canceled' %}
<del>
{% endif %}
{% if calendar.endDate.diff(calendar.startDate).days >= 1 %}
{{ calendar.startDate|format_datetime('short', 'short') }}
- {{ calendar.endDate|format_datetime('short', 'short') }}
@ -26,6 +32,9 @@
{{ calendar.startDate|format_datetime('short', 'short') }}
- {{ calendar.endDate|format_datetime('none', 'short') }}
{% endif %}
{% if calendar.status == 'canceled' %}
</del>
{% endif %}
{% if calendar.status == 'canceled' %}
<p>
<span>{{ 'chill_calendar.cancel_reason'|trans }}:</span>