feat: accommodation booking type and status as dedicated properties

This commit is contained in:
Björn Fromme
2026-08-06 08:52:09 +02:00
parent 2cfa87f44b
commit aa8fa5c1b2
22 changed files with 218 additions and 151 deletions
+4 -4
View File
@@ -24,7 +24,7 @@
{% import _self as macros %}
{% block title %}{{ booking.inquiry ? 'Dein Angebot' : 'Deine Buchung' }}{% endblock %}
{% block title %}{{ booking.accepted ? 'Deine Buchung' : 'Dein Angebot' }}{% endblock %}
{% block background %}bg-outer bg-outer--summer{% endblock %}
@@ -52,7 +52,7 @@
<hgroup>
<h1 class="text-2xl lg:text-4xl font-bold mb-2">
{{ booking.inquiry ? 'Dein Angebot' : 'Deine Buchung' }}
{{ booking.accepted ? 'Deine Buchung' : 'Dein Angebot' }}
</h1>
<p class="text-2xl">
{{ ctx.accommodation.name }}
@@ -63,7 +63,7 @@
{% if booking.boardServiceLabel or booking.additionalServices | length > 0 %}
<div>
<h2 class="text-xl font-bold mb-2">
{{ booking.inquiry ? 'Angefragte' : 'Gebuchte' }} Leistungen
{{ booking.accepted ? 'Gebuchte' : 'Angefragte' }} Leistungen
</h2>
<ul class="list-disc pl-4">
{% if booking.boardServiceLabel %}
@@ -76,7 +76,7 @@
</div>
{% endif %}
{% if booking.inquiry %}
{% if booking.inquiry and booking.open %}
<div>
<button type="button"
class="button button--primary w-full"