From e2cfc5d615d128203fbe10c4feb76b323e9076af Mon Sep 17 00:00:00 2001 From: Marcos Alconada Date: Thu, 27 May 2021 16:22:19 +0000 Subject: [PATCH] fixed visual error on alerts black theme --- .../godmode/snmpconsole/snmp_alert.php | 40 +++++++++++++++++-- .../include/styles/pandora_black.css | 8 ++++ 2 files changed, 45 insertions(+), 3 deletions(-) diff --git a/pandora_console/godmode/snmpconsole/snmp_alert.php b/pandora_console/godmode/snmpconsole/snmp_alert.php index f806096ea9..0dc5f20a8e 100755 --- a/pandora_console/godmode/snmpconsole/snmp_alert.php +++ b/pandora_console/godmode/snmpconsole/snmp_alert.php @@ -1257,7 +1257,14 @@ if ($create_alert || $update_alert) { foreach ($other_actions as $action) { $data[1] .= ''; $data[1] .= ''.alerts_get_alert_action_name($action['alert_type']).''; - $data[1] .= ' '.html_print_image('images/cross.png', true, ['border' => '0', 'alt' => __('Delete')]).' '; + $data[1] .= ' '.html_print_image( + 'images/cross.png', + true, + [ + 'border' => '0', + 'alt' => __('Delete'), + ] + ).' '; $data[1] .= ''; } } @@ -1278,7 +1285,34 @@ if ($create_alert || $update_alert) { } if (check_acl_restricted_all($config['id_user'], $row['id_group'], 'LW')) { - $data[8] = ''.html_print_image('images/copy.png', true, ['alt' => __('Duplicate'), 'title' => __('Duplicate'), 'class' => 'invert_filter']).''.''.html_print_image('images/config.png', true, ['border' => '0', 'alt' => __('Update'), 'class' => 'invert_filter']).''.''.html_print_image('images/add.png', true, ['title' => __('Add action'), 'class' => 'invert_filter']).''.''.html_print_image('images/cross.png', true, ['border' => '0', 'class' => 'invert_filter', 'alt' => __('Delete')]).''; + $data[8] = ''.html_print_image( + 'images/copy.png', + true, + [ + 'alt' => __('Duplicate'), + 'title' => __('Duplicate'), + ] + ).''.''.html_print_image( + 'images/config.png', + true, + [ + 'border' => '0', + 'alt' => __('Update'), + ] + ).''.''.html_print_image( + 'images/add.png', + true, + [ + 'title' => __('Add action'), + ] + ).''.''.html_print_image( + 'images/cross.png', + true, + [ + 'border' => '0', + 'alt' => __('Delete'), + ] + ).''; $data[9] = html_print_checkbox_extended( @@ -1409,7 +1443,7 @@ if ($create_alert || $update_alert) { echo '
'; html_print_input_hidden('multiple_delete', 1); - html_print_submit_button(__('Delete selected'), 'delete_button', false, 'class="sub delete"'); + html_print_submit_button(__('Delete selected'), 'delete_button', false, 'class="sub delete mrgn_btn_10px"'); echo '
'; echo ''; } diff --git a/pandora_console/include/styles/pandora_black.css b/pandora_console/include/styles/pandora_black.css index f5e971c065..09393879ba 100644 --- a/pandora_console/include/styles/pandora_black.css +++ b/pandora_console/include/styles/pandora_black.css @@ -1019,3 +1019,11 @@ li.ui-tabs-tab.ui-corner-top.ui-state-default.ui-tab { margin: 20px auto; border-radius: 3px; } + +table.alternate tr:nth-child(2n + 1) td { + background-color: #222; +} + +table.alternate tr:nth-child(2n) td { + background-color: #111; +}