enhanced listing actions

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2022-02-28 09:21:04 +01:00
parent 2b771b11d6
commit 5b961be0f8
21 changed files with 279 additions and 135 deletions

View File

@@ -16,6 +16,7 @@
*
*/
use Froxlor\UI\Callbacks\Customer;
use Froxlor\UI\Callbacks\Text;
use Froxlor\UI\Callbacks\Impersonate;
use Froxlor\UI\Callbacks\ProgressBar;
@@ -65,8 +66,21 @@ return [
'c.traffic',
]),
'actions' => [
'unlock' => [
'icon' => 'fa fa-unlock',
'title' => $lng['panel']['unlock'],
'class' => 'text-warning',
'href' => [
'section' => 'customers',
'page' => 'customers',
'action' => 'unlock',
'id' => ':customerid'
],
'visible' => [Customer::class, 'isLocked']
],
'edit' => [
'icon' => 'fa fa-edit',
'title' => $lng['panel']['edit'],
'href' => [
'section' => 'customers',
'page' => 'customers',
@@ -76,6 +90,7 @@ return [
],
'delete' => [
'icon' => 'fa fa-trash',
'title' => $lng['panel']['delete'],
'class' => 'text-danger',
'href' => [
'section' => 'customers',