diff --git a/src/Controller/Admin/Assignment/IndexController.php b/src/Controller/Admin/Assignment/IndexController.php index 8cae274..ae18004 100644 --- a/src/Controller/Admin/Assignment/IndexController.php +++ b/src/Controller/Admin/Assignment/IndexController.php @@ -48,6 +48,7 @@ class IndexController extends AbstractController return $this->render('admin/assignment/index.html.twig', [ 'pagination' => $pagination, 'filterForm' => $filterForm, + 'filterDto' => $filterDto, ]); } } \ No newline at end of file diff --git a/templates/_partials/_filterpanel.html.twig b/templates/_partials/_filterpanel.html.twig new file mode 100644 index 0000000..797ca16 --- /dev/null +++ b/templates/_partials/_filterpanel.html.twig @@ -0,0 +1,25 @@ +{{ form_start(filterForm) }} +
+ + +
+{{ form_rest(filterForm) }} +{{ form_end(filterForm) }} diff --git a/templates/admin/assignment/index.html.twig b/templates/admin/assignment/index.html.twig index 315ea4a..dbd5ddb 100644 --- a/templates/admin/assignment/index.html.twig +++ b/templates/admin/assignment/index.html.twig @@ -6,22 +6,9 @@

Einsatzübersicht

- {{ form_start(filterForm) }} -
-
- {{ form_row(filterForm.dateFrom) }} - {{ form_row(filterForm.dateTo) }} - {{ form_row(filterForm.jobProfile) }} - {{ form_row(filterForm.destination) }} - {{ form_row(filterForm.duration) }} -
-
- {{ form_widget(filterForm.apply, { 'attr': { 'class': 'btn btn--small' } }) }} - {{ form_widget(filterForm.reset, { 'attr': { 'class': 'btn btn--small btn--secondary' } }) }} -
-
- {{ form_rest(filterForm) }} - {{ form_end(filterForm) }} + + {% include '_partials/_filterpanel.html.twig' %} +
diff --git a/templates/teamer/index.html.twig b/templates/teamer/index.html.twig index 6a06d98..db776dc 100644 --- a/templates/teamer/index.html.twig +++ b/templates/teamer/index.html.twig @@ -18,30 +18,7 @@ {% endif %} - {{ form_start(filterForm) }} -
- - -
- {{ form_rest(filterForm) }} - {{ form_end(filterForm) }} + {% include '_partials/_filterpanel.html.twig' %} {{ knp_pagination_render(pagination, 'paginator/sliding_boxes.html.twig') }}