From e51d92117a90e0b1d378217560c252e748202038 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Fromme?= Date: Thu, 12 Jun 2025 17:13:44 +0200 Subject: [PATCH] feat: add selectable country for custom destinations --- src/Form/DestinationType.php | 3 ++- src/Model/DestinationDto.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Form/DestinationType.php b/src/Form/DestinationType.php index b3c2bef..287c560 100644 --- a/src/Form/DestinationType.php +++ b/src/Form/DestinationType.php @@ -46,6 +46,7 @@ class DestinationType extends AbstractType 'Frankreich' => 'f', 'Italien' => 'i', 'Deutschland' => 'd', + 'Niederlande' => 'nl', ], ]) ->addEventListener(FormEvents::PRE_SET_DATA, function (FormEvent $event) { @@ -88,4 +89,4 @@ class DestinationType extends AbstractType 'data_class' => DestinationDto::class, ]); } -} \ No newline at end of file +} diff --git a/src/Model/DestinationDto.php b/src/Model/DestinationDto.php index a364188..c2a9179 100644 --- a/src/Model/DestinationDto.php +++ b/src/Model/DestinationDto.php @@ -10,7 +10,7 @@ class DestinationDto #[Assert\NotBlank(message: 'Bitte angeben')] private ?string $product = null; - #[Assert\Choice(choices: ['a', 'ch', 'd', 'f', 'i'], message: 'Ungültige Auswahl')] + #[Assert\Choice(choices: ['a', 'ch', 'd', 'f', 'i', 'nl'], message: 'Ungültige Auswahl')] private ?string $country = null; #[Assert\NotNull(message: 'Bitte das Beginndatum angeben')]