From 61f6a474e44d13e0939e4fe2bf83784ee0dc2eef Mon Sep 17 00:00:00 2001 From: Michael Kaufmann Date: Thu, 12 Jan 2023 09:59:19 +0100 Subject: [PATCH] add emails-overview tablelisting Signed-off-by: Michael Kaufmann --- .../customer/tablelisting.emails_overview.php | 75 +++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 lib/tablelisting/customer/tablelisting.emails_overview.php diff --git a/lib/tablelisting/customer/tablelisting.emails_overview.php b/lib/tablelisting/customer/tablelisting.emails_overview.php new file mode 100644 index 00000000..2d261676 --- /dev/null +++ b/lib/tablelisting/customer/tablelisting.emails_overview.php @@ -0,0 +1,75 @@ + + * @license https://files.froxlor.org/misc/COPYING.txt GPLv2 + */ + +use Froxlor\UI\Callbacks\Impersonate; +use Froxlor\UI\Callbacks\Style; +use Froxlor\UI\Callbacks\Text; +use Froxlor\UI\Listing; + +return [ + 'emaildomain_list' => [ + 'title' => lng('menue.main.emailsoverview'), + 'icon' => 'fa-solid fa-key', + 'self_overview' => ['section' => 'email', 'page' => 'overview'], + 'columns' => [ + 'd.domain' => [ + 'label' => 'Domain', + 'field' => 'domain', + ], + 'addresses' => [ + 'label' => '# Adresses', + 'field' => 'addresses', + 'searchable' => false, + ], + 'accounts' => [ + 'label' => '# Accounts', + 'field' => 'accounts', + 'searchable' => false, + ], + 'forwarder' => [ + 'label' => '# Forwarders', + 'field' => 'forwarder', + 'searchable' => false, + ], + ], + 'visible_columns' => Listing::getVisibleColumnsForListing('apikeys_list', [ + 'd.domain', + 'addresses', + 'accounts', + 'forwarder', + ]), + 'actions' => [ + 'show' => [ + 'icon' => 'fa-solid fa-eye', + 'title' => lng('apikeys.clicktoview'), + 'href' => [ + 'section' => 'email', + 'page' => 'email_domain', + 'domainid' => ':domainid' + ], + ], + ], + ] +];