Minor fixes or improvements

This commit is contained in:
Jose Gonzalez 2023-02-24 13:37:47 +01:00
parent ec3e99e459
commit a6f1037c9a
10 changed files with 43 additions and 29 deletions

View File

@ -742,7 +742,7 @@ $outputForm .= ui_toggle(
true, true,
'', '',
'', '',
'box-flat white_table_flex white_table_graph_fixed mrgn_top_20px' 'box-flat white_table_flex white_table_graph_fixed'
); );
$outputForm .= ui_toggle( $outputForm .= ui_toggle(

View File

@ -865,8 +865,7 @@ $tagsAvailableData .= html_print_image(
[ [
'id' => 'right', 'id' => 'right',
'title' => __('Add tags to module'), 'title' => __('Add tags to module'),
'class' => 'invert_filter clickable', 'class' => 'main_menu_icon invert_filter clickable mrgn_lft_5px',
'style' => 'width: 32px;',
] ]
); );

View File

@ -2031,17 +2031,20 @@ if ($table_events) {
$tableEvents24h = new stdClass(); $tableEvents24h = new stdClass();
$tableEvents24h->class = 'filter_table'; $tableEvents24h->class = 'filter_table';
$tableEvents24h->styleTable = 'border-radius: 0;padding: 0;margin: 0 0 10px;'; $tableEvents24h->styleTable = 'border: 0;padding: 0;margin: 0 0 10px;';
$tableEvents24h->width = '100%'; $tableEvents24h->width = '100%';
$tableEvents24h->data = []; $tableEvents24h->data = [];
$tableEvents24h->data[0] = __('Show all Events 24h'); $tableEvents24h->data[0] = html_print_div(
$tableEvents24h->rowstyle[1] = 'height: 42px';
$tableEvents24h->data[1] = html_print_switch(
[ [
'name' => 'all_events_24h', 'class' => 'flex-row-center',
'value' => $all_events_24h, 'content' => '<span class="font_14px mrgn_right_10px">'.__('Show all Events 24h').'</span>'.html_print_switch(
'id' => 'checkbox-all_events_24h', [
'name' => 'all_events_24h',
'value' => $all_events_24h,
'id' => 'checkbox-all_events_24h',
]
),
] ]
); );

View File

@ -2726,7 +2726,7 @@ function events_print_type_img(
[ [
'title' => events_print_type_description($type, true), 'title' => events_print_type_description($type, true),
'class' => $style, 'class' => $style,
'style' => 'margin-left: 30px;'.((empty($icon) === false) ? 'background-image: url('.$icon.'); background-repeat: no-repeat;' : ''), 'style' => 'margin: 0 auto;'.((empty($icon) === false) ? 'background-image: url('.$icon.'); background-repeat: no-repeat;' : ''),
], ],
true true
); );

View File

@ -585,7 +585,7 @@ function treeview_printTable($id_agente, $server_data=[], $no_head=false)
$urlAgent = ''; $urlAgent = '';
} }
} else { } else {
$urlAgent = 'window.location.assign(\'index.php?sec=estado&amp;sec2=operation/agentes/ver_agente&amp;id_agente='.$agent['id_agente'].'\')'; $urlAgent = 'index.php?sec=estado&amp;sec2=operation/agentes/ver_agente&amp;id_agente='.$agent['id_agente'];
} }
$cellName = $agent['alias']; $cellName = $agent['alias'];
@ -713,7 +713,7 @@ function treeview_printTable($id_agente, $server_data=[], $no_head=false)
ui_toggle( ui_toggle(
$eventsGraph, $eventsGraph,
'<span class="subsection_header_title">'.__('Events (24h)').'</span>', '<span class="subsection_header_title secondary">'.__('Events (24h)').'</span>',
'', '',
'', '',
false, false,
@ -733,7 +733,7 @@ function treeview_printTable($id_agente, $server_data=[], $no_head=false)
$access_graph .= '</div>'; $access_graph .= '</div>';
ui_toggle( ui_toggle(
$access_graph, $access_graph,
'<span class="subsection_header_title">'.__('Agent access rate (24h)').'</span>', '<span class="subsection_header_title secondary">'.__('Agent access rate (24h)').'</span>',
'', '',
'', '',
true, true,
@ -812,7 +812,7 @@ function treeview_printTable($id_agente, $server_data=[], $no_head=false)
$table_interfaces = html_print_table($table, true); $table_interfaces = html_print_table($table, true);
$table_interfaces .= '<br>'; $table_interfaces .= '<br>';
ui_toggle($table_interfaces, __('Interface information').' (SNMP)'); ui_toggle($table_interfaces, '<span class="subsection_header_title secondary">'.__('Interface information').' (SNMP)</span>');
} }
// Advanced data. // Advanced data.
@ -906,7 +906,7 @@ function treeview_printTable($id_agente, $server_data=[], $no_head=false)
// End of table advanced. // End of table advanced.
ui_toggle( ui_toggle(
html_print_table($table_advanced, true), html_print_table($table_advanced, true),
'<span class="subsection_header_title">'.__('Advanced information').'</span>', '<span class="subsection_header_title secondary">'.__('Advanced information').'</span>',
'', '',
'', '',
true, true,

View File

@ -5948,6 +5948,9 @@ div#bullets_modules div {
} }
/* First row in agent view */ /* First row in agent view */
.agent_details_first_row.agent_details_line {
margin: 0;
}
.agent_details_line { .agent_details_line {
display: flex; display: flex;
margin: 20px 0 0; margin: 20px 0 0;
@ -6149,7 +6152,7 @@ div#status_pie {
} }
.white_table_graph_fixed { .white_table_graph_fixed {
margin: 0 20px 20px; margin: 0 0 20px;
} }
.white_table_graph_fixed table { .white_table_graph_fixed table {
@ -11023,6 +11026,7 @@ table.table_modal_alternate
.tags_available_container { .tags_available_container {
display: flex; display: flex;
align-items: center;
} }
.tags_selected_container .select2-selection--multiple { .tags_selected_container .select2-selection--multiple {
@ -11035,7 +11039,8 @@ table.table_modal_alternate
.selection .selection
span.select2-selection--multiple span.select2-selection--multiple
ul.select2-selection__rendered { ul.select2-selection__rendered {
padding: 5px 0 !important; padding: 5px 0 0 0 !important;
float: left;
} }
.result_info_text { .result_info_text {
@ -11092,6 +11097,13 @@ table.table_modal_alternate
span.subsection_header_title { span.subsection_header_title {
height: 18px; height: 18px;
} }
.subsection_header_title.secondary {
font-size: 14px;
}
span.subsection_header_title.secondary {
height: 14px;
}
.regular_font { .regular_font {
font-family: "lato" !important; font-family: "lato" !important;
} }

View File

@ -522,7 +522,7 @@ if ($agent_view_page === true) {
true, true,
'box-flat agent_details_col', 'box-flat agent_details_col',
'white-box-content', 'white-box-content',
'mrgn_lft_20px mrgn_right_20px width_available' 'width_available'
), ),
], ],
); );

View File

@ -160,7 +160,7 @@ $table_status->cellspacing = 0;
$table_status->cellpadding = 0; $table_status->cellpadding = 0;
$table_status->class = 'floating_form'; $table_status->class = 'floating_form';
$table_status->style[0] = 'height: 32px; width: 30%; padding-right: 5px; text-align: end;'; $table_status->style[0] = 'height: 32px; width: 30%; padding-right: 5px; text-align: end;';
$table_status->style[1] = 'height: 32px; width: 70%; padding-left: 5px;'; $table_status->style[1] = 'height: 32px; width: 70%; padding-left: 5px; font-weight: lighter';
$agentStatusGraph = html_print_div( $agentStatusGraph = html_print_div(
[ [
@ -382,7 +382,7 @@ $table_contact->cellspacing = 0;
$table_contact->cellpadding = 0; $table_contact->cellpadding = 0;
$table_contact->class = 'floating_form'; $table_contact->class = 'floating_form';
$table_contact->style[0] = 'height: 32px; width: 30%; padding-right: 5px; text-align: end;'; $table_contact->style[0] = 'height: 32px; width: 30%; padding-right: 5px; text-align: end;';
$table_contact->style[1] = 'height: 32px; width: 70%; padding-left: 5px;'; $table_contact->style[1] = 'height: 32px; width: 70%; padding-left: 5px; font-weight: lighter';
$agentContactCaption = html_print_div( $agentContactCaption = html_print_div(
[ [
@ -705,7 +705,7 @@ if ((bool) $config['agentaccess'] === true && $access_agent > 0) {
$agentAccessRate = html_print_div( $agentAccessRate = html_print_div(
[ [
'class' => 'box-flat agent_details_col mrgn_right_20px', 'class' => 'box-flat agent_details_col mrgn_lft_20px',
'id' => 'table_access_rate', 'id' => 'table_access_rate',
'content' => $agentAccessRateHeader.$agentAccessRateContent, 'content' => $agentAccessRateHeader.$agentAccessRateContent,
], ],
@ -991,7 +991,7 @@ $agent_contact .= html_print_table($table_contact, true);
$agentDetails = html_print_div( $agentDetails = html_print_div(
[ [
'class' => 'box-flat agent_details_col mrgn_lft_20px mrgn_right_20px', 'class' => 'box-flat agent_details_col',
'content' => $table_agent, 'content' => $table_agent,
], ],
true true
@ -999,7 +999,7 @@ $agentDetails = html_print_div(
$agentContact = html_print_div( $agentContact = html_print_div(
[ [
'class' => 'box-flat agent_details_col mrgn_right_20px', 'class' => 'box-flat agent_details_col mrgn_lft_20px',
'content' => $agent_contact, 'content' => $agent_contact,
], ],
true true
@ -1032,7 +1032,7 @@ $agentEventsGraph = html_print_div(
$agentEvents = html_print_div( $agentEvents = html_print_div(
[ [
'class' => 'box-flat agent_details_col mrgn_lft_20px mrgn_right_20px', 'class' => 'box-flat agent_details_col',
'content' => $agentEventsHeader.$agentEventsGraph, 'content' => $agentEventsHeader.$agentEventsGraph,
], ],
true true
@ -1052,8 +1052,8 @@ if (isset($data_opcional) === false || isset($data_opcional->data) === false ||
false, false,
true, true,
'box-flat agent_details_col agent_details_toggle agent_details_first_row w100p', 'box-flat agent_details_col agent_details_toggle agent_details_first_row w100p',
'mrgn_lft_20px mrgn_right_20px', 'mrgn_right_20px',
'mrgn_lft_20px mrgn_right_20px w100p' 'w100p'
); );
} }

View File

@ -203,7 +203,7 @@ html_print_div(
true, true,
'box-flat agent_details_col', 'box-flat agent_details_col',
'white-box-content', 'white-box-content',
'mrgn_lft_20px mrgn_right_20px width_available' 'width_available'
), ),
], ],
); );

View File

@ -34,7 +34,7 @@ html_print_div(
true, true,
'box-flat agent_details_col', 'box-flat agent_details_col',
'white-box-content', 'white-box-content',
'mrgn_lft_20px mrgn_right_20px width_available' 'width_available'
), ),
], ],
); );