add onpage mini-search for listings

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2022-07-23 11:52:22 +02:00
parent b48c135d6d
commit 771d6c483a
18 changed files with 65 additions and 12 deletions

View File

@@ -29,6 +29,7 @@ return [
'filetpl_list' => [
'title' => lng('admin.templates.filetemplates'),
'icon' => 'fa-solid fa-file-lines',
'self_overview' => ['section' => 'templates', 'page' => 'email'],
'columns' => [
'template' => [
'label' => lng('admin.templates.action'),

View File

@@ -34,6 +34,7 @@ return [
'self_overview' => ['section' => 'phpsettings', 'page' => 'fpmdaemons'],
'columns' => [
'id' => [
'label' => 'ID',
'field' => 'id'
],
'description' => [
@@ -42,7 +43,8 @@ return [
],
'configs' => [
'label' => lng('admin.phpsettings.activephpconfigs'),
'callback' => [PHPConf::class, 'configsList']
'callback' => [PHPConf::class, 'configsList'],
'searchable' => false,
],
'reload_cmd' => [
'label' => lng('serversettings.phpfpm_settings.reload'),

View File

@@ -31,6 +31,7 @@ return [
'integrity_list' => [
'title' => lng('admin.integritycheck'),
'icon' => 'fa-solid fa-circle-check',
'self_overview' => ['section' => 'settings', 'page' => 'integritycheck'],
'columns' => [
'displayid' => [
'label' => 'ID',
@@ -43,7 +44,8 @@ return [
'result' => [
'label' => lng('admin.integrityresult'),
'field' => 'result',
'callback' => [Text::class, 'boolean']
'callback' => [Text::class, 'boolean'],
'searchable' => false,
]
],
'visible_columns' => Listing::getVisibleColumnsForListing('integrity_list', [

View File

@@ -29,6 +29,7 @@ return [
'mailtpl_list' => [
'title' => lng('admin.templates.templates'),
'icon' => 'fa-solid fa-envelope',
'self_overview' => ['section' => 'templates', 'page' => 'email'],
'columns' => [
'language' => [
'label' => lng('login.language'),

View File

@@ -45,7 +45,8 @@ return [
'domains' => [
'label' => lng('admin.phpsettings.activedomains'),
'field' => 'domains',
'callback' => [PHPConf::class, 'domainList']
'callback' => [PHPConf::class, 'domainList'],
'searchable' => false,
],
'fpmdesc' => [
'label' => lng('admin.phpsettings.fpmdesc'),

View File

@@ -30,6 +30,7 @@ return [
'plan_list' => [
'title' => lng('admin.plans.plans'),
'icon' => 'fa-solid fa-clipboard-list',
'self_overview' => ['section' => 'plans', 'page' => 'overview'],
'columns' => [
'p.id' => [
'label' => 'ID',

View File

@@ -31,6 +31,7 @@ return [
'backup_list' => [
'title' => lng('error.customerhasongoingbackupjob'),
'icon' => 'fa-solid fa-server',
'self_overview' => ['section' => 'extras', 'page' => 'backup'],
'columns' => [
'destdir' => [
'label' => lng('panel.path'),

View File

@@ -44,6 +44,7 @@ return [
'field' => 'ipsandports',
'sortable' => false,
'callback' => [Domain::class, 'listIPs'],
'searchable' => false,
],
'd.documentroot' => [
'label' => lng('panel.path'),

View File

@@ -44,7 +44,8 @@ return [
'size' => [
'label' => lng('mysql.size'),
'field' => 'size',
'callback' => [Text::class, 'size']
'callback' => [Text::class, 'size'],
'searchable' => false
],
'dbserver' => [
'label' => lng('mysql.mysql_server'),

View File

@@ -32,6 +32,7 @@ return [
'apikeys_list' => [
'title' => lng('menue.main.apikeys'),
'icon' => 'fa-solid fa-key',
'self_overview' => ['section' => 'index', 'page' => 'apikeys'],
'columns' => [
'a.loginname' => [
'label' => lng('login.username'),

View File

@@ -31,6 +31,7 @@ return [
'dns_list' => [
'title' => 'DNS Entries',
'icon' => 'fa-solid fa-globe',
'self_overview' => ['section' => 'domains', 'page' => 'domaindnseditor'],
'columns' => [
'record' => [
'label' => 'Record',

View File

@@ -23,16 +23,15 @@
* @license https://files.froxlor.org/misc/COPYING.txt GPLv2
*/
use Froxlor\Settings;
use Froxlor\UI\Callbacks\Domain;
use Froxlor\UI\Callbacks\SSLCertificate;
use Froxlor\UI\Callbacks\Text;
use Froxlor\UI\Listing;
return [
'sslcertificates_list' => [
'title' => lng('domains.ssl_certificates'),
'icon' => 'fa-solid fa-shield',
'self_overview' => ['section' => 'domains', 'page' => 'sslcertificates'],
'columns' => [
'd.domain' => [
'label' => lng('domains.domainname'),

View File

@@ -31,6 +31,7 @@ return [
'syslog_list' => [
'title' => lng('menue.logger.logger'),
'icon' => 'fa-solid fa-file-lines',
'self_overview' => ['section' => 'logger', 'page' => 'log'],
'columns' => [
'date' => [
'label' => lng('logger.date'),