From 0b35b3494b81099cd5027addc03e1570a716c6f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Fromme?= Date: Tue, 6 Jan 2026 12:08:13 +0100 Subject: [PATCH] fix: streamline price label for transportation services --- templates/booking/_participant_form.html.twig | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/templates/booking/_participant_form.html.twig b/templates/booking/_participant_form.html.twig index 3e7aa85..b071f08 100644 --- a/templates/booking/_participant_form.html.twig +++ b/templates/booking/_participant_form.html.twig @@ -34,7 +34,7 @@ {% endmacro %} {# Macro to render a service choice table row with optional price and tooltip #} -{% macro service_choice_row(child, price, tooltipText, tooltipLabel, widgetAttr = {}) %} +{% macro service_choice_row(child, price, tooltipText, tooltipLabel, widgetAttr = {}, showIncludedLabel = true) %} {% set isReadonly = child.vars.attr.readonly is defined %} @@ -51,7 +51,7 @@ {%- endif -%} - {{ price | format_service_price }} + {{ price | format_service_price(showIncludedLabel) }} {% set childTooltip = child.vars.attr['data-tooltip']|default(null) %} @@ -541,7 +541,8 @@ {% for child in form.transportationOutbound %} {% set choiceData = form.transportationOutbound.vars.choices[loop.index0].data %} - {{ macros.service_choice_row(child, choiceData.price|default(null), child.vars.attr['data-description']|default(null), 'Details', htmxAttr) }} + {% set isPkw = choiceData.subType is defined and choiceData.subType in ['PKW', 'CAR'] %} + {{ macros.service_choice_row(child, choiceData.price|default(null), child.vars.attr['data-description']|default(null), 'Details', htmxAttr, not isPkw) }} {% endfor %} {% if form.parking is defined %}