feat: filter assignments and applications by country

closes #8698fpqq5
This commit is contained in:
Björn Fromme
2025-04-08 17:48:44 +02:00
parent 299c37c823
commit 947b183c50
10 changed files with 77 additions and 5 deletions
+12 -1
View File
@@ -63,6 +63,17 @@ class ApplicationFilterType extends AbstractType
'label' => 'vergangene Einsätze anzeigen',
'required' => false,
])
->add('country', ChoiceType::class, [
'label' => 'Land',
'required' => false,
'placeholder' => 'nicht filtern',
'choices' => [
'Österreich' => 'a',
'Schweiz' => 'ch',
'Frankreich' => 'f',
'Italien' => 'i',
],
])
->add('apply', SubmitType::class, [
'label' => 'filtern',
])
@@ -127,4 +138,4 @@ class ApplicationFilterType extends AbstractType
->setAllowedTypes('max_date', [\DateTimeImmutable::class, 'null'])
;
}
}
}
+12 -1
View File
@@ -66,6 +66,17 @@ class AssignmentFilterType extends AbstractType
'label' => 'vergangene Einsätze anzeigen',
'required' => false,
])
->add('country', ChoiceType::class, [
'label' => 'Land',
'required' => false,
'placeholder' => 'nicht filtern',
'choices' => [
'Österreich' => 'a',
'Schweiz' => 'ch',
'Frankreich' => 'f',
'Italien' => 'i',
],
])
->add('apply', SubmitType::class, [
'label' => 'filtern',
])
@@ -130,4 +141,4 @@ class AssignmentFilterType extends AbstractType
->setAllowedTypes('max_date', [\DateTimeImmutable::class, 'null'])
;
}
}
}