SNMP visual changes

This commit is contained in:
Jonathan 2023-02-27 12:13:38 +01:00
parent fe8d15855c
commit 87f17890f9
3 changed files with 24 additions and 5 deletions

View File

@ -208,6 +208,7 @@ if ($edit_filter > -2) {
'alt' => __('Click to add new filter'),
'title' => __('Click to add new filter'),
'style' => 'height:20px',
'class' => 'invert_filter',
]
);
$table->data[1][0] = __('Filter');

View File

@ -542,14 +542,23 @@ class SnmpConsole extends HTML
['type' => 'form_action']
);
echo '<table id="legend_snmp_browser"><td><div class="snmp_view_div">';
echo '<h3>'.__('Severity').'</h3>';
foreach (get_priorities() as $num => $name) {
echo '<table id="legend_snmp_browser"><td><div class="snmp_view_div w100p">';
echo '<h3 style="position: relative;left: 50%;">'.__('Severity').'</h3>';
echo '<div class="display-flex"><div class="flex-50">';
$priorities = get_priorities();
$half = (count($priorities) / 2);
$count = 0;
foreach ($priorities as $num => $name) {
if ($count == $half) {
echo '</div><div class="mrgn_lft_5px flex-50">';
}
echo '<span class="'.get_priority_class($num).'">'.$name.'</span>';
echo '<br />';
$count++;
}
echo '</div></td>';
echo '</div></div></div></td>';
echo '<td><div class="snmp_view_div">';
echo '<h3>'.__('Status').'</h3>';
echo '<span class="datos_green">'.__('Validated').'</span>';

View File

@ -966,6 +966,14 @@ select:-internal-list-box {
margin-left: 0.5em;
}
.flex-50 {
flex: 50%;
}
.display-flex {
display: flex;
}
.no-border {
border: none;
}
@ -7035,7 +7043,8 @@ div.graph div.legend table {
position: relative;
}
.snmp_view_div > span {
.snmp_view_div > span,
.snmp_view_div > div > div > span {
padding: 2px 10px 2px 10px;
border-radius: 10px;
}