Skip to content

Commit

Permalink
🔨 #38 SystemUserList update
Browse files Browse the repository at this point in the history
  • Loading branch information
bjverde committed May 28, 2023
1 parent 5ddc5ff commit 2b9c1ae
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions template/app/control/admin/SystemUserList.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ class SystemUserList extends TStandardList
protected $deleteButton;
protected $transformCallback;

// trait com onReload, onSearch, onDelete...
use Adianti\Base\AdiantiStandardListTrait;

/**
* Page constructor
*/
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -303,4 +307,13 @@ public function onImpersonation($param)
TTransaction::rollback();
}
}

/**
* Clear filters
*/
public function clear()
{
$this->clearFilters();
$this->onReload();
}
}

0 comments on commit 2b9c1ae

Please sign in to comment.