Files
Froxlor/lib/formfields/customer/email/formfield.emails_add.php
Michael Kaufmann b03e11c18d fix email-domain navigation and descriptions
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
2023-03-03 13:03:12 +01:00

61 lines
1.8 KiB
PHP

<?php
/**
* This file is part of the Froxlor project.
* Copyright (c) 2010 the Froxlor Team (see authors).
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, you can also view it online at
* https://files.froxlor.org/misc/COPYING.txt
*
* @copyright the authors
* @author Froxlor team <team@froxlor.org>
* @license https://files.froxlor.org/misc/COPYING.txt GPLv2
*/
$email_domainid ?: 0;
return [
'emails_add' => [
'title' => lng('emails.emails_add'),
'image' => 'fa-solid fa-plus',
'self_overview' => ['section' => 'email', 'page' => $email_domainid != 0 ? 'email_domain' : 'emails', 'domainid' => $email_domainid],
'sections' => [
'section_a' => [
'title' => lng('emails.emails_add'),
'image' => 'icons/email_add.png',
'fields' => [
'email_part' => [
'label' => lng('emails.emailaddress'),
'type' => 'text',
'next_to' => [
'domain' => [
'next_to_prefix' => '@',
'type' => 'select',
'select_var' => $domains,
'selected' => $selected_domain
]
]
],
'iscatchall' => [
'label' => lng('emails.iscatchall'),
'type' => 'checkbox',
'value' => '1',
'checked' => false
]
]
]
]
]
];