fix: don't show bulk insurance labels in summary

This commit is contained in:
Björn Fromme
2025-12-17 16:04:19 +01:00
parent bfb25a4051
commit ef75383885
2 changed files with 6 additions and 4 deletions
@@ -65,7 +65,7 @@
{% endmacro %}
{# Macro to render a checkbox table row (for trailing checkboxes like rental insurance, parking, bulk insurance) #}
{% macro checkbox_row(checkboxField, label, price, tooltipText, tooltipLabel, widgetAttr = {}) %}
{% macro checkbox_row(checkboxField, label, price, tooltipText, tooltipLabel, widgetAttr = {}, showPrice = true) %}
{% set isReadonly = checkboxField.vars.attr.readonly is defined %}
<tr>
<td class="border border-primary-bg p-2 align-top">
@@ -82,7 +82,7 @@
{%- endif -%}
</td>
<td class="border border-primary-bg p-2 align-top w-24 text-right whitespace-nowrap">
{{ price | format_service_price }}
{{ price | format_service_price(showPrice) }}
</td>
<td class="border border-primary-bg p-2 align-top w-12 text-center">
{% set fieldTooltip = checkboxField.vars.attr['data-tooltip']|default(null) %}
@@ -503,7 +503,8 @@
null,
form.bulkInsuranceBooking.vars.attr['data-description']|default(null),
'Info',
htmxAttr
htmxAttr,
false
) }}
{% endif %}
{% for child in form.insurance %}