feat: filter assignments by status

This commit is contained in:
Björn Fromme
2024-01-31 20:15:24 +01:00
parent aef01f25b7
commit 69c83288a5
5 changed files with 35 additions and 0 deletions
+10
View File
@@ -2,6 +2,7 @@
namespace App\Form;
use App\Entity\Assignment;
use App\Entity\Destination;
use App\Entity\JobProfile;
use App\Model\AssignmentFilterDto;
@@ -37,6 +38,15 @@ class AssignmentFilterType extends AbstractType
'Mehr als einen Woche' => AssignmentFilterDto::DURATION_MORE,
],
])
->add('status', ChoiceType::class, [
'label' => 'Status',
'required' => false,
'choices' => [
'Entwurf' => Assignment::STATUS_DRAFT,
'offen' => Assignment::STATUS_OPEN,
'geschlossen' => Assignment::STATUS_CLOSED,
],
])
->add('apply', SubmitType::class, [
'label' => 'filtern',
])