fix inline-if-statements to show specific fields only if necessary, refs #633
Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
@@ -34,14 +34,14 @@ return array(
|
||||
'type' => 'password'
|
||||
),
|
||||
'email_quota' => array(
|
||||
'visible' => $settings['system']['mail_quota_enabled'],
|
||||
'visible' => ($settings['system']['mail_quota_enabled'] == '1' ? true : false),
|
||||
'label' => $lng['emails']['quota'],
|
||||
'desc' => $lng['panel']['megabyte'],
|
||||
'type' => 'text',
|
||||
'value' => $quota
|
||||
),
|
||||
'alternative_email' => array(
|
||||
'visible' => $settings['panel']['sendalternativemail'],
|
||||
'visible' => ($settings['panel']['sendalternativemail'] == '1' ? true : false),
|
||||
'label' => $lng['emails']['alternative_emailaddress'],
|
||||
'type' => 'text'
|
||||
)
|
||||
|
||||
@@ -17,12 +17,12 @@
|
||||
return array(
|
||||
'ticket_add' => array(
|
||||
'title' => $lng['ticket']['ticket_new'],
|
||||
'image' => 'icons/ticket_add.png',
|
||||
'sections' => array(
|
||||
'section_a' => array(
|
||||
'title' => $lng['ticket']['ticket_new'],
|
||||
'image' => 'icons/ticket_add.png',
|
||||
'fields' => array(
|
||||
'image' => 'icons/ticket_add.png',
|
||||
'sections' => array(
|
||||
'section_a' => array(
|
||||
'title' => $lng['ticket']['ticket_new'],
|
||||
'image' => 'icons/ticket_add.png',
|
||||
'fields' => array(
|
||||
'subject' => array(
|
||||
'label' => $lng['ticket']['subject'],
|
||||
'type' => 'text',
|
||||
|
||||
Reference in New Issue
Block a user