(2010-) * @author Maurice Preuß * @license GPLv2 http://files.froxlor.org/misc/COPYING.txt * @package Tabellisting * */ use Froxlor\UI\Callbacks\Ftp; use Froxlor\UI\Listing; return [ 'htpasswd_list' => [ 'title' => $lng['menue']['extras']['directoryprotection'], 'icon' => 'fa-solid fa-lock', 'self_overview' => ['section' => 'extras', 'page' => 'htpasswds'], 'columns' => [ 'username' => [ 'label' => $lng['login']['username'], 'field' => 'username' ], 'path' => [ 'label' => $lng['panel']['path'], 'field' => 'path', 'callback' => [Ftp::class, 'pathRelative'] ] ], 'visible_columns' => Listing::getVisibleColumnsForListing('htpasswd_list', [ 'username', 'path' ]), 'actions' => [ 'edit' => [ 'icon' => 'fa fa-edit', 'title' => $lng['panel']['edit'], 'href' => [ 'section' => 'extras', 'page' => 'htpasswds', 'action' => 'edit', 'id' => ':id' ], ], 'delete' => [ 'icon' => 'fa fa-trash', 'title' => $lng['panel']['delete'], 'class' => 'btn-danger', 'href' => [ 'section' => 'extras', 'page' => 'htpasswds', 'action' => 'delete', 'id' => ':id' ], ] ] ] ];