From 2b9c1aeef4d53132cbe45e5b5853928839897e8c Mon Sep 17 00:00:00 2001 From: Bjverde Date: Sun, 28 May 2023 00:25:55 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A8=20#38=20SystemUserList=20update?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- template/app/control/admin/SystemUserList.class.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/template/app/control/admin/SystemUserList.class.php b/template/app/control/admin/SystemUserList.class.php index abd3067c..cc575bd3 100644 --- a/template/app/control/admin/SystemUserList.class.php +++ b/template/app/control/admin/SystemUserList.class.php @@ -18,6 +18,9 @@ class SystemUserList extends TStandardList protected $deleteButton; protected $transformCallback; + // trait com onReload, onSearch, onDelete... + use Adianti\Base\AdiantiStandardListTrait; + /** * Page constructor */ @@ -65,6 +68,7 @@ public function __construct() // add the search form actions $btn = $this->form->addAction(_t('Find'), new TAction(array($this, 'onSearch')), 'fa:search'); $btn->class = 'btn btn-sm btn-primary'; + $column_email = new TDataGridColumn('email', _t('Email'), 'left'); $this->form->addAction(_t('New'), new TAction(array('SystemUserForm', 'onEdit')), 'fa:plus green'); // creates a DataGrid @@ -303,4 +307,13 @@ public function onImpersonation($param) TTransaction::rollback(); } } + + /** + * Clear filters + */ + public function clear() + { + $this->clearFilters(); + $this->onReload(); + } }