From 87362d07f4747ff92115b98ee3ec8244d89d380c Mon Sep 17 00:00:00 2001 From: marcos Date: Tue, 13 Apr 2021 15:37:44 +0200 Subject: [PATCH] fixed visual error selects home view --- .../godmode/users/configure_user.php | 23 +++++++++++++++++++ pandora_console/operation/users/user_edit.php | 8 +++---- 2 files changed, 27 insertions(+), 4 deletions(-) diff --git a/pandora_console/godmode/users/configure_user.php b/pandora_console/godmode/users/configure_user.php index 2909620e3b..6948368eb1 100644 --- a/pandora_console/godmode/users/configure_user.php +++ b/pandora_console/godmode/users/configure_user.php @@ -1111,7 +1111,9 @@ if ($dashboards === false) { } } +$home_screen .= ''; $layouts = visual_map_get_user_layouts($config['id_user'], true); @@ -1124,6 +1126,7 @@ if ($layouts === false) { } } +$home_screen .= ''; + $home_screen .= html_print_input_text( 'data_section', $user_info['data_section'], @@ -1664,46 +1669,64 @@ function show_data_section () { $("#text-data_section").css("display", "none"); $("#dashboard").css("display", ""); $("#visual_console").css("display", "none"); + $("#show_vc").css("display", "none"); + $("#show_db").css("display", "inline-grid"); break; case : $("#text-data_section").css("display", "none"); $("#dashboard").css("display", "none"); $("#visual_console").css("display", ""); + $("#show_vc").css("display", "inline-grid"); + $("#show_db").css("display", "none"); break; case : $("#text-data_section").css("display", "none"); $("#dashboard").css("display", "none"); $("#visual_console").css("display", "none"); + $("#show_vc").css("display", "none"); + $("#show_db").css("display", "none"); break; case : $("#text-data_section").css("display", "none"); $("#dashboard").css("display", "none"); $("#visual_console").css("display", "none"); + $("#show_vc").css("display", "none"); + $("#show_db").css("display", "none"); break; case : $("#text-data_section").css("display", "none"); $("#dashboard").css("display", "none"); $("#visual_console").css("display", "none"); + $("#show_vc").css("display", "none"); + $("#show_db").css("display", "none"); break; case : $("#text-data_section").css("display", "none"); $("#dashboard").css("display", "none"); $("#visual_console").css("display", "none"); + $("#show_vc").css("display", "none"); + $("#show_db").css("display", "none"); break; case : $("#text-data_section").css("display", ""); $("#dashboard").css("display", "none"); $("#visual_console").css("display", "none"); + $("#show_vc").css("display", "none"); + $("#show_db").css("display", "none"); break; case : $("#text-data_section").css("display", ""); $("#dashboard").css("display", "none"); $("#visual_console").css("display", "none"); + $("#show_vc").css("display", "none"); + $("#show_db").css("display", "none"); break; case : $("#text-data_section").css("display", "none"); $("#dashboard").css("display", "none"); $("#visual_console").css("display", "none"); + $("#show_vc").css("display", "none"); + $("#show_db").css("display", "none"); break; } } diff --git a/pandora_console/operation/users/user_edit.php b/pandora_console/operation/users/user_edit.php index 128b96a4c3..c19abc8fd9 100644 --- a/pandora_console/operation/users/user_edit.php +++ b/pandora_console/operation/users/user_edit.php @@ -376,7 +376,7 @@ if (!$meta) { } } - $home_screen .= ''; if ($config['ehorus_enabled'] && $config['ehorus_user_level_conf']) { - // eHorus user remote login + // EHorus user remote login. $table_remote = new StdClass(); $table_remote->data = []; $table_remote->width = '100%'; @@ -693,12 +693,12 @@ if ($config['ehorus_enabled'] && $config['ehorus_user_level_conf']) { $table_remote->style['name'] = 'font-weight: bold'; - // Title + // Title. $row = []; $row['control'] = '

'.__('eHorus user configuration').':

'; $table_remote->data['ehorus_user_level_conf'] = $row; - // Enable/disable eHorus for this user + // Enable/disable eHorus for this user. $row = []; $row['name'] = __('eHorus user acces enabled'); $row['control'] = html_print_checkbox_switch('ehorus_user_level_enabled', 1, $user_info['ehorus_user_level_enabled'], true);