fix: include gender and nationality into group of mandatory fields

This commit is contained in:
Björn Fromme
2026-01-08 14:18:37 +01:00
parent 776b9d0912
commit 97a5d7f9f1
2 changed files with 6 additions and 2 deletions
+2 -2
View File
@@ -205,8 +205,8 @@ class BookingParticipantType extends AbstractType
if ($this->fieldStateProvider->shouldIncludeField('gender', $bookingDto, $participantIndex)) {
$form->add('gender', ChoiceType::class, $this->mergeFieldState([
'label' => 'Gender',
'required' => false,
'placeholder' => 'keine Angabe',
'required' => !$personalDataOptional,
'placeholder' => $personalDataOptional ? 'keine Angabe' : false,
'choices' => [
'männlich' => 'M',
'weiblich' => 'W',
+4
View File
@@ -52,7 +52,11 @@ class ParticipantDto
#[Assert\NotBlank(message: 'Bitte angeben', groups: ['strict_required'])]
public ?string $lastName = null;
public ?string $title = null;
#[Assert\NotBlank(message: 'Bitte angeben', groups: ['strict_required'])]
public ?string $gender = null;
#[Assert\NotBlank(message: 'Bitte angeben', groups: ['strict_required'])]
public ?string $nationality = null;
public ?string $height = null;