feat: show group or contact name in the offer headline

This commit is contained in:
fromme committed 2026-10-13 10:14:55 +02:00
1 parent fe40e1807e
commit 25edb3f337
1 file changed
+2 -1
+2 -1
View File
@@ -49,8 +49,9 @@
{% include '_partials/_flashes.html.twig' %}
<hgroup>
{% set addressee = booking.groupName ?: [booking.firstName, booking.lastName] | filter(v => v) | join(' ') %}
<h1 class="text-2xl lg:text-4xl font-bold mb-2">
{{ booking.acceptedAt is not null ? 'Deine Buchung' : 'Dein Angebot' }}
{{ booking.acceptedAt is not null ? 'Deine Buchung' : 'Dein Angebot' }}{% if addressee %}, {{ addressee }}{% endif %}
</h1>
<p class="text-2xl">
{{ ctx.accommodation.name }}