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'} + }) }}