feat: additional conformation checkbox for terms and conditions

addresses #869axbm44
This commit is contained in:
Björn Fromme
2025-10-22 16:19:05 +02:00
parent 34230e5520
commit be2fffad23
2 changed files with 13 additions and 1 deletions
+10 -1
View File
@@ -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'
),
],
])
@@ -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'}
}) }}
</div>
<div class="flex justify-between pt-6">