adding twig extensions to select how many items per page

* twig anchor: {{ chill_items_per_page(pagination) }}
* select field changed with javascript event listener
This commit is contained in:
2021-07-16 13:23:10 +02:00
parent d2c631ae20
commit 3ee676600e
7 changed files with 98 additions and 10 deletions

View File

@@ -70,8 +70,6 @@ class ThirdPartyController extends Controller
$nbThirdParties = $repository->countByMemberOfCenters($centers);
$pagination = $this->paginatorFactory->create($nbThirdParties);
$pagination->setItemsPerPage(20);
$thirdParties = $repository->findByMemberOfCenters(
$centers,
$pagination->getCurrentPage()->getFirstItemNumber(),