fix emails-edit formfield

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2022-05-23 13:07:59 +02:00
parent e02164049e
commit 9b5d3aed97

View File

@@ -25,17 +25,17 @@
use Froxlor\Settings; use Froxlor\Settings;
return array( return [
'emails_edit' => array( 'emails_edit' => [
'title' => lng('emails.emails_edit'), 'title' => lng('emails.emails_edit'),
'image' => 'fa-solid fa-pen', 'image' => 'fa-solid fa-pen',
'self_overview' => ['section' => 'email', 'page' => 'emails'], 'self_overview' => ['section' => 'email', 'page' => 'emails'],
'sections' => array( 'sections' => [
'section_a' => array( 'section_a' => [
'title' => lng('emails.emails_edit'), 'title' => lng('emails.emails_edit'),
'image' => 'icons/email_edit.png', 'image' => 'icons/email_edit.png',
'nobuttons' => true, 'nobuttons' => true,
'fields' => array( 'fields' => [
'email_full' => [ 'email_full' => [
'label' => lng('emails.emailaddress'), 'label' => lng('emails.emailaddress'),
'type' => 'label', 'type' => 'label',
@@ -90,34 +90,34 @@ return array(
] ]
] ]
], ],
'mail_catchall' => array( 'mail_catchall' => [
'label' => lng('emails.catchall'), 'label' => lng('emails.catchall'),
'type' => 'label', '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' => [ 'next_to' => [
'add_link' => [ 'add_link' => [
'type' => 'link', 'type' => 'link',
'href' => $filename . '?page=' . $page . '&amp;action=togglecatchall&amp;id=' . $result['id'], 'href' => $filename . '?page=' . $page . '&amp;action=togglecatchall&amp;id=' . $result['id'],
'label' => '<i class="fa-solid fa-arrow-right-arrow-left"></i> ' . lng('panel.toggle'), 'label' => '<i class="fa-solid fa-arrow-right-arrow-left"></i> ' . lng('panel.toggle'),
'classes' => 'btn btn-sm btn-secondary' 'classes' => 'btn btn-sm btn-secondary'
] ]
] ]
), ],
'mail_fwds' => [ 'mail_fwds' => [
'label' => lng('emails.forwarders') . ' (' . $forwarders_count . ')', 'label' => lng('emails.forwarders') . ' (' . $forwarders_count . ')',
'type' => 'itemlist', 'type' => 'itemlist',
'values' => $forwarders, 'values' => $forwarders,
'next_to' => [ 'next_to' => [
'add_link' => [ 'add_link' => [
'type' => 'link', 'type' => 'link',
'href' => $filename . '?page=forwarders&amp;action=add&amp;id=' . $result['id'], 'href' => $filename . '?page=forwarders&amp;action=add&amp;id=' . $result['id'],
'label' => lng('emails.forwarder_add'), 'label' => lng('emails.forwarder_add'),
'classes' => 'btn btn-sm btn-primary' 'classes' => 'btn btn-sm btn-primary'
]
]
]
]
]
] ]
] ]
] ];
)
)
)
)
)