From 32444c7e4fb6dc593c55ae0b21f53e7e39bb7867 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Wr=C3=B3blewski?= Date: Mon, 29 Jul 2024 18:00:12 +0200 Subject: [PATCH] wip --- src/Resources/views/themes/base.html.twig | 9 +-------- tests/Unit/Twig/DataTableExtensionTest.php | 2 ++ 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/src/Resources/views/themes/base.html.twig b/src/Resources/views/themes/base.html.twig index 3ad7a915..cb33130e 100755 --- a/src/Resources/views/themes/base.html.twig +++ b/src/Resources/views/themes/base.html.twig @@ -270,14 +270,7 @@ {% block kreyu_data_table_filters_form %} {% form_theme form with form_themes|default([_self]) %} - {{ form_start(form, { - attr: { - 'data-turbo-action': 'advance', - 'data-turbo-frame': '_self', - 'data-kreyu--data-table-bundle--persistence-target': 'form', - 'hidden': 'hidden', - } - }) }} + {{ form_start(form, { attr: { 'data-turbo-action': 'advance', 'data-turbo-frame': '_self', 'hidden': 'hidden' } }) }} {# This form should be empty - all its inputs should be on the outside, referenced using the "form" attribute #} {{ form_end(form, { render_rest: false }) }} diff --git a/tests/Unit/Twig/DataTableExtensionTest.php b/tests/Unit/Twig/DataTableExtensionTest.php index 2e7e5af1..0c326c9e 100644 --- a/tests/Unit/Twig/DataTableExtensionTest.php +++ b/tests/Unit/Twig/DataTableExtensionTest.php @@ -7,6 +7,7 @@ use Kreyu\Bundle\DataTableBundle\Column\ColumnSortUrlGeneratorInterface; use Kreyu\Bundle\DataTableBundle\DataTableView; use Kreyu\Bundle\DataTableBundle\Filter\FilterClearUrlGeneratorInterface; +use Kreyu\Bundle\DataTableBundle\Pagination\PaginationUrlGeneratorInterface; use Kreyu\Bundle\DataTableBundle\Twig\DataTableExtension; use PHPUnit\Framework\TestCase; @@ -37,6 +38,7 @@ private function createExtension(): DataTableExtension return new DataTableExtension( $this->createStub(ColumnSortUrlGeneratorInterface::class), $this->createStub(FilterClearUrlGeneratorInterface::class), + $this->createStub(PaginationUrlGeneratorInterface::class), ); } }