SNMP visual changes
This commit is contained in:
parent
fe8d15855c
commit
87f17890f9
|
@ -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');
|
||||
|
|
|
@ -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>';
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue