diff --git a/pandora_console/extensions/agents_modules.php b/pandora_console/extensions/agents_modules.php
index dbf41a648b..604bb3a3f5 100644
--- a/pandora_console/extensions/agents_modules.php
+++ b/pandora_console/extensions/agents_modules.php
@@ -397,55 +397,135 @@ function mainAgentsModules()
1 => __('Show module data'),
];
- $filter_type_label = ''.__('Information to be shown').'';
- $filter_type = html_print_select($show_select, 'show_type', $show_type, '', '', 0, true, false, false, '', false, 'min-width: 180px;');
-
- // Groups.
- $filter_groups_label = ''.__('Group').'';
- $filter_groups = html_print_select_groups(false, 'AR', true, 'group_id', $group_id, '', '', '', true, false, true, '', false, 'width: auto;');
-
- $filter_recursion_label = '
'.__('Recursion').'';
- $filter_recursion = html_print_checkbox('recursion', 1, 0, true).' | ';
- // Groups module.
- $filter_module_groups_label = ''.__('Module group').'';
- $filter_module_groups = html_print_select_from_sql(
- 'SELECT * FROM tmodule_group ORDER BY name',
- 'modulegroup',
- $modulegroup,
- '',
- __('All'),
- 0,
- true,
- false,
- true,
- false,
- 'width: auto;'
+ $filter_type = html_print_label_input_block(
+ __('Information to be shown'),
+ html_print_select(
+ $show_select,
+ 'show_type',
+ $show_type,
+ '',
+ '',
+ 0,
+ true,
+ false,
+ false,
+ '',
+ false,
+ 'width: 100%;'
+ )
+ );
+
+ $filter_groups = html_print_label_input_block(
+ __('Group'),
+ html_print_select_groups(
+ false,
+ 'AR',
+ true,
+ 'group_id',
+ $group_id,
+ '',
+ '',
+ '',
+ true,
+ false,
+ true,
+ '',
+ false,
+ 'width: 100%;'
+ )
+ );
+
+ $filter_groups .= html_print_label_input_block(
+ __('Recursion'),
+ html_print_checkbox_switch('recursion', 1, 0, true),
+ [
+ 'div_class' => 'add-input-reverse',
+ 'label_class' => 'label-thin',
+ ]
+ );
+
+ $filter_module_groups = html_print_label_input_block(
+ __('Module group'),
+ html_print_select_from_sql(
+ 'SELECT * FROM tmodule_group ORDER BY name',
+ 'modulegroup',
+ $modulegroup,
+ '',
+ __('All'),
+ 0,
+ true,
+ false,
+ true,
+ false,
+ 'width: 100%;'
+ )
);
- // Agent.
$agents = agents_get_group_agents($group_id);
if ((empty($agents)) || $agents == -1) {
$agents = [];
}
- $filter_agents_label = ''.__('Agents').'';
- $filter_agents = html_print_select($agents, 'id_agents2[]', $agents_id, '', '', 0, true, true, true, '', false, 'min-width: 180px; max-width: 200px;');
+ $filter_agents = html_print_label_input_block(
+ __('Agents'),
+ html_print_select(
+ $agents,
+ 'id_agents2[]',
+ $agents_id,
+ '',
+ '',
+ 0,
+ true,
+ true,
+ true,
+ '',
+ false,
+ 'width: 100%;'
+ )
+ );
// Type show.
$selection = [
0 => __('Show common modules'),
1 => __('Show all modules'),
];
- $filter_type_show_label = ''.__('Show common modules').'';
- $filter_type_show = html_print_select($selection, 'selection_agent_module', $selection_a_m, '', '', 0, true, false, true, '', false, 'min-width: 180px;');
+ $filter_type_show = html_print_label_input_block(
+ __('Show common modules'),
+ html_print_select(
+ $selection,
+ 'selection_agent_module',
+ $selection_a_m,
+ '',
+ '',
+ 0,
+ true,
+ false,
+ true,
+ '',
+ false,
+ 'width: 100%;'
+ )
+ );
// Modules.
$all_modules = select_modules_for_agent_group($group_id, $agents_id, $selection_a_m, false);
- $filter_modules_label = ''.__('Module').'';
- $filter_modules = html_print_select($all_modules, 'module[]', $modules_selected, '', '', 0, true, true, false, '', false, 'min-width: 180px; max-width: 200px;');
-
- // Update.
- $filter_update = html_print_submit_button(__('Update item'), 'edit_item', false, 'class="sub upd"', true);
+ $filter_modules = html_print_label_input_block(
+ __('Module'),
+ html_print_select(
+ $all_modules,
+ 'module[]',
+ $modules_selected,
+ '',
+ '',
+ 0,
+ true,
+ true,
+ false,
+ '',
+ false,
+ 'width: 100%;'
+ )
+ );
$onheader = [
'updated_time' => $updated_time,
@@ -566,36 +646,39 @@ function mainAgentsModules()
if ($config['pure'] != 1) {
$show_filters = '