84 lines
2.0 KiB
PHP
84 lines
2.0 KiB
PHP
<?php
|
|
|
|
/**
|
|
* This file is part of the Froxlor project.
|
|
* Copyright (c) 2010 the Froxlor Team (see authors).
|
|
*
|
|
* For the full copyright and license information, please view the COPYING
|
|
* file that was distributed with this source code. You can also view the
|
|
* COPYING file online at http://files.froxlor.org/misc/COPYING.txt
|
|
*
|
|
* @copyright (c) the authors
|
|
* @author Froxlor team <team@froxlor.org> (2010-)
|
|
* @author Maurice Preuß <hello@envoyr.com>
|
|
* @license GPLv2 http://files.froxlor.org/misc/COPYING.txt
|
|
* @package Tabellisting
|
|
*
|
|
*/
|
|
|
|
return [
|
|
'admin_list' => [
|
|
'title' => $lng['admin']['admin'],
|
|
'icon' => 'fa-solid fa-user',
|
|
'columns' => [
|
|
'adminid' => [
|
|
'label' => '#',
|
|
'column' => 'adminid',
|
|
'sortable' => true,
|
|
],
|
|
'loginname' => [
|
|
'label' => $lng['login']['username'],
|
|
'column' => 'loginname',
|
|
'sortable' => true,
|
|
],
|
|
'name' => [
|
|
'label' => $lng['customer']['name'],
|
|
'column' => 'name',
|
|
],
|
|
'customers_used' => [
|
|
'label' => $lng['admin']['customers'],
|
|
'column' => 'customers_used'
|
|
],
|
|
'diskspace' => [
|
|
'label' => $lng['customer']['diskspace'],
|
|
'column' => 'diskspace',
|
|
'format_callback' => [\Froxlor\UI\Callbacks\ProgressBar::class, 'diskspace'],
|
|
],
|
|
'traffic' => [
|
|
'label' => $lng['customer']['traffic'],
|
|
'column' => 'traffic',
|
|
'format_callback' => [\Froxlor\UI\Callbacks\ProgressBar::class, 'traffic'],
|
|
],
|
|
'deactivated' => [
|
|
'label' => $lng['admin']['deactivated'],
|
|
'column' => 'deactivated',
|
|
'format_callback' => [\Froxlor\UI\Callbacks\Text::class, 'boolean'],
|
|
],
|
|
],
|
|
'visible_columns' => \Froxlor\UI\Listing::getVisibleColumnsForListing('admin_list', [
|
|
'loginname',
|
|
'name',
|
|
'customers_used',
|
|
'diskspace',
|
|
'traffic',
|
|
'deactivated',
|
|
]),
|
|
'actions' => [
|
|
'delete' => [
|
|
'icon' => 'fa fa-trash',
|
|
'href' => '#',
|
|
],
|
|
'edit' => [
|
|
'text' => 'fa fa-pen',
|
|
'href' => '#',
|
|
]
|
|
],
|
|
'contextual_class' => [
|
|
'deactivated' => [
|
|
'value' => true,
|
|
'return' => 'bg-secondary'
|
|
]
|
|
]
|
|
]
|
|
];
|