From 58cbf1a6a07f80b70ad892b7321c3653bac45a2e Mon Sep 17 00:00:00 2001 From: zarzuelo Date: Mon, 29 Oct 2012 10:23:55 +0000 Subject: [PATCH] 2012-10-29 Sergio Martin * include/help/en/help_alert_fields_description.php include/help/en/help_alert_fields_values.php include/help/es/help_alert_fields_description.php include/help/es/help_alert_fields_values.php godmode/alerts/configure_alert_command.php: Add help to the command new fields system git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7104 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 9 +++++++++ .../godmode/alerts/configure_alert_command.php | 12 ++++++++++++ .../help/en/help_alert_fields_description.php | 10 ++++++++++ .../include/help/en/help_alert_fields_values.php | 16 ++++++++++++++++ .../help/es/help_alert_fields_description.php | 10 ++++++++++ .../include/help/es/help_alert_fields_values.php | 16 ++++++++++++++++ 6 files changed, 73 insertions(+) create mode 100644 pandora_console/include/help/en/help_alert_fields_description.php create mode 100644 pandora_console/include/help/en/help_alert_fields_values.php create mode 100644 pandora_console/include/help/es/help_alert_fields_description.php create mode 100644 pandora_console/include/help/es/help_alert_fields_values.php diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 880c799ae1..03eaf62d22 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,12 @@ +2012-10-29 Sergio Martin + + * include/help/en/help_alert_fields_description.php + include/help/en/help_alert_fields_values.php + include/help/es/help_alert_fields_description.php + include/help/es/help_alert_fields_values.php + godmode/alerts/configure_alert_command.php: Add help to the command + new fields system + 2012-10-29 Ramon Novoa * include/functions_reporting.php, diff --git a/pandora_console/godmode/alerts/configure_alert_command.php b/pandora_console/godmode/alerts/configure_alert_command.php index 347f8a8f63..cfc6ad548b 100644 --- a/pandora_console/godmode/alerts/configure_alert_command.php +++ b/pandora_console/godmode/alerts/configure_alert_command.php @@ -78,6 +78,12 @@ $table->data[2][1] = html_print_textarea ('description', 10, 30, $description, ' for($i=1;$i<=10;$i++) { $table->data['field'.$i][0] = sprintf(__('Field %s description'), $i); + + // Only show help on first row + if($i == 1) { + $table->data['field'.$i][0] .= ui_print_help_icon ('alert_fields_description', true); + } + if(!empty($fields_descriptions)) { $field_description = $fields_descriptions[$i-1]; } @@ -87,6 +93,12 @@ for($i=1;$i<=10;$i++) { $table->data['field'.$i][1] = html_print_input_text ('field'.$i.'_description', $field_description, '', 35, 255, true); $table->data['field'.$i][2] = sprintf(__('Field %s values'), $i); + + // Only show help on first row + if($i == 1) { + $table->data['field'.$i][2] .= ui_print_help_icon ('alert_fields_values', true); + } + if(!empty($fields_values)) { $field_values = $fields_values[$i-1]; } diff --git a/pandora_console/include/help/en/help_alert_fields_description.php b/pandora_console/include/help/en/help_alert_fields_description.php new file mode 100644 index 0000000000..8424963160 --- /dev/null +++ b/pandora_console/include/help/en/help_alert_fields_description.php @@ -0,0 +1,10 @@ + +

Fields description

+ +Is possible configure a custom description to each field in the command configuration. +

+This description will appear in the action configuration form near the field text box when this command is selected. diff --git a/pandora_console/include/help/en/help_alert_fields_values.php b/pandora_console/include/help/en/help_alert_fields_values.php new file mode 100644 index 0000000000..0635196557 --- /dev/null +++ b/pandora_console/include/help/en/help_alert_fields_values.php @@ -0,0 +1,16 @@ + +

Fields values

+ +To limit the possible values on a field, is possible to define a list of value/tag. If this list is defined, the field will be a selection combo. +

+The format will be the following: +

+value1,tag1;value2,tag2;value3,tag3 +

+Example: +

+1,Number one;2,Number two;3,Number three;4,Number four diff --git a/pandora_console/include/help/es/help_alert_fields_description.php b/pandora_console/include/help/es/help_alert_fields_description.php new file mode 100644 index 0000000000..f8614bbfe8 --- /dev/null +++ b/pandora_console/include/help/es/help_alert_fields_description.php @@ -0,0 +1,10 @@ + +

Descripcion de campos

+ +Es posible configurar una descripcion personalizada a cada campo en la configuracion del comando. +

+Esta descripcion aparecera en el formulario de configuracion de la accion junto a la caja de texto del campo cuando se seleccione el comando. diff --git a/pandora_console/include/help/es/help_alert_fields_values.php b/pandora_console/include/help/es/help_alert_fields_values.php new file mode 100644 index 0000000000..8e40bfd6c1 --- /dev/null +++ b/pandora_console/include/help/es/help_alert_fields_values.php @@ -0,0 +1,16 @@ + +

Valores de los campos

+ +Para limitar los valores posibles de un campo, se puede definir una lista de valor/etiqueta. Si esta lista es definida, el campo sera un combo de seleccion. +

+El formato sera el siguiente: +

+valor1,etiqueta1;valor2,etiqueta2;valor3,etiqueta3 +

+Ejemplo: +

+1,Numero uno;2,Numero dos;3,Numero tres;4,Numero cuatro