feat: additional conformation checkbox for terms and conditions
addresses #869axbm44
This commit is contained in:
@@ -21,7 +21,16 @@ class BookingCreateStep4Type extends AbstractType
|
|||||||
'mapped' => false,
|
'mapped' => false,
|
||||||
'constraints' => [
|
'constraints' => [
|
||||||
new Assert\IsTrue(
|
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, {
|
{{ form_row(form.confirmationAccepted, {
|
||||||
'label_attr': {'class': 'text-base font-semibold'}
|
'label_attr': {'class': 'text-base font-semibold'}
|
||||||
}) }}
|
}) }}
|
||||||
|
{{ form_row(form.termsAccepted, {
|
||||||
|
'label_attr': {'class': 'text-base font-semibold'}
|
||||||
|
}) }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="flex justify-between pt-6">
|
<div class="flex justify-between pt-6">
|
||||||
|
|||||||
Reference in New Issue
Block a user