mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
rdv: twig layout and field formatting
This commit is contained in:
parent
4ae9b29924
commit
3799627bf1
@ -24,22 +24,25 @@
|
||||
<div class="item-bloc">
|
||||
<div class="item-row main">
|
||||
<div class="item-col">
|
||||
|
||||
{% if calendar.startDate %}
|
||||
<h3>{{ calendar.startDate|format_datetime('long') }} </h3>
|
||||
{% endif %}
|
||||
|
||||
{% if calendar.endDate %}
|
||||
<h3>{{ calendar.endDate|format_datetime('long') }}</h3>
|
||||
{% endif %}
|
||||
|
||||
|
||||
<div class="duration">
|
||||
<p>
|
||||
<i class="fa fa-fw fa-hourglass-end"></i>
|
||||
{{ calendar.endDate.diff(calendar.startDate)|date("%H:%M")}}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
{% if calendar.startDate and calendar.endDate %}
|
||||
{% if calendar.endDate.diff(calendar.startDate).days >= 1 %}
|
||||
<h3>{{ "From the day"|trans }} {{ calendar.startDate|format_datetime('medium', 'short') }} </h3>
|
||||
<h3>{{ "to the day"|trans }} {{ calendar.endDate|format_datetime('medium', 'short') }}</h3>
|
||||
{% else %}
|
||||
<h3>{{ calendar.startDate|format_date('full') }} </h3>
|
||||
<h3>{{ calendar.startDate|format_datetime('none', 'short', locale='fr') }} - {{ calendar.endDate|format_datetime('none', 'short', locale='fr') }}</h3>
|
||||
|
||||
<div class="duration">
|
||||
<p>
|
||||
<i class="fa fa-fw fa-hourglass-end"></i>
|
||||
{{ calendar.endDate.diff(calendar.startDate)|date("%H:%M")}}
|
||||
</p>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% endif %}
|
||||
|
||||
{% if context == 'user' and calendar.accompanyingPeriod is not empty %}
|
||||
<div class="accompanyingPeriodLink" style="margin-top: 1rem">
|
||||
@ -66,7 +69,7 @@
|
||||
|
||||
{% if calendar.mainUser is not empty %}
|
||||
<li>
|
||||
<b>{{ 'main user concerned'|trans }}{{ calendar.mainUser.usernameCanonical }}</b>
|
||||
<b>{{ 'main user concerned'|trans }}: {{ calendar.mainUser.usernameCanonical }}</b>
|
||||
</li>
|
||||
{% endif %}
|
||||
|
||||
|
@ -11,11 +11,18 @@
|
||||
|
||||
<h2 class="chill-red">{{ 'Calendar data'|trans }}</h2>
|
||||
|
||||
<dt class="inline">{{ 'start date'|trans }}</dt>
|
||||
<dd>{{ entity.startDate|format_datetime('long') }}</dd>
|
||||
|
||||
<dt class="inline">{{ 'end date'|trans }}</dt>
|
||||
<dd>{{ entity.endDate|format_datetime('long') }}</dd>
|
||||
{% if entity.endDate.diff(entity.startDate).days >= 1 %}
|
||||
<dt>{{ "From the day"|trans }} {{ entity.startDate|format_datetime('medium', 'short') }}
|
||||
{{ "to the day"|trans }} {{ entity.endDate|format_datetime('medium', 'short') }}
|
||||
</dt>
|
||||
<dd></dd>
|
||||
{% else %}
|
||||
<dt>
|
||||
{{ entity.startDate|format_date('full') }},
|
||||
{{ entity.startDate|format_datetime('none', 'short', locale='fr') }} - {{ entity.endDate|format_datetime('none', 'short', locale='fr') }}
|
||||
</dt>
|
||||
<dd></dd>
|
||||
{% endif %}
|
||||
|
||||
<dt class="inline">{{ 'cancel reason'|trans }}</dt>
|
||||
<dd>
|
||||
|
@ -6,7 +6,7 @@ Are you sure you want to remove the calendar item?: Êtes-vous sûr de vouloir s
|
||||
Concerned groups: Parties concernées
|
||||
Calendar data: Données du rendez-vous
|
||||
Update calendar: Modifier le rendez-vous
|
||||
main user concerned: Utilisateur principal
|
||||
main user concerned: Utilisateur concerné
|
||||
Main user: Utilisateur principal
|
||||
Calendar item creation: Création du rendez-vous
|
||||
start date: début du rendez-vous
|
||||
@ -20,3 +20,5 @@ Cancel reason: Motif d'annulation
|
||||
Add a new calendar: Ajouter un nouveau rendez-vous
|
||||
"Success : calendar item updated!": "Rendez-vous mis à jour"
|
||||
The calendar item has been successfully removed.: Le rendez-vous a été supprimé
|
||||
From the day: Du
|
||||
to the day: au
|
Loading…
x
Reference in New Issue
Block a user