diff --git a/src/Form/AddressType.php b/src/Form/AddressType.php index e7d4f69..da27a71 100644 --- a/src/Form/AddressType.php +++ b/src/Form/AddressType.php @@ -20,16 +20,25 @@ class AddressType extends AbstractType 'label' => 'Straße', 'required' => $options['required'], 'sanitize_html' => true, + 'attr' => [ + 'autocomplete' => 'off', + ], ]) ->add('postCode', TextType::class, [ 'label' => 'PLZ', 'required' => $options['required'], 'sanitize_html' => true, + 'attr' => [ + 'autocomplete' => 'off', + ], ]) ->add('city', TextType::class, [ 'label' => 'Ort', 'required' => $options['required'], 'sanitize_html' => true, + 'attr' => [ + 'autocomplete' => 'off', + ], ]) ->add('country', CountryType::class, [ 'label' => 'Land', diff --git a/src/Form/BookingParticipantType.php b/src/Form/BookingParticipantType.php index b5de297..59a2571 100644 --- a/src/Form/BookingParticipantType.php +++ b/src/Form/BookingParticipantType.php @@ -168,6 +168,9 @@ class BookingParticipantType extends AbstractType 'label' => 'Vorname', 'sanitize_html' => true, 'property_path' => 'participant.firstName', + 'attr' => [ + 'autocomplete' => 'off', + ], ], $getFieldState('firstName'))); } @@ -176,6 +179,9 @@ class BookingParticipantType extends AbstractType 'label' => 'Nachname', 'sanitize_html' => true, 'property_path' => 'participant.lastName', + 'attr' => [ + 'autocomplete' => 'off', + ], ], $getFieldState('lastName'))); } @@ -216,6 +222,9 @@ class BookingParticipantType extends AbstractType $form->add('email', EmailType::class, $this->mergeFieldState([ 'label' => 'E-Mail', 'property_path' => 'participant.email', + 'attr' => [ + 'autocomplete' => 'off', + ], ], $getFieldState('email'))); } @@ -225,6 +234,9 @@ class BookingParticipantType extends AbstractType 'required' => false, 'sanitize_html' => true, 'property_path' => 'participant.mobile', + 'attr' => [ + 'autocomplete' => 'off', + ], ], $getFieldState('mobile'))); }