diff --git a/pandora_console/godmode/agentes/modificar_agente.php b/pandora_console/godmode/agentes/modificar_agente.php
index 27f81b1f43..6056935be4 100644
--- a/pandora_console/godmode/agentes/modificar_agente.php
+++ b/pandora_console/godmode/agentes/modificar_agente.php
@@ -776,7 +776,7 @@ if ($agents !== false) {
}
if ((bool) $agent['disabled'] === true) {
- $additionalDataAgentName[] = ui_print_help_tip(__('Disabled'));
+ $additionalDataAgentName[] = ui_print_help_tip(__('Disabled'), true);
}
if ((bool) $agent['quiet'] === true) {
@@ -903,12 +903,12 @@ if ($agents !== false) {
if ((bool) $agent['disabled'] === true) {
$agentDisableEnableTitle = __('Enable agent');
- $agentDisableEnableAction = 'enable_agent';
+ $agentDisableEnableAction = 'enable';
$agentDisableEnableCaption = __('You are going to enable a cluster agent. Are you sure?');
$agentDisableEnableIcon = 'change-active.svg';
} else {
$agentDisableEnableTitle = __('Disable agent');
- $agentDisableEnableAction = 'disable_agent';
+ $agentDisableEnableAction = 'disable';
$agentDisableEnableCaption = __('You are going to disable a cluster agent. Are you sure?');
$agentDisableEnableIcon = 'change-pause.svg';
}
diff --git a/pandora_console/godmode/agentes/status_monitor_custom_fields.php b/pandora_console/godmode/agentes/status_monitor_custom_fields.php
index a960c32bf2..2dfb79185d 100644
--- a/pandora_console/godmode/agentes/status_monitor_custom_fields.php
+++ b/pandora_console/godmode/agentes/status_monitor_custom_fields.php
@@ -30,6 +30,26 @@ if (! check_acl($config['id_user'], 0, 'AR')
$update = get_parameter('upd_button', '');
$default = (int) get_parameter('default', 0);
+// Header.
+ui_print_standard_header(
+ __('Monitor detail').$subpage,
+ 'images/agent.png',
+ false,
+ '',
+ true,
+ $buttons,
+ [
+ [
+ 'link' => '',
+ 'label' => __('Monitoring'),
+ ],
+ [
+ 'link' => '',
+ 'label' => __('Views'),
+ ],
+ ],
+ (empty($fav_menu) === true) ? [] : $fav_menu
+);
if ($default != 0) {
$fields_selected = explode(',', $config['status_monitor_fields']);
@@ -161,11 +181,11 @@ foreach ($fields_available as $key => $available) {
// General title.
$generalTitleContent = [];
-$generalTitleContent[] = html_print_div([ 'style' => 'width: 10px; flex: 0 0 auto; margin-right: 5px;}', 'class' => 'section_table_title_line' ], true);
+// $generalTitleContent[] = html_print_div([ 'style' => 'width: 10px; flex: 0 0 auto; margin-right: 5px;}', 'class' => 'section_table_title_line' ], true);
$generalTitleContent[] = html_print_div([ 'class' => 'section_table_title', 'content' => __('Show monitor detail fields')], true);
$titledata[0] = html_print_div(['class' => 'flex-row-center', 'content' => implode('', $generalTitleContent) ], true);
$table->data['general_title'] = $titledata;
-$table->data[0][0] = ''.__('Fields available').'';
+$table->data[0][0] = ''.__('Fields available').'';
$table->data[1][0] = html_print_select($fields_available, 'fields_available[]', true, '', '', 0, true, true, false, '', false, 'width: 300px');
$table->data[1][1] = ''.html_print_image(
'images/darrowright.png',
@@ -187,7 +207,7 @@ $table->data[1][1] .= '
'.html_print_image(
).'';
$table->data[0][1] = '';
-$table->data[0][2] = ''.__('Fields selected').'';
+$table->data[0][2] = ''.__('Fields selected').'';
$table->data[1][2] = html_print_select(
$result_selected,
'fields_selected[]',
@@ -203,7 +223,7 @@ $table->data[1][2] = html_print_select(
'width: 300px'
);
-echo '
'.__('Group').'
'; - echo html_print_input( + $label = __('Group'); + $input = html_print_input( [ 'type' => 'select_groups', 'returnAllGroup' => true, @@ -126,9 +154,9 @@ if (is_ajax() === true) { break; case 1: - echo ''.__('Tag').'
'; + $label = __('Tag'); if (tags_has_user_acl_tags($config['id_user']) === false) { - echo html_print_select_from_sql( + $input = html_print_select_from_sql( 'SELECT id_tag, name FROM ttag WHERE id_tag @@ -142,7 +170,7 @@ if (is_ajax() === true) { true, false, false, - 'width: 200px', + 'width: 100%', '5' ); } else { @@ -150,7 +178,7 @@ if (is_ajax() === true) { if (!empty($user_tags)) { $id_user_tags = array_keys($user_tags); - echo html_print_select_from_sql( + $input = html_print_select_from_sql( 'SELECT id_tag, name FROM ttag WHERE id_tag IN ('.implode(',', $id_user_tags).') @@ -164,11 +192,11 @@ if (is_ajax() === true) { true, false, false, - 'width: 200px', + 'width: 100%', '5' ); } else { - echo html_print_select_from_sql( + $input = html_print_select_from_sql( 'SELECT id_tag, name FROM ttag WHERE id_tag @@ -182,7 +210,7 @@ if (is_ajax() === true) { true, false, false, - 'width: 200px', + 'width: 100%', '5' ); } @@ -190,8 +218,8 @@ if (is_ajax() === true) { break; case 2: - echo ''.__('Module group').'
'; - echo html_print_select_from_sql( + $label = __('Module group'); + $input = html_print_select_from_sql( 'SELECT id_mg, name FROM tmodule_group ORDER BY name', 'filter[]', $filter, @@ -202,7 +230,7 @@ if (is_ajax() === true) { true, true, false, - 'width: 200px', + 'width: 100%', '5' ); break; @@ -212,7 +240,14 @@ if (is_ajax() === true) { break; } - echo '