fix: include gender and nationality into group of mandatory fields
This commit is contained in:
@@ -205,8 +205,8 @@ class BookingParticipantType extends AbstractType
|
|||||||
if ($this->fieldStateProvider->shouldIncludeField('gender', $bookingDto, $participantIndex)) {
|
if ($this->fieldStateProvider->shouldIncludeField('gender', $bookingDto, $participantIndex)) {
|
||||||
$form->add('gender', ChoiceType::class, $this->mergeFieldState([
|
$form->add('gender', ChoiceType::class, $this->mergeFieldState([
|
||||||
'label' => 'Gender',
|
'label' => 'Gender',
|
||||||
'required' => false,
|
'required' => !$personalDataOptional,
|
||||||
'placeholder' => 'keine Angabe',
|
'placeholder' => $personalDataOptional ? 'keine Angabe' : false,
|
||||||
'choices' => [
|
'choices' => [
|
||||||
'männlich' => 'M',
|
'männlich' => 'M',
|
||||||
'weiblich' => 'W',
|
'weiblich' => 'W',
|
||||||
|
|||||||
@@ -52,7 +52,11 @@ class ParticipantDto
|
|||||||
#[Assert\NotBlank(message: 'Bitte angeben', groups: ['strict_required'])]
|
#[Assert\NotBlank(message: 'Bitte angeben', groups: ['strict_required'])]
|
||||||
public ?string $lastName = null;
|
public ?string $lastName = null;
|
||||||
public ?string $title = null;
|
public ?string $title = null;
|
||||||
|
|
||||||
|
#[Assert\NotBlank(message: 'Bitte angeben', groups: ['strict_required'])]
|
||||||
public ?string $gender = null;
|
public ?string $gender = null;
|
||||||
|
|
||||||
|
#[Assert\NotBlank(message: 'Bitte angeben', groups: ['strict_required'])]
|
||||||
public ?string $nationality = null;
|
public ?string $nationality = null;
|
||||||
|
|
||||||
public ?string $height = null;
|
public ?string $height = null;
|
||||||
|
|||||||
Reference in New Issue
Block a user