Start implementation of filter within admin index pages

This commit is contained in:
2025-12-03 11:15:12 +01:00
parent ba4e445110
commit c1cf5a8bb2
11 changed files with 171 additions and 1 deletions

View File

@@ -13,6 +13,7 @@ namespace Chill\PersonBundle\Controller\SocialWork;
use Chill\MainBundle\CRUD\Controller\CRUDController;
use Chill\MainBundle\Pagination\PaginatorInterface;
use Chill\MainBundle\Templating\Listing\FilterOrderHelper;
use Symfony\Component\HttpFoundation\Request;
class ResultController extends CRUDController
@@ -23,4 +24,13 @@ class ResultController extends CRUDController
return parent::orderQuery($action, $query, $request, $paginator);
}
protected function buildFilterOrderHelper(string $action, Request $request): ?FilterOrderHelper
{
return $this->getFilterOrderHelperFactory()
->create(self::class)
->addSearchBox(['label'])
->addCheckbox('activeFilter', [true => 'Active', false => 'Inactive'], ['Active'])
->build();
}
}