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:
@@ -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' => ' @ ',
|
||||
'type' => 'select',
|
||||
'select_var' => $domains
|
||||
'type' => 'text',
|
||||
'next_to' => [
|
||||
'domain' => [
|
||||
'next_to_prefix' => ' @ ',
|
||||
'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
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user