From a77a72cea5af88a85824dcae3c47edc37feb9233 Mon Sep 17 00:00:00 2001 From: "marcos.alconada" Date: Tue, 20 Aug 2019 13:07:47 +0200 Subject: [PATCH] fixed visual error on Open --- .../godmode/agentes/agent_manager.php | 64 +++++++++++++------ 1 file changed, 46 insertions(+), 18 deletions(-) diff --git a/pandora_console/godmode/agentes/agent_manager.php b/pandora_console/godmode/agentes/agent_manager.php index c24478eeb6..c4a0bfe8e0 100644 --- a/pandora_console/godmode/agentes/agent_manager.php +++ b/pandora_console/godmode/agentes/agent_manager.php @@ -804,20 +804,20 @@ $table_adv_options .= ' '.$table_adv_gis.$table_adv_agent_icon.$table_adv_url.$table_adv_quiet.$table_adv_status.$table_adv_remote.$table_adv_safe.' '; - -echo '
'; -ui_toggle( - $table_adv_options, - __('Advanced options'), - '', - '', - true, - false, - 'white_box white_box_opened', - 'no-border flex' -); -echo '
'; - +if (enterprise_installed()) { + echo '
'; + ui_toggle( + $table_adv_options, + __('Advanced options'), + '', + '', + true, + false, + 'white_box white_box_opened', + 'no-border flex' + ); + echo '
'; +} $table = new stdClass(); $table->width = '100%'; @@ -931,18 +931,46 @@ foreach ($fields as $field) { $i += 2; } -if (!empty($fields)) { +if (enterprise_installed()) { + if (!empty($fields)) { + echo '
'; + ui_toggle( + html_print_table($table, true), + __('Custom fields'), + '', + '', + true, + false, + 'white_box white_box_opened', + 'no-border' + ); + echo '
'; + } +} else { echo '
'; ui_toggle( - html_print_table($table, true), - __('Custom fields'), + $table_adv_options, + __('Advanced options'), '', '', true, false, 'white_box white_box_opened', - 'no-border' + 'no-border flex' ); + if (!empty($fields)) { + ui_toggle( + html_print_table($table, true), + __('Custom fields'), + '', + '', + true, + false, + 'white_box white_box_opened', + 'no-border' + ); + } + echo '
'; }