diff --git a/pandora_console/include/class/SnmpConsole.class.php b/pandora_console/include/class/SnmpConsole.class.php index 7104958234..6264b1879a 100644 --- a/pandora_console/include/class/SnmpConsole.class.php +++ b/pandora_console/include/class/SnmpConsole.class.php @@ -519,14 +519,21 @@ class SnmpConsole extends HTML __('Validate'), 'updatebt', false, - 'class="sub ok"', + [ + 'class' => 'sub ok', + 'icon' => 'next', + ], true ); $buttons[] = html_print_submit_button( __('Delete'), 'deletebt', false, - 'class="sub delete" onClick="javascript:return confirm(\''.__('Are you sure?').'\')"', + [ + 'icon' => 'delete', + 'mode' => 'secondary', + 'onClick' => "javascript:return confirm(\''.__('Are you sure?').'\')", + ], true ); @@ -535,60 +542,33 @@ class SnmpConsole extends HTML ['type' => 'form_action'] ); - echo '
'; - echo '

'.__('Status').'

'; - echo html_print_image( - 'images/pixel_green.png', - true, - [ - 'width' => '20', - 'height' => '20', - ] - ).' - '.__('Validated'); - echo '
'; - echo html_print_image( - 'images/pixel_red.png', - true, - [ - 'width' => '20', - 'height' => '20', - ] - ).' - '.__('Not validated'); - echo '
'; - echo '
'; - echo '

'.__('Alert').'

'; - echo html_print_image( - 'images/pixel_yellow.png', - true, - [ - 'width' => '20', - 'height' => '20', - ] - ).' - '.__('Fired'); - echo '
'; - echo html_print_image( - 'images/pixel_gray.png', - true, - [ - 'width' => '20', - 'height' => '20', - ] - ).' - '.__('Not fired'); - echo '
'; - echo '
'; - echo '

'.__('Action').'

'; - echo html_print_image('images/ok.png', true).' - '.__('Validate'); - echo '
'; - echo html_print_image('images/cross.png', true, ['class' => 'invert_filter']).' - '.__('Delete'); - echo '
'; - echo '
'; + echo ''; + echo ''; + echo ''; + echo ''; // Load own javascript file. echo $this->loadJS(); @@ -916,12 +896,13 @@ class SnmpConsole extends HTML $tmp->action = ''; if ($status != 1) { $tmp->action .= ''.html_print_image( - 'images/ok.png', + 'images/validate.svg', true, [ 'border' => '0', 'title' => __('Validate'), 'onclick' => 'validate_trap(\''.$tmp->id_trap.'\')', + 'class' => 'main_menu_icon', ] ).' '; } @@ -929,39 +910,39 @@ class SnmpConsole extends HTML if ($tmp->source === '') { if (\users_is_admin()) { $tmp->action .= ''.html_print_image( - 'images/cross.png', + 'images/delete.svg', true, [ 'border' => '0', 'title' => __('Delete'), - 'class' => 'invert_filter', + 'class' => 'invert_filter main_menu_icon', 'onclick' => 'delete_trap(\''.$tmp->id_trap.'\')', ] ).' '; } } else { $tmp->action .= ''.html_print_image( - 'images/cross.png', + 'images/delete.svg', true, [ 'border' => '0', 'title' => __('Delete'), - 'class' => 'invert_filter', + 'class' => 'invert_filter main_menu_icon', 'onclick' => 'delete_trap(\''.$tmp->id_trap.'\')', ] ).' '; } $tmp->action .= ''.html_print_image( - 'images/eye.png', + 'images/see-details@svg.svg', true, [ 'alt' => __('Show more'), 'title' => __('Show more'), - 'class' => 'invert_filter', + 'class' => 'invert_filter main_menu_icon', ] ).''; - $tmp->action .= ''.html_print_image('images/edit.png', true, ['alt' => __('SNMP trap editor'), 'title' => __('SNMP trap editor')]).''; + $tmp->action .= ''.html_print_image('images/edit.svg', true, ['alt' => __('SNMP trap editor'), 'title' => __('SNMP trap editor'), 'class' => 'main_menu_icon']).''; $tmp->m = html_print_checkbox_extended('snmptrapid[]', $tmp->id_trap, false, false, '', 'class="chk"', true); diff --git a/pandora_console/include/styles/pandora.css b/pandora_console/include/styles/pandora.css index 63877db4b4..40ab68cace 100644 --- a/pandora_console/include/styles/pandora.css +++ b/pandora_console/include/styles/pandora.css @@ -7029,6 +7029,20 @@ div.graph div.legend table { line-height: 17px; vertical-align: top; width: 120px; + position: relative; +} + +.snmp_view_div > span { + padding: 2px 10px 2px 10px; + border-radius: 10px; +} + +.snmp_view_div > h3 { + text-transform: unset; +} + +#legend_snmp_browser > tbody > tr > td { + vertical-align: top; } .display_in {
'; echo '

'.__('Severity').'

'; foreach (get_priorities() as $num => $name) { echo ''.$name.''; echo '
'; } - echo '
'; + echo '
'; + echo '

'.__('Status').'

'; + echo ''.__('Validated').''; + echo '
'; + echo ''.__('Not validated').''; + echo '
'; + echo '

'.__('Alert').'

'; + echo ''.__('Alert').''; + echo '
'; + echo ''.__('Not fired').''; + echo '
'; + echo '

'.__('Action').'

'; + echo '
'; + echo html_print_image('images/validate.svg', true, ['class' => 'main_menu_icon']).' - '.__('Validate'); + echo '
'; + echo html_print_image('images/delete.svg', true, ['class' => 'main_menu_icon']).' - '.__('Delete'); + echo '