Feat: Refactor assignment filter to modal

This commit is contained in:
Björn Fromme
2023-10-24 11:40:40 +02:00
parent 5e35af9665
commit cb06bcd636
9 changed files with 119 additions and 89 deletions
+1 -7
View File
@@ -34,12 +34,7 @@ class IndexController extends AbstractController
// Validate teamer data to show missing data right away
$errors = $this->validator->validate($teamer, null, ['profile_preflight']);
$this->filterHandler->setNamespace('filter:assignment:teamer');
$filterForm = $this->filterHandler->getForm();
$filterDto = $this->filterHandler->handleRequest($filterForm, $request);
if (true === $filterDto->isReset()) {
return $this->redirectToRoute('app_teamer_index');
}
$filterDto = $this->filterHandler->getFilterSettings();
$query = $this
->assignmentRepository
@@ -60,7 +55,6 @@ class IndexController extends AbstractController
'teamer' => $teamer,
'errors' => $errors,
'pagination' => $pagination,
'filterForm' => $filterForm,
'filterDto' => $filterDto,
]);
}