feat: configurable choices for body dimensions

closes #8697phk21
This commit is contained in:
Björn Fromme committed 2025-12-10 13:48:47 +01:00
1 parent 145a08e511
commit 0e9c5e6e1a
7 files changed
+174 -22

No files matched your search

@@ -71,14 +71,32 @@ trait ParticipantCardFlowTrait
bookingContext: $bookingDto,
);
// Merge default options with provided options
// Merge default options with provided options and body dimensions
$formOptions = array_merge([
'booking_context' => $bookingDto,
'height_choices' => $this->getHeightChoices(),
'weight_choices' => $this->getWeightChoices(),
'shoe_size_min' => $this->getShoeSizeMin(),
'shoe_size_max' => $this->getShoeSizeMax(),
], $options);
return $this->createForm(BookingParticipantType::class, $wrapper, $formOptions);
}
/**
* @return array<string, string>
*/
abstract private function getHeightChoices(): array;
/**
* @return array<string, string>
*/
abstract private function getWeightChoices(): array;
abstract private function getShoeSizeMin(): int;
abstract private function getShoeSizeMax(): int;
/**
* Collects notifications from all participants and clears them from DTOs.
*