(2010-) * @author Maurice Preuß * @license GPLv2 http://files.froxlor.org/misc/COPYING.txt * @package Tabellisting * */ use Froxlor\UI\Callbacks\Text; use Froxlor\UI\Listing; return [ 'plan_list' => [ 'title' => $lng['admin']['plans']['plans'], 'icon' => 'fa-solid fa-user', 'columns' => [ 'p.name' => [ 'label' => $lng['admin']['plans']['name'], 'field' => 'name', ], 'p.description' => [ 'label' => $lng['admin']['plans']['description'], 'field' => 'description', ], 'p.adminname' => [ 'label' => $lng['admin']['admin'], 'field' => 'adminname', ], 'p.ts' => [ 'label' => $lng['admin']['plans']['last_update'], 'field' => 'ts', 'format_callback' => [Text::class, 'timestamp'], ], ], 'visible_columns' => Listing::getVisibleColumnsForListing('plan_list', [ 'p.name', 'p.description', 'p.adminname', 'p.ts', ]), 'actions' => [ 'edit' => [ 'icon' => 'fa fa-edit', 'title' => $lng['panel']['edit'], 'href' => [ 'section' => 'plans', 'page' => 'overview', 'action' => 'edit', 'id' => ':id' ], ], 'delete' => [ 'icon' => 'fa fa-trash', 'title' => $lng['panel']['delete'], 'class' => 'text-danger', 'href' => [ 'section' => 'plans', 'page' => 'overview', 'action' => 'delete', 'id' => ':id' ], ], ] ] ];