wip: refactoring
This commit is contained in:
@@ -42,14 +42,14 @@ class BookingEditParticipantType extends AbstractType
|
|||||||
'attr' => [
|
'attr' => [
|
||||||
'readonly' => false === $personalDataMutable,
|
'readonly' => false === $personalDataMutable,
|
||||||
],
|
],
|
||||||
'anti_xss' => true,
|
'clean_xss' => true,
|
||||||
])
|
])
|
||||||
->add('lastName', TextType::class, [
|
->add('lastName', TextType::class, [
|
||||||
'label' => 'Nachname',
|
'label' => 'Nachname',
|
||||||
'attr' => [
|
'attr' => [
|
||||||
'readonly' => false === $personalDataMutable,
|
'readonly' => false === $personalDataMutable,
|
||||||
],
|
],
|
||||||
'anti_xss' => true,
|
'clean_xss' => true,
|
||||||
])
|
])
|
||||||
->add('dateOfBirth', BirthdayType::class, [
|
->add('dateOfBirth', BirthdayType::class, [
|
||||||
'label' => 'Geburtsdatum',
|
'label' => 'Geburtsdatum',
|
||||||
@@ -89,7 +89,7 @@ class BookingEditParticipantType extends AbstractType
|
|||||||
'attr' => [
|
'attr' => [
|
||||||
'readonly' => true === $isApplicant,
|
'readonly' => true === $isApplicant,
|
||||||
],
|
],
|
||||||
'anti_xss' => true,
|
'clean_xss' => true,
|
||||||
])
|
])
|
||||||
->add('mobile', TextType::class, [
|
->add('mobile', TextType::class, [
|
||||||
'label' => 'Telefon (mobil)',
|
'label' => 'Telefon (mobil)',
|
||||||
@@ -97,7 +97,7 @@ class BookingEditParticipantType extends AbstractType
|
|||||||
'attr' => [
|
'attr' => [
|
||||||
'readonly' => true === $isApplicant,
|
'readonly' => true === $isApplicant,
|
||||||
],
|
],
|
||||||
'anti_xss' => true,
|
'clean_xss' => true,
|
||||||
])
|
])
|
||||||
->add('height', ChoiceType::class, [
|
->add('height', ChoiceType::class, [
|
||||||
'label' => 'Körpergröße',
|
'label' => 'Körpergröße',
|
||||||
|
|||||||
@@ -16,17 +16,17 @@ class PersonalDataType extends AbstractType
|
|||||||
->add('street', TextType::class, [
|
->add('street', TextType::class, [
|
||||||
'label' => 'Straße',
|
'label' => 'Straße',
|
||||||
'property_path' => 'address.street',
|
'property_path' => 'address.street',
|
||||||
'anti_xss' => true,
|
'clean_xss' => true,
|
||||||
])
|
])
|
||||||
->add('postCode', TextType::class, [
|
->add('postCode', TextType::class, [
|
||||||
'label' => 'PLZ',
|
'label' => 'PLZ',
|
||||||
'property_path' => 'address.postCode',
|
'property_path' => 'address.postCode',
|
||||||
'anti_xss' => true,
|
'clean_xss' => true,
|
||||||
])
|
])
|
||||||
->add('city', TextType::class, [
|
->add('city', TextType::class, [
|
||||||
'label' => 'Stadt',
|
'label' => 'Stadt',
|
||||||
'property_path' => 'address.city',
|
'property_path' => 'address.city',
|
||||||
'anti_xss' => true,
|
'clean_xss' => true,
|
||||||
])
|
])
|
||||||
->add('country', CountryType::class, [
|
->add('country', CountryType::class, [
|
||||||
'label' => 'Land',
|
'label' => 'Land',
|
||||||
@@ -35,18 +35,18 @@ class PersonalDataType extends AbstractType
|
|||||||
->add('email', EmailType::class, [
|
->add('email', EmailType::class, [
|
||||||
'label' => 'E-Mail',
|
'label' => 'E-Mail',
|
||||||
'property_path' => 'communication.email',
|
'property_path' => 'communication.email',
|
||||||
'anti_xss' => true,
|
'clean_xss' => true,
|
||||||
])
|
])
|
||||||
->add('phone', TextType::class, [
|
->add('phone', TextType::class, [
|
||||||
'label' => 'Telefon',
|
'label' => 'Telefon',
|
||||||
'required' => false,
|
'required' => false,
|
||||||
'property_path' => 'communication.phone',
|
'property_path' => 'communication.phone',
|
||||||
'anti_xss' => true,
|
'clean_xss' => true,
|
||||||
])
|
])
|
||||||
->add('mobile', TextType::class, [
|
->add('mobile', TextType::class, [
|
||||||
'label' => 'Mobil',
|
'label' => 'Mobil',
|
||||||
'property_path' => 'communication.mobile',
|
'property_path' => 'communication.mobile',
|
||||||
'anti_xss' => true,
|
'clean_xss' => true,
|
||||||
])
|
])
|
||||||
;
|
;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -25,14 +25,14 @@ class RegistrationType extends AbstractType
|
|||||||
])
|
])
|
||||||
->add('firstName', TextType::class, [
|
->add('firstName', TextType::class, [
|
||||||
'label' => 'Name',
|
'label' => 'Name',
|
||||||
'anti_xss' => true,
|
'clean_xss' => true,
|
||||||
])
|
])
|
||||||
->add('name', TextType::class, [
|
->add('name', TextType::class, [
|
||||||
'label' => 'Nachname',
|
'label' => 'Nachname',
|
||||||
])
|
])
|
||||||
->add('email', EmailType::class, [
|
->add('email', EmailType::class, [
|
||||||
'label' => 'E-Mail',
|
'label' => 'E-Mail',
|
||||||
'anti_xss' => true,
|
'clean_xss' => true,
|
||||||
])
|
])
|
||||||
;
|
;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user