From 9b5d3aed97b8f32c09311ef6ef4dd77fc6c83c26 Mon Sep 17 00:00:00 2001 From: Michael Kaufmann Date: Mon, 23 May 2022 13:07:59 +0200 Subject: [PATCH] fix emails-edit formfield Signed-off-by: Michael Kaufmann --- .../customer/email/formfield.emails_edit.php | 60 +++++++++---------- 1 file changed, 30 insertions(+), 30 deletions(-) diff --git a/lib/formfields/customer/email/formfield.emails_edit.php b/lib/formfields/customer/email/formfield.emails_edit.php index aeee8cbf..86646949 100644 --- a/lib/formfields/customer/email/formfield.emails_edit.php +++ b/lib/formfields/customer/email/formfield.emails_edit.php @@ -25,17 +25,17 @@ use Froxlor\Settings; -return array( - 'emails_edit' => array( +return [ + 'emails_edit' => [ 'title' => lng('emails.emails_edit'), 'image' => 'fa-solid fa-pen', 'self_overview' => ['section' => 'email', 'page' => 'emails'], - 'sections' => array( - 'section_a' => array( + 'sections' => [ + 'section_a' => [ 'title' => lng('emails.emails_edit'), 'image' => 'icons/email_edit.png', 'nobuttons' => true, - 'fields' => array( + 'fields' => [ 'email_full' => [ 'label' => lng('emails.emailaddress'), 'type' => 'label', @@ -90,34 +90,34 @@ return array( ] ] ], - 'mail_catchall' => array( + 'mail_catchall' => [ 'label' => lng('emails.catchall'), 'type' => 'label', - 'value' => ((int)$result['iscatchall'] == 0 ? lng('panel.no'] : lng('panel')['yes')), + 'value' => ((int)$result['iscatchall'] == 0 ? lng('panel.no') : lng('panel.yes')), 'next_to' => [ - 'add_link' => [ - 'type' => 'link', - 'href' => $filename . '?page=' . $page . '&action=togglecatchall&id=' . $result['id'], - 'label' => ' ' . lng('panel.toggle'), - 'classes' => 'btn btn-sm btn-secondary' - ] -] - ), + 'add_link' => [ + 'type' => 'link', + 'href' => $filename . '?page=' . $page . '&action=togglecatchall&id=' . $result['id'], + 'label' => ' ' . lng('panel.toggle'), + 'classes' => 'btn btn-sm btn-secondary' + ] + ] + ], 'mail_fwds' => [ - 'label' => lng('emails.forwarders') . ' (' . $forwarders_count . ')', - 'type' => 'itemlist', - 'values' => $forwarders, - 'next_to' => [ - 'add_link' => [ - 'type' => 'link', - 'href' => $filename . '?page=forwarders&action=add&id=' . $result['id'], - 'label' => lng('emails.forwarder_add'), - 'classes' => 'btn btn-sm btn-primary' + 'label' => lng('emails.forwarders') . ' (' . $forwarders_count . ')', + 'type' => 'itemlist', + 'values' => $forwarders, + 'next_to' => [ + 'add_link' => [ + 'type' => 'link', + 'href' => $filename . '?page=forwarders&action=add&id=' . $result['id'], + 'label' => lng('emails.forwarder_add'), + 'classes' => 'btn btn-sm btn-primary' + ] + ] + ] + ] + ] ] ] -] - ) - ) - ) - ) -) +];