mirror of
https://github.com/Icinga/icingadb-web.git
synced 2026-06-09 00:32:05 -04:00
Users: Add sort control
This commit is contained in:
parent
69b3427119
commit
f15f5ce020
1 changed files with 9 additions and 0 deletions
|
|
@ -28,6 +28,14 @@ class UsersController extends Controller
|
|||
|
||||
$limitControl = $this->createLimitControl();
|
||||
$paginationControl = $this->createPaginationControl($users);
|
||||
$sortControl = $this->createSortControl(
|
||||
$users,
|
||||
[
|
||||
'user.display_name' => $this->translate('Name'),
|
||||
'user.email' => $this->translate('Email'),
|
||||
'user.pager' => $this->translate('Pager Address / Number')
|
||||
]
|
||||
);
|
||||
$filterControl = $this->createFilterControl($users);
|
||||
|
||||
$this->filter($users);
|
||||
|
|
@ -35,6 +43,7 @@ class UsersController extends Controller
|
|||
yield $this->export($users);
|
||||
|
||||
$this->addControl($paginationControl);
|
||||
$this->addControl($sortControl);
|
||||
$this->addControl($limitControl);
|
||||
$this->addControl($filterControl);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue