From d8818dc435b94739089f2a0cd51004fc075bf2c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Fromme?= Date: Mon, 13 Apr 2026 12:23:20 +0200 Subject: [PATCH] feat: extract shared booking summary travel partial --- templates/booking/_summary.html.twig | 51 +---------- .../booking/_summary_travel_info.html.twig | 54 ++++++++++++ templates/booking/create/step_4.html.twig | 87 ++----------------- 3 files changed, 65 insertions(+), 127 deletions(-) create mode 100644 templates/booking/_summary_travel_info.html.twig 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 - - {{ 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 } %} -
- - - - - - - - - - - - - - - - - -
- 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, + 'tableClass': 'mb-4', + 'showStatus': false } %}