rdv: translations + layout (twig)

This commit is contained in:
nobohan
2021-08-16 10:57:24 +02:00
parent 95b50f2b99
commit dc3c8a4032
2 changed files with 14 additions and 5 deletions

View File

@@ -26,15 +26,21 @@
<div class="item-col">
{% if calendar.startDate %}
<h3>{{ calendar.startDate|format_date('long') }} </h3>
<h3>{{ calendar.startDate|format_datetime('long') }} </h3>
{% endif %}
{% if calendar.endDate %}
<h3>{{ calendar.endDate|format_date('long') }}</h3>
<h3>{{ calendar.endDate|format_datetime('long') }}</h3>
{% endif %}
<h3>{{ calendar.endDate.diff(calendar.startDate)|date("%Y%m%d%h") }}</h3>
<div class="duration">
<p>
<i class="fa fa-fw fa-hourglass-end"></i>
{{ calendar.endDate.diff(calendar.startDate)|date("%H:%M")}}
</p>
</div>
{% if context == 'user' and calendar.accompanyingPeriod is not empty %}
<div class="accompanyingPeriodLink" style="margin-top: 1rem">
<a