update some more formfields; improved formfields with wrapper fieldrow()-macro to reduce duplicate markup; enable next_to functionality for some fields

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2022-02-20 12:50:29 +01:00
parent 23ecc40b1a
commit e6d12be7b3
25 changed files with 473 additions and 830 deletions

View File

@@ -17,7 +17,7 @@
return array(
'emails_add' => array(
'title' => $lng['emails']['emails_add'],
'image' => 'icons/email_add.png',
'image' => 'fa-solid fa-plus',
'sections' => array(
'section_a' => array(
'title' => $lng['emails']['emails_add'],
@@ -25,26 +25,20 @@ return array(
'fields' => array(
'email_part' => array(
'label' => $lng['emails']['emailaddress'],
'type' => 'textul',
'ul_field' => '',
'has_nextto' => true
),
'domain' => array(
'next_to' => 'email_part',
'next_to_prefix' => '&nbsp;@&nbsp;',
'type' => 'select',
'select_var' => $domains
'type' => 'text',
'next_to' => [
'domain' => [
'next_to_prefix' => '&nbsp;@&nbsp;',
'type' => 'select',
'select_var' => $domains
]
]
),
'iscatchall' => array(
'label' => $lng['emails']['iscatchall'],
'type' => 'checkbox',
'values' => array(
array(
'label' => $lng['panel']['yes'],
'value' => '1'
)
),
'value' => array()
'value' => '1',
'checked' => false
)
)
)