diff --git a/templates/booking/_summary.html.twig b/templates/booking/_summary.html.twig
index 0b461fd..5ba4e36 100644
--- a/templates/booking/_summary.html.twig
+++ b/templates/booking/_summary.html.twig
@@ -21,55 +21,8 @@
{# Content - toggleable on mobile, always visible on desktop #}
- {# Travel Information #}
-
-
-
- |
- Reise
- |
-
- {{ bookingDto.travel.label }}
- |
-
-
- |
- Zeitraum
- |
-
- {{ bookingDto.travel.dateFrom|date('d.m.Y') }} - {{ bookingDto.travel.dateTo|date('d.m.Y') }}
- |
-
-
- |
- Unterkunft
- |
-
- {{ bookingDto.travel.hotel.name }}
- |
-
-
- |
- Teilnehmer
- |
-
- {{ summaryData.participantCount }}
- |
-
- {% if bookingDto.bookingStatus != 'F' %}
-
- |
- Status
- |
-
- {{ bookingDto.bookingStatus|map_status }}
- |
-
- {% endif %}
-
-
-
- {% include 'booking/_summary_hotel.html.twig' with {
+ {% include 'booking/_summary_travel_info.html.twig' with {
+ 'bookingDto': bookingDto,
'summaryData': summaryData
} %}
diff --git a/templates/booking/_summary_travel_info.html.twig b/templates/booking/_summary_travel_info.html.twig
new file mode 100644
index 0000000..fbdffe9
--- /dev/null
+++ b/templates/booking/_summary_travel_info.html.twig
@@ -0,0 +1,54 @@
+{% set wrapperClass = wrapperClass ?? 'pb-4' %}
+{% set tableClass = tableClass ?? '' %}
+{% set showStatus = showStatus ?? true %}
+
+
+
+
+ |
+ Reise
+ |
+
+ {{ bookingDto.travel.label }}
+ |
+
+
+ |
+ Zeitraum
+ |
+
+ {{ bookingDto.travel.dateFrom|date('d.m.Y') }} - {{ bookingDto.travel.dateTo|date('d.m.Y') }}
+ |
+
+
+ |
+ Unterkunft
+ |
+
+ {{ bookingDto.travel.hotel.name }}
+ |
+
+
+ |
+ Teilnehmer
+ |
+
+ {{ summaryData.participantCount }}
+ |
+
+ {% if true === showStatus and bookingDto.bookingStatus != 'F' %}
+
+ |
+ Status
+ |
+
+ {{ bookingDto.bookingStatus|map_status }}
+ |
+
+ {% endif %}
+
+
+
+{% include 'booking/_summary_hotel.html.twig' with {
+ 'summaryData': summaryData
+} %}
diff --git a/templates/booking/create/step_4.html.twig b/templates/booking/create/step_4.html.twig
index 55f23d8..594b642 100644
--- a/templates/booking/create/step_4.html.twig
+++ b/templates/booking/create/step_4.html.twig
@@ -26,49 +26,12 @@
Buchungsübersicht
- {# Travel Information #}
-
-
-
- |
- Reise
- |
-
- {{ bookingCreateContext.bookingDto.travel.label }}
- |
-
-
- |
- Zeitraum
- |
-
- {{ bookingCreateContext.bookingDto.travel.dateFrom|date('d.m.Y') }} - {{ bookingCreateContext.bookingDto.travel.dateTo|date('d.m.Y') }}
- |
-
-
- |
- Unterkunft
- |
-
- {{ bookingCreateContext.bookingDto.travel.hotel.name }}
- |
-
-
- |
- Teilnehmer
- |
-
- {{ bookingCreateContext.summaryData.participantCount }}
- |
-
-
-
-
- {% include 'booking/_summary_hotel.html.twig' with {
- 'summaryData': bookingCreateContext.summaryData
+ {% include 'booking/_summary_travel_info.html.twig' with {
+ 'bookingDto': bookingCreateContext.bookingDto,
+ 'summaryData': bookingCreateContext.summaryData,
+ 'showStatus': false
} %}
-