From 136ad128f936cca26b60fae9e0fb0782089e5e3f Mon Sep 17 00:00:00 2001 From: Calvo Date: Tue, 30 Nov 2021 12:12:24 +0100 Subject: [PATCH] Added help tip to percentage token --- .../godmode/agentes/module_manager_editor_common.php | 2 ++ pandora_console/godmode/massive/massive_edit_modules.php | 3 +++ .../godmode/modules/manage_network_components_form_common.php | 2 ++ .../godmode/modules/manage_network_components_form_wizard.php | 2 ++ 4 files changed, 9 insertions(+) diff --git a/pandora_console/godmode/agentes/module_manager_editor_common.php b/pandora_console/godmode/agentes/module_manager_editor_common.php index ecdc0e7926..58d38e48fb 100644 --- a/pandora_console/godmode/agentes/module_manager_editor_common.php +++ b/pandora_console/godmode/agentes/module_manager_editor_common.php @@ -463,6 +463,7 @@ $table_simple->data[2][1] .= ''; if (modules_is_string_type($id_module_type) === false) { $table_simple->data[2][1] .= '
'.__('Percentage').''; $table_simple->data[2][1] .= html_print_checkbox('percentage_warning', 1, $percentage_warning, true, $disabledBecauseInPolicy); + $table_simple->data[2][1] .= ui_print_help_tip('Defines threshold as a percentage of value decrease/increment', true); $table_simple->data[2][1] .= '
'; } @@ -523,6 +524,7 @@ $table_simple->data[3][1] .= ''; if (modules_is_string_type($id_module_type) === false) { $table_simple->data[3][1] .= '
'.__('Percentage').''; + $table_simple->data[3][1] .= ui_print_help_tip('Defines threshold as a percentage of value decrease/increment', true); $table_simple->data[3][1] .= html_print_checkbox('percentage_critical', 1, $percentage_critical, true, $disabledBecauseInPolicy); $table_simple->data[3][1] .= '
'; } diff --git a/pandora_console/godmode/massive/massive_edit_modules.php b/pandora_console/godmode/massive/massive_edit_modules.php index 6fb13482e0..9d0544b649 100755 --- a/pandora_console/godmode/massive/massive_edit_modules.php +++ b/pandora_console/godmode/massive/massive_edit_modules.php @@ -616,6 +616,8 @@ $table->data['edit1'][1] = ''; $table->data['edit1'][1] .= ''; $table->data['edit1'][1] .= ''; $table->data['edit1'][1] .= '
'; $table->data['edit1'][1] .= ''.__('Percentage').''; + $table->data['edit1'][1] .= ui_print_help_tip('Defines threshold as a percentage of value decrease/increment', true); + $table->data['edit1'][1] .= ''; $table->data['edit1'][1] .= html_print_select( @@ -706,6 +708,7 @@ $table->data['edit1'][1] = ''; $table->data['edit1'][3] .= ''; $table->data['edit1'][3] .= ''; $table->data['edit1'][3] .= '
'; $table->data['edit1'][3] .= ''.__('Percentage').''; + $table->data['edit1'][3] .= ui_print_help_tip('Defines threshold as a percentage of value decrease/increment', true); $table->data['edit1'][3] .= ''; $table->data['edit1'][3] .= html_print_select( diff --git a/pandora_console/godmode/modules/manage_network_components_form_common.php b/pandora_console/godmode/modules/manage_network_components_form_common.php index 417868f183..c924eefb2f 100644 --- a/pandora_console/godmode/modules/manage_network_components_form_common.php +++ b/pandora_console/godmode/modules/manage_network_components_form_common.php @@ -192,6 +192,7 @@ $table->data[4][1] .= html_print_checkbox('warning_inverse', 1, $warning_inverse $table->data[4][1] .= ''; $table->data[4][1] .= '
'.__('Percentage').''; +$table->data[4][1] .= ui_print_help_tip('Defines threshold as a percentage of value decrease/increment', true); $table->data[4][1] .= html_print_checkbox('percentage_warning', 1, $percentage_warning, true); $table->data[4][1] .= '
'; @@ -232,6 +233,7 @@ $table->data[5][1] .= html_print_checkbox('critical_inverse', 1, $critical_inver $table->data[5][1] .= ''; $table->data[5][1] .= '
'.__('Percentage').''; +$table->data[5][1] .= ui_print_help_tip('Defines threshold as a percentage of value decrease/increment', true); $table->data[5][1] .= html_print_checkbox('percentage_critical', 1, $percentage_critical, true); $table->data[5][1] .= '
'; diff --git a/pandora_console/godmode/modules/manage_network_components_form_wizard.php b/pandora_console/godmode/modules/manage_network_components_form_wizard.php index d3d4b6e4d3..990390fe47 100644 --- a/pandora_console/godmode/modules/manage_network_components_form_wizard.php +++ b/pandora_console/godmode/modules/manage_network_components_form_wizard.php @@ -394,6 +394,7 @@ $data[1] .= html_print_checkbox('warning_inverse', 1, $warning_inverse, true); $data[1] .= ''; $data[1] .= '
'.__('Percentage').' '; +$data[1] .= ui_print_help_tip('Defines threshold as a percentage of value decrease/increment', true); $data[1] .= html_print_checkbox('percentage_warning', 1, $percentage_warning, true); $data[1] .= '
'; @@ -435,6 +436,7 @@ $data[1] .= html_print_checkbox('critical_inverse', 1, $critical_inverse, true); $data[1] .= ''; $data[1] .= ''.__('Percentage').' '; +$data[1] .= ui_print_help_tip('Defines threshold as a percentage of value decrease/increment', true); $data[1] .= html_print_checkbox('percentage_critical', 1, $percentage_critical, true); $data[1] .= '';