From 52f391667a72942cd9b1411f41a86d0a34bb6836 Mon Sep 17 00:00:00 2001 From: Tatiana Llorente Date: Fri, 28 Jun 2019 10:24:53 +0200 Subject: [PATCH] Style changes - #4250 --- pandora_console/extensions/db_status.php | 2 +- pandora_console/godmode/agentes/planned_downtime.list.php | 5 +---- pandora_console/godmode/events/custom_events.php | 4 ++-- pandora_console/include/styles/tables.css | 3 ++- pandora_console/operation/network/network_report.php | 2 +- pandora_console/operation/network/network_usage_map.php | 2 +- pandora_console/operation/users/webchat.php | 4 ++-- 7 files changed, 10 insertions(+), 12 deletions(-) diff --git a/pandora_console/extensions/db_status.php b/pandora_console/extensions/db_status.php index d78ff90fc8..5659ed6d9b 100755 --- a/pandora_console/extensions/db_status.php +++ b/pandora_console/extensions/db_status.php @@ -69,7 +69,7 @@ function extension_db_status() echo "
"; html_print_input_hidden('db_status_execute', 1); - html_print_submit_button(__('Execute Test'), 'submit', false, 'class="sub"'); + html_print_submit_button(__('Execute Test'), 'submit', false, 'class="sub next"'); echo '
'; echo ''; diff --git a/pandora_console/godmode/agentes/planned_downtime.list.php b/pandora_console/godmode/agentes/planned_downtime.list.php index 961ea1f7d0..49a72f125d 100755 --- a/pandora_console/godmode/agentes/planned_downtime.list.php +++ b/pandora_console/godmode/agentes/planned_downtime.list.php @@ -52,7 +52,7 @@ if ($migrate_malformed) { // Header. ui_print_page_header( - __('Planned Downtime'), + __('Scheduled Downtime'), 'images/gm_monitoring.png', false, 'planned_downtime', @@ -136,9 +136,6 @@ $table_form = new StdClass(); $table_form->class = 'databox filters'; $table_form->width = '100%'; $table_form->rowstyle = []; -$table_form->rowstyle[0] = 'background-color: #f9faf9;'; -$table_form->rowstyle[1] = 'background-color: #f9faf9;'; -$table_form->rowstyle[2] = 'background-color: #f9faf9;'; $table_form->data = []; $row = []; diff --git a/pandora_console/godmode/events/custom_events.php b/pandora_console/godmode/events/custom_events.php index cfdf50cf17..fb4b6f9ab1 100644 --- a/pandora_console/godmode/events/custom_events.php +++ b/pandora_console/godmode/events/custom_events.php @@ -126,7 +126,7 @@ foreach ($fields_available as $key => $available) { $table->data[0][0] = ''.__('Fields available').''; $table->data[1][0] = html_print_select($fields_available, 'fields_available[]', true, '', '', 0, true, true, false, '', false, 'width: 300px'); $table->data[1][1] = ''.html_print_image( - 'images/darrowright.png', + 'images/darrowright_green.png', true, [ 'id' => 'right', @@ -134,7 +134,7 @@ $table->data[1][1] = ''.html_print_image( ] ).''; $table->data[1][1] .= '



'.html_print_image( - 'images/darrowleft.png', + 'images/darrowleft_green.png', true, [ 'id' => 'left', diff --git a/pandora_console/include/styles/tables.css b/pandora_console/include/styles/tables.css index a017dae715..c3e1deb94c 100644 --- a/pandora_console/include/styles/tables.css +++ b/pandora_console/include/styles/tables.css @@ -190,7 +190,8 @@ } .info_table > tbody > tr:hover { - background-color: #eee; + /* This !important is necessary to overwrite the white background of tables with less than 5 rows. */ + background-color: #eee !important; } .info_.profile_list > thead > tr > th > a.tip { diff --git a/pandora_console/operation/network/network_report.php b/pandora_console/operation/network/network_report.php index c9f3edf408..d590e224fb 100644 --- a/pandora_console/operation/network/network_report.php +++ b/pandora_console/operation/network/network_report.php @@ -62,7 +62,7 @@ $style_period = ($is_period) ? '' : 'display: none;'; // Build the table. $table = new stdClass(); -$table->class = 'databox'; +$table->class = 'databox filters'; $table->styleTable = 'width: 100%'; $table->data['0']['0'] = __('Data to show').'  '; $table->data['0']['0'] .= html_print_select( diff --git a/pandora_console/operation/network/network_usage_map.php b/pandora_console/operation/network/network_usage_map.php index 046cc1fcc4..764cd4eae3 100644 --- a/pandora_console/operation/network/network_usage_map.php +++ b/pandora_console/operation/network/network_usage_map.php @@ -67,7 +67,7 @@ $style_period = ($is_period) ? '' : 'display: none;'; // Build the table. $table = new stdClass(); -$table->class = 'databox'; +$table->class = 'databox filters'; $table->styleTable = 'width: 100%'; $table->data['0']['0'] = '
'; diff --git a/pandora_console/operation/users/webchat.php b/pandora_console/operation/users/webchat.php index db97864863..7e6e58712c 100644 --- a/pandora_console/operation/users/webchat.php +++ b/pandora_console/operation/users/webchat.php @@ -79,10 +79,10 @@ $table->class = 'databox filters'; $table->style[0][1] = 'text-align: right; vertical-align: top;'; $table->data[0][0] = '
'; $table->data[0][1] = '

'.__('Users Online').'

'.'
'; $table->data[1][0] = ''.__('Message').'   '.html_print_input_text( 'message_box',