wip: refactoring

This commit is contained in:
Björn Fromme
2025-07-23 10:28:38 +02:00
parent c85c72863c
commit d2a80ea8fd
3 changed files with 12 additions and 12 deletions
+4 -4
View File
@@ -42,14 +42,14 @@ class BookingEditParticipantType extends AbstractType
'attr' => [
'readonly' => false === $personalDataMutable,
],
'anti_xss' => true,
'clean_xss' => true,
])
->add('lastName', TextType::class, [
'label' => 'Nachname',
'attr' => [
'readonly' => false === $personalDataMutable,
],
'anti_xss' => true,
'clean_xss' => true,
])
->add('dateOfBirth', BirthdayType::class, [
'label' => 'Geburtsdatum',
@@ -89,7 +89,7 @@ class BookingEditParticipantType extends AbstractType
'attr' => [
'readonly' => true === $isApplicant,
],
'anti_xss' => true,
'clean_xss' => true,
])
->add('mobile', TextType::class, [
'label' => 'Telefon (mobil)',
@@ -97,7 +97,7 @@ class BookingEditParticipantType extends AbstractType
'attr' => [
'readonly' => true === $isApplicant,
],
'anti_xss' => true,
'clean_xss' => true,
])
->add('height', ChoiceType::class, [
'label' => 'Körpergröße',
+6 -6
View File
@@ -16,17 +16,17 @@ class PersonalDataType extends AbstractType
->add('street', TextType::class, [
'label' => 'Straße',
'property_path' => 'address.street',
'anti_xss' => true,
'clean_xss' => true,
])
->add('postCode', TextType::class, [
'label' => 'PLZ',
'property_path' => 'address.postCode',
'anti_xss' => true,
'clean_xss' => true,
])
->add('city', TextType::class, [
'label' => 'Stadt',
'property_path' => 'address.city',
'anti_xss' => true,
'clean_xss' => true,
])
->add('country', CountryType::class, [
'label' => 'Land',
@@ -35,18 +35,18 @@ class PersonalDataType extends AbstractType
->add('email', EmailType::class, [
'label' => 'E-Mail',
'property_path' => 'communication.email',
'anti_xss' => true,
'clean_xss' => true,
])
->add('phone', TextType::class, [
'label' => 'Telefon',
'required' => false,
'property_path' => 'communication.phone',
'anti_xss' => true,
'clean_xss' => true,
])
->add('mobile', TextType::class, [
'label' => 'Mobil',
'property_path' => 'communication.mobile',
'anti_xss' => true,
'clean_xss' => true,
])
;
}
+2 -2
View File
@@ -25,14 +25,14 @@ class RegistrationType extends AbstractType
])
->add('firstName', TextType::class, [
'label' => 'Name',
'anti_xss' => true,
'clean_xss' => true,
])
->add('name', TextType::class, [
'label' => 'Nachname',
])
->add('email', EmailType::class, [
'label' => 'E-Mail',
'anti_xss' => true,
'clean_xss' => true,
])
;
}