diff --git a/src/Form/ParticipantType.php b/src/Form/ParticipantType.php index b6f2909..6a81ac8 100644 --- a/src/Form/ParticipantType.php +++ b/src/Form/ParticipantType.php @@ -33,6 +33,7 @@ class ParticipantType extends AbstractType $form = $event->getForm(); $personalDataMutable = $options['personal_data_mutable'] && $participantData->mutable; + $isApplicant = 1 === $participantIndex; $form ->add('firstName', TextType::class, [ @@ -83,14 +84,14 @@ class ParticipantType extends AbstractType 'label' => 'E-Mail', 'required' => false, 'attr' => [ - 'readonly' => false === $personalDataMutable, + 'readonly' => true === $isApplicant, ], ]) ->add('mobile', TextType::class, [ 'label' => 'Telefon (mobil)', 'required' => false, 'attr' => [ - 'readonly' => false === $personalDataMutable, + 'readonly' => true === $isApplicant, ], ]) ->add('height', ChoiceType::class, [