template adjustments + add missing translations

This commit is contained in:
Julie Lenaerts 2025-03-03 13:10:04 +01:00
parent 309cc64275
commit 0306af1a0c
2 changed files with 10 additions and 12 deletions

View File

@ -13,7 +13,7 @@
<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 bg-danger">{{ 'chill_calendar.canceled'|trans }}</span> <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' %}
@ -73,8 +73,7 @@
</div> </div>
</div> </div>
{% if calendar.comment.comment is not empty {% if calendar.users|length > 0
or calendar.users|length > 0
or calendar.thirdParties|length > 0 or calendar.thirdParties|length > 0
or calendar.users|length > 0 %} or calendar.users|length > 0 %}
<div class="item-row details separator"> <div class="item-row details separator">
@ -113,12 +112,13 @@
</div> </div>
{% endif %} {% endif %}
<div class="item-row separator column"> {% if calendar.documents is not empty %}
<div> <div class="item-row separator column">
<div>
{{ include('@ChillCalendar/Calendar/_documents.twig.html') }} {{ include('@ChillCalendar/Calendar/_documents.twig.html') }}
</div>
</div> </div>
</div> {% endif %}
{% if calendar.activity is not null %} {% if calendar.activity is not null %}
<div class="item-row separator"> <div class="item-row separator">
@ -235,10 +235,6 @@
class="btn btn-remove">{{ 'cancel'|trans }}</a> class="btn btn-remove">{{ 'cancel'|trans }}</a>
</li> </li>
{% endif %} {% endif %}
<li>
<a href="{{ chill_path_add_return_path('chill_calendar_calendar_cancel', { 'id': calendar.id } ) }}"
class="btn btn-delete">{{ 'cancel'|trans }}</a>
</li>
{% if is_granted('CHILL_CALENDAR_CALENDAR_DELETE', calendar) %} {% if is_granted('CHILL_CALENDAR_CALENDAR_DELETE', calendar) %}
<li> <li>
<a href="{{ chill_path_add_return_path('chill_calendar_calendar_delete', { 'id': calendar.id } ) }}" <a href="{{ chill_path_add_return_path('chill_calendar_calendar_delete', { 'id': calendar.id } ) }}"

View File

@ -44,6 +44,8 @@ crud:
title_edit: Modifier le motif d'annulation title_edit: Modifier le motif d'annulation
chill_calendar: chill_calendar:
canceled: Annulé
cancel_reason: Raison d'annulation
cancel_calendar_item: Annuler rendez-vous cancel_calendar_item: Annuler rendez-vous
calendar_canceled: Le rendez-vous a été annulé calendar_canceled: Le rendez-vous a été annulé
Document: Document d'un rendez-vous Document: Document d'un rendez-vous