Files
myep/templates/booking/_summary_travel_info.html.twig

55 lines
1.7 KiB
Twig

{% set wrapperClass = wrapperClass ?? 'pb-4' %}
{% set tableClass = tableClass ?? '' %}
{% set showStatus = showStatus ?? true %}
<div class="{{ wrapperClass }}">
<table{% if tableClass is not empty %} class="{{ tableClass }}"{% endif %}>
<tr>
<th class="text-left align-top border-r-2 border-gray-300 pr-2">
Reise
</th>
<td class="pl-2">
{{ bookingDto.travel.label }}
</td>
</tr>
<tr>
<th class="text-left align-top border-r-2 border-gray-300 pr-2">
Zeitraum
</th>
<td class="pl-2">
{{ bookingDto.travel.dateFrom|date('d.m.Y') }} - {{ bookingDto.travel.dateTo|date('d.m.Y') }}
</td>
</tr>
<tr>
<th class="text-left align-top border-r-2 border-gray-300 pr-2">
Unterkunft
</th>
<td class="pl-2">
{{ bookingDto.travel.hotel.name }}
</td>
</tr>
<tr>
<th class="text-left align-top border-r-2 border-gray-300 pr-2">
Teilnehmer
</th>
<td class="pl-2">
{{ summaryData.participantCount }}
</td>
</tr>
{% if true === showStatus and bookingDto.bookingStatus != 'F' %}
<tr>
<th class="text-left align-top border-r-2 border-gray-300 pr-2">
Status
</th>
<td class="pl-2">
{{ bookingDto.bookingStatus|map_status }}
</td>
</tr>
{% endif %}
</table>
</div>
{% include 'booking/_summary_hotel.html.twig' with {
'summaryData': summaryData
} %}