From b3a4d9edf1533f953341d81f1a97ec18040dca65 Mon Sep 17 00:00:00 2001 From: Tatiana Llorente Date: Fri, 3 May 2019 13:24:15 +0200 Subject: [PATCH] New View Create/Update Agent - #3611 Former-commit-id: fc6de6e82874a71477493eb1e9c93a8a7385e342 --- .../godmode/agentes/agent_manager.php | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/pandora_console/godmode/agentes/agent_manager.php b/pandora_console/godmode/agentes/agent_manager.php index b9e3db84a4..3df97c79b8 100644 --- a/pandora_console/godmode/agentes/agent_manager.php +++ b/pandora_console/godmode/agentes/agent_manager.php @@ -377,7 +377,7 @@ echo ''; if (enterprise_installed()) { $secondary_groups_selected = enterprise_hook('agents_get_secondary_groups', [$id_agente]); - $table_adv_secondary_groups = '

'.__('Secondary groups').ui_print_help_icon('secondary_groups', true).'

'; + $table_adv_secondary_groups = '

'.__('Secondary groups').': '.ui_print_help_icon('secondary_groups', true).'

'; $table_adv_secondary_groups_left = html_print_select_groups( false, // Use the current user to select the groups @@ -482,7 +482,7 @@ if (enterprise_installed()) { $safe_mode_modules[$m['id_module']] = $m['name']; } - $table_adv_safe = '

'.__('Safe operation mode').ui_print_help_tip( + $table_adv_safe = '

'.__('Safe operation mode').': '.ui_print_help_tip( __( 'This mode allow %s to disable all modules of this agent while the selected module is on CRITICAL status', @@ -495,7 +495,7 @@ if (enterprise_installed()) { } // Remote configuration - $table_adv_remote = '

'.__('Remote configuration').'

'; + $table_adv_remote = '

'.__('Remote configuration').':

'; if (!$new_agent) { $table_adv_remote .= ''.__('Not available').''; @@ -536,16 +536,16 @@ if (enterprise_installed()) { $cps_array[$cps_inc] = __('Enabled'); } - $table_adv_cascade = '

'.__('Cascade protection services'); + $table_adv_cascade = '

'.__('Cascade protection services').': '; $table_adv_cascade .= ui_print_help_tip(__('Disable the alerts and events of the elements that belong to this service'), true).'

'; $table_adv_cascade .= html_print_select($cps_array, 'cps', $cps, '', '', 0, true).'
'; } // Custom ID -$table_adv_custom_id = '

'.__('Custom ID').'

'; +$table_adv_custom_id = '

'.__('Custom ID').':

'; $table_adv_custom_id .= html_print_input_text('custom_id', $custom_id, '', 16, 255, true).'
'; -$table_adv_parent = '

'.__('Parent').'

'; +$table_adv_parent = '

'.__('Parent').':

'; $params = []; $params['return'] = true; $params['show_helptip'] = true; @@ -566,7 +566,7 @@ if (enterprise_installed()) { $table_adv_parent .= __('Module').' '.html_print_select($modules_values, 'cascade_protection_module', $cascade_protection_module, '', '', 0, true).'
'; // Learn mode / Normal mode -$table_adv_module_mode = '

'.__('Module definition').ui_print_help_icon('module_definition', true).'

'; +$table_adv_module_mode = '

'.__('Module definition').': '.ui_print_help_icon('module_definition', true).'

'; $table_adv_module_mode .= '
'; $table_adv_module_mode .= html_print_radio_button_extended( 'modo', @@ -601,12 +601,12 @@ $table_adv_module_mode .= html_print_radio_button_extended( $table_adv_module_mode .= '
'; // Status (Disabled / Enabled) -$table_adv_status = '

'.__('Disabled').ui_print_help_tip(__('If the remote configuration is enabled, it will also go into standby mode when disabling it.'), true).'

'; +$table_adv_status = '

'.__('Disabled').': '.ui_print_help_tip(__('If the remote configuration is enabled, it will also go into standby mode when disabling it.'), true).'

'; $table_adv_status .= html_print_checkbox_switch('disabled', 1, $disabled, true).'
'; // Url address. if (enterprise_installed()) { - $table_adv_url = '

'.__('Url address').ui_print_help_tip(__('URL address must be complete, for example: https://pandorafms.com/'), true).'

'; + $table_adv_url = '

'.__('Url address').': '.ui_print_help_tip(__('URL address must be complete, for example: https://pandorafms.com/'), true).'

'; $table_adv_url .= html_print_input_text( 'url_description', $url_description, @@ -616,7 +616,7 @@ if (enterprise_installed()) { true ).'
'; } else { - $table_adv_url = '

'.__('Url address').'

'; + $table_adv_url = '

'.__('Url address').':

'; $table_adv_url .= html_print_input_text( 'url_description', $url_description, @@ -627,7 +627,7 @@ if (enterprise_installed()) { ).'
'; } -$table_adv_quiet = '

'.__('Quiet'); +$table_adv_quiet = '

'.__('Quiet').': '; $table_adv_quiet .= ui_print_help_tip(__('The agent still runs but the alerts and events will be stop'), true).'

'; $table_adv_quiet .= html_print_checkbox_switch('quiet', 1, $quiet, true).'
'; @@ -640,7 +640,7 @@ foreach ($listIcons as $index => $value) { $path = 'images/gis_map/icons/'; // TODO set better method the path -$table_adv_agent_icon = '

'.__('Agent icon').ui_print_help_tip(__('Agent icon for GIS Maps.'), true).'

'; +$table_adv_agent_icon = '

'.__('Agent icon').': '.ui_print_help_tip(__('Agent icon for GIS Maps.'), true).'

'; if ($icon_path == '') { $display_icons = 'none'; // Hack to show no icon. Use any given image to fix not found image errors