fix: disable autocompletion on personal data fields
This commit is contained in:
@@ -20,16 +20,25 @@ class AddressType extends AbstractType
|
|||||||
'label' => 'Straße',
|
'label' => 'Straße',
|
||||||
'required' => $options['required'],
|
'required' => $options['required'],
|
||||||
'sanitize_html' => true,
|
'sanitize_html' => true,
|
||||||
|
'attr' => [
|
||||||
|
'autocomplete' => 'off',
|
||||||
|
],
|
||||||
])
|
])
|
||||||
->add('postCode', TextType::class, [
|
->add('postCode', TextType::class, [
|
||||||
'label' => 'PLZ',
|
'label' => 'PLZ',
|
||||||
'required' => $options['required'],
|
'required' => $options['required'],
|
||||||
'sanitize_html' => true,
|
'sanitize_html' => true,
|
||||||
|
'attr' => [
|
||||||
|
'autocomplete' => 'off',
|
||||||
|
],
|
||||||
])
|
])
|
||||||
->add('city', TextType::class, [
|
->add('city', TextType::class, [
|
||||||
'label' => 'Ort',
|
'label' => 'Ort',
|
||||||
'required' => $options['required'],
|
'required' => $options['required'],
|
||||||
'sanitize_html' => true,
|
'sanitize_html' => true,
|
||||||
|
'attr' => [
|
||||||
|
'autocomplete' => 'off',
|
||||||
|
],
|
||||||
])
|
])
|
||||||
->add('country', CountryType::class, [
|
->add('country', CountryType::class, [
|
||||||
'label' => 'Land',
|
'label' => 'Land',
|
||||||
|
|||||||
@@ -168,6 +168,9 @@ class BookingParticipantType extends AbstractType
|
|||||||
'label' => 'Vorname',
|
'label' => 'Vorname',
|
||||||
'sanitize_html' => true,
|
'sanitize_html' => true,
|
||||||
'property_path' => 'participant.firstName',
|
'property_path' => 'participant.firstName',
|
||||||
|
'attr' => [
|
||||||
|
'autocomplete' => 'off',
|
||||||
|
],
|
||||||
], $getFieldState('firstName')));
|
], $getFieldState('firstName')));
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -176,6 +179,9 @@ class BookingParticipantType extends AbstractType
|
|||||||
'label' => 'Nachname',
|
'label' => 'Nachname',
|
||||||
'sanitize_html' => true,
|
'sanitize_html' => true,
|
||||||
'property_path' => 'participant.lastName',
|
'property_path' => 'participant.lastName',
|
||||||
|
'attr' => [
|
||||||
|
'autocomplete' => 'off',
|
||||||
|
],
|
||||||
], $getFieldState('lastName')));
|
], $getFieldState('lastName')));
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -216,6 +222,9 @@ class BookingParticipantType extends AbstractType
|
|||||||
$form->add('email', EmailType::class, $this->mergeFieldState([
|
$form->add('email', EmailType::class, $this->mergeFieldState([
|
||||||
'label' => 'E-Mail',
|
'label' => 'E-Mail',
|
||||||
'property_path' => 'participant.email',
|
'property_path' => 'participant.email',
|
||||||
|
'attr' => [
|
||||||
|
'autocomplete' => 'off',
|
||||||
|
],
|
||||||
], $getFieldState('email')));
|
], $getFieldState('email')));
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -225,6 +234,9 @@ class BookingParticipantType extends AbstractType
|
|||||||
'required' => false,
|
'required' => false,
|
||||||
'sanitize_html' => true,
|
'sanitize_html' => true,
|
||||||
'property_path' => 'participant.mobile',
|
'property_path' => 'participant.mobile',
|
||||||
|
'attr' => [
|
||||||
|
'autocomplete' => 'off',
|
||||||
|
],
|
||||||
], $getFieldState('mobile')));
|
], $getFieldState('mobile')));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user