add more columns for custom-column selection (customer view)
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
@@ -40,4 +40,16 @@ class Email
|
||||
]
|
||||
];
|
||||
}
|
||||
|
||||
public static function forwarderList(array $attributes)
|
||||
{
|
||||
$forwarders = explode(" ", $attributes['data']);
|
||||
if (($key = array_search($attributes['fields']['email_full'], $forwarders)) !== false) {
|
||||
unset($forwarders[$key]);
|
||||
}
|
||||
if (count($forwarders) > 0) {
|
||||
return implode("<br>", $forwarders);
|
||||
}
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -25,6 +25,7 @@
|
||||
|
||||
use Froxlor\UI\Callbacks\Domain;
|
||||
use Froxlor\UI\Callbacks\Style;
|
||||
use Froxlor\UI\Callbacks\Text;
|
||||
use Froxlor\UI\Listing;
|
||||
|
||||
return [
|
||||
@@ -33,9 +34,6 @@ return [
|
||||
'icon' => 'fa-solid fa-globe',
|
||||
'self_overview' => ['section' => 'domains', 'page' => 'domains'],
|
||||
'columns' => [
|
||||
'ad.id' => [
|
||||
'field' => 'aliasdomainid'
|
||||
],
|
||||
'd.domain_ace' => [
|
||||
'label' => lng('domains.domainname'),
|
||||
'field' => 'domain_ace',
|
||||
@@ -45,7 +43,36 @@ return [
|
||||
'label' => lng('panel.path'),
|
||||
'field' => 'documentroot',
|
||||
'callback' => [Domain::class, 'domainTarget'],
|
||||
]
|
||||
],
|
||||
'd.isbinddomain' => [
|
||||
'label' => lng('domains.isbinddomain'),
|
||||
'field' => 'isbinddomain',
|
||||
'callback' => [Text::class, 'boolean'],
|
||||
],
|
||||
'd.isemaildomain' => [
|
||||
'label' => lng('admin.emaildomain'),
|
||||
'field' => 'isemaildomain',
|
||||
'callback' => [Text::class, 'boolean'],
|
||||
],
|
||||
'd.email_only' => [
|
||||
'label' => lng('admin.email_only'),
|
||||
'field' => 'email_only',
|
||||
'callback' => [Text::class, 'boolean'],
|
||||
],
|
||||
'd.iswildcarddomain' => [
|
||||
'label' => lng('domains.serveraliasoption_wildcard'),
|
||||
'field' => 'iswildcarddomain',
|
||||
'callback' => [Text::class, 'boolean'],
|
||||
],
|
||||
'd.letsencrypt' => [
|
||||
'label' => lng('panel.letsencrypt'),
|
||||
'field' => 'letsencrypt',
|
||||
'callback' => [Text::class, 'boolean'],
|
||||
],
|
||||
'ad.id' => [
|
||||
'label' => lng('domains.aliasdomainid'),
|
||||
'field' => 'aliasdomainid'
|
||||
],
|
||||
],
|
||||
'visible_columns' => Listing::getVisibleColumnsForListing('domain_list', [
|
||||
'd.domain_ace',
|
||||
|
||||
@@ -41,7 +41,7 @@ return [
|
||||
'm.destination' => [
|
||||
'label' => lng('emails.forwarders'),
|
||||
'field' => 'destination',
|
||||
// @todo formatting
|
||||
'callback' => [Email::class, 'forwarderList'],
|
||||
],
|
||||
'm.popaccountid' => [
|
||||
'label' => lng('emails.account'),
|
||||
|
||||
Reference in New Issue
Block a user