Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Kreyu committed Jul 29, 2024
1 parent cb95bce commit 32444c7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
9 changes: 1 addition & 8 deletions src/Resources/views/themes/base.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -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 }) }}

Expand Down
2 changes: 2 additions & 0 deletions tests/Unit/Twig/DataTableExtensionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -37,6 +38,7 @@ private function createExtension(): DataTableExtension
return new DataTableExtension(
$this->createStub(ColumnSortUrlGeneratorInterface::class),
$this->createStub(FilterClearUrlGeneratorInterface::class),
$this->createStub(PaginationUrlGeneratorInterface::class),
);
}
}

0 comments on commit 32444c7

Please sign in to comment.