#11119 change visual list of modules agent

This commit is contained in:
Jonathan 2023-05-08 15:37:49 +02:00
parent e96fda12eb
commit c5b2835215
1 changed files with 9 additions and 20 deletions

View File

@ -187,16 +187,13 @@ html_print_div(
'class' => 'agent_details_line',
'content' => ui_toggle(
$html_toggle,
__('List of modules').' '.$help_not_init.ui_print_help_tip(
__('To see the list of modules paginated, enable this option in the Styles Configuration.'),
true
).reporting_tiny_stats(
'<span class="subsection_header_title">'.__('List of modules').' '.$help_not_init.reporting_tiny_stats(
$agent,
true,
'modules',
':',
true,
),
).'</span>',
'status_monitor_agent',
false,
false,
@ -549,7 +546,8 @@ function print_form_filter_monitors(
$table->size[0] = '25%';
$table->size[1] = '25%';
$table->size[2] = '25%';
$table->size[3] = '25%';
$table->size[3] = '15%';
$table->size[4] = '10%';
// Captions.
$table->data[0][0] = html_print_label_input_block(
html_print_input_hidden('filter_monitors', 1, true).html_print_input_hidden(
@ -618,11 +616,7 @@ function print_form_filter_monitors(
)
);
$form_text = html_print_table($table, true);
$filtersButtons = [];
$filtersButtons[] = html_print_button(
$table->data[0][4] = html_print_button(
__('Filter'),
'filter',
false,
@ -633,9 +627,7 @@ function print_form_filter_monitors(
'style' => 'margin-left: 15px',
],
true
);
$filtersButtons[] = html_print_button(
).html_print_button(
__('Reset'),
'filter',
false,
@ -646,6 +638,9 @@ function print_form_filter_monitors(
],
true
);
$table->cellstyle[0][4] = 'width:20%;display: flex;flex-direction: row-reverse;justify-content: flex-end;height: 60px;align-items: flex-end;width:10%;';
$form_text = html_print_table($table, true);
// TODO. Unused code.
if ($status_filter_monitor === -1 && empty($status_text_monitor) === true && $status_module_group === -1) {
@ -655,10 +650,4 @@ function print_form_filter_monitors(
}
echo $form_text;
html_print_div(
[
'class' => 'action-buttons-right-forced',
'content' => implode('', $filtersButtons),
]
);
}