From f50aa55e8b1a12f77ec3b5904988f18d73b033f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Fromme?= Date: Wed, 22 Oct 2025 16:19:05 +0200 Subject: [PATCH] feat: additional conformation checkbox for terms and conditions addresses #869axbm44 --- src/Form/BookingCreateStep4Type.php | 11 ++++++++++- templates/booking/create/step_4.html.twig | 3 +++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/src/Form/BookingCreateStep4Type.php b/src/Form/BookingCreateStep4Type.php index dead5d8..45f279b 100644 --- a/src/Form/BookingCreateStep4Type.php +++ b/src/Form/BookingCreateStep4Type.php @@ -21,7 +21,16 @@ class BookingCreateStep4Type extends AbstractType 'mapped' => false, 'constraints' => [ new Assert\IsTrue( - message: 'Bitte bestätigen Sie Ihre Buchung.' + message: 'Bitte bestätige' + ), + ], + ]) + ->add('termsAccepted', CheckboxType::class, [ + 'label' => 'Ich bestätige, dass ich die AGB akzeptiere', + 'mapped' => false, + 'constraints' => [ + new Assert\IsTrue( + message: 'Bitte bestätige' ), ], ]) diff --git a/templates/booking/create/step_4.html.twig b/templates/booking/create/step_4.html.twig index 4069e8f..c1ead32 100644 --- a/templates/booking/create/step_4.html.twig +++ b/templates/booking/create/step_4.html.twig @@ -414,6 +414,9 @@ {{ form_row(form.confirmationAccepted, { 'label_attr': {'class': 'text-base font-semibold'} }) }} + {{ form_row(form.termsAccepted, { + 'label_attr': {'class': 'text-base font-semibold'} + }) }}