#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', 'class' => 'agent_details_line',
'content' => ui_toggle( 'content' => ui_toggle(
$html_toggle, $html_toggle,
__('List of modules').' '.$help_not_init.ui_print_help_tip( '<span class="subsection_header_title">'.__('List of modules').' '.$help_not_init.reporting_tiny_stats(
__('To see the list of modules paginated, enable this option in the Styles Configuration.'),
true
).reporting_tiny_stats(
$agent, $agent,
true, true,
'modules', 'modules',
':', ':',
true, true,
), ).'</span>',
'status_monitor_agent', 'status_monitor_agent',
false, false,
false, false,
@ -549,7 +546,8 @@ function print_form_filter_monitors(
$table->size[0] = '25%'; $table->size[0] = '25%';
$table->size[1] = '25%'; $table->size[1] = '25%';
$table->size[2] = '25%'; $table->size[2] = '25%';
$table->size[3] = '25%'; $table->size[3] = '15%';
$table->size[4] = '10%';
// Captions. // Captions.
$table->data[0][0] = html_print_label_input_block( $table->data[0][0] = html_print_label_input_block(
html_print_input_hidden('filter_monitors', 1, true).html_print_input_hidden( 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); $table->data[0][4] = html_print_button(
$filtersButtons = [];
$filtersButtons[] = html_print_button(
__('Filter'), __('Filter'),
'filter', 'filter',
false, false,
@ -633,9 +627,7 @@ function print_form_filter_monitors(
'style' => 'margin-left: 15px', 'style' => 'margin-left: 15px',
], ],
true true
); ).html_print_button(
$filtersButtons[] = html_print_button(
__('Reset'), __('Reset'),
'filter', 'filter',
false, false,
@ -646,6 +638,9 @@ function print_form_filter_monitors(
], ],
true 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. // TODO. Unused code.
if ($status_filter_monitor === -1 && empty($status_text_monitor) === true && $status_module_group === -1) { 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; echo $form_text;
html_print_div(
[
'class' => 'action-buttons-right-forced',
'content' => implode('', $filtersButtons),
]
);
} }