feat: enable entering additional remarks in offer confirmation
This commit is contained in:
@@ -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">
|
||||
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user