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' + ], + ], + ], + ] +];