feat: enable entering additional remarks in offer confirmation

This commit is contained in:
Björn Fromme
2026-08-17 15:30:17 +02:00
parent 582e54ddc4
commit a5d97f1206
15 changed files with 387 additions and 20 deletions
@@ -18,6 +18,9 @@
<div class="lg:col-span-2">
{{ form_row(form.status) }}
</div>
<div class="lg:col-span-2">
{{ form_row(form.email) }}
</div>
</div>
<div class="flex justify-end pt-8">
<button type="submit" class="button button--primary button--small">
+5
View File
@@ -24,4 +24,9 @@
<td>{{ booking.dateTo|date('d.m.Y') }}</td>
</tr>
</table>
{% if booking.remarks %}
<h2>Anmerkungen</h2>
<p>{{ booking.remarks|nl2br }}</p>
{% endif %}
{% endblock %}
@@ -46,6 +46,14 @@
</tr>
</table>
{% if booking.remarks %}
<h2>
Anmerkungen
</h2>
<p>{{ booking.remarks|nl2br }}</p>
{% endif %}
<p>
Bei Fragen antworte einfach auf diese E-Mail.
</p>
@@ -4,7 +4,8 @@
{% block content %}
{% from '_partials/_validation_errors.html.twig' import validation_alert %}
{{ validation_alert(confirmationForm, 'Bitte akzeptiere die AGB, um die Buchung abzuschließen.', false) }}
{# Generic title: both fields can fail, and each renders its own message inline. #}
{{ validation_alert(confirmationForm, null, false) }}
<p class="mb-6">
Möchtest du dieses Angebot jetzt verbindlich buchen?
@@ -17,6 +18,7 @@
'hx-swap': 'outerHTML',
}
}) }}
{{ form_row(confirmationForm.remarks) }}
{{ form_row(confirmationForm.termsAccepted) }}
<div class="mt-6 flex flex-col space-y-4 md:flex-row md:space-y-0 justify-between">