From 61ac3d3dddbe810b969d4537d342161bd1f69e34 Mon Sep 17 00:00:00 2001
From: Ramon Novoa
Date: Wed, 2 Sep 2009 15:53:05 +0000
Subject: [PATCH] 2009-09-02 Ramon Novoa
* include/help/en/help_alert_macros.php,
include/help/es/help_alert_macros.php: Added to repository. Alert
macro help files.
* godmode/alerts/configure_alert_template.php: Show alert macro help.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1908 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
---
pandora_console/ChangeLog | 8 ++++++
.../alerts/configure_alert_template.php | 8 +++---
.../include/help/en/help_alert_macros.php | 25 +++++++++++++++++++
.../include/help/es/help_alert_macros.php | 25 +++++++++++++++++++
4 files changed, 62 insertions(+), 4 deletions(-)
create mode 100644 pandora_console/include/help/en/help_alert_macros.php
create mode 100644 pandora_console/include/help/es/help_alert_macros.php
diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog
index c35890164b..55edf58fb5 100644
--- a/pandora_console/ChangeLog
+++ b/pandora_console/ChangeLog
@@ -1,3 +1,11 @@
+2009-09-02 Ramon Novoa
+
+ * include/help/en/help_alert_macros.php,
+ include/help/es/help_alert_macros.php: Added to repository. Alert
+ macro help files.
+
+ * godmode/alerts/configure_alert_template.php: Show alert macro help.
+
2009-09-01 Sancho Lerena
* pandoradb_data.sql: Updated version, added two new module groups and
diff --git a/pandora_console/godmode/alerts/configure_alert_template.php b/pandora_console/godmode/alerts/configure_alert_template.php
index c656c0a9ef..bc10af9733 100644
--- a/pandora_console/godmode/alerts/configure_alert_template.php
+++ b/pandora_console/godmode/alerts/configure_alert_template.php
@@ -1,4 +1,4 @@
-data[3][3] = print_input_text ('max_alerts', $max_alerts, '',
5, 7, true);
- $table->data['field1'][0] = __('Field 1');
+ $table->data['field1'][0] = __('Field 1') . print_help_icon ('alert_macros', true);
$table->data['field1'][1] = print_input_text ('field1', $field1, '', 35, 255, true);
- $table->data['field2'][0] = __('Field 2');
+ $table->data['field2'][0] = __('Field 2') . print_help_icon ('alert_macros', true);
$table->data['field2'][1] = print_input_text ('field2', $field2, '', 35, 255, true);
- $table->data['field3'][0] = __('Field 3');
+ $table->data['field3'][0] = __('Field 3') . print_help_icon ('alert_macros', true);
$table->data['field3'][1] = print_textarea ('field3', 10, 30, $field3, '', true);
$table->data[4][0] = __('Default action');
diff --git a/pandora_console/include/help/en/help_alert_macros.php b/pandora_console/include/help/en/help_alert_macros.php
new file mode 100644
index 0000000000..124043932e
--- /dev/null
+++ b/pandora_console/include/help/en/help_alert_macros.php
@@ -0,0 +1,25 @@
+
+Alert macros
+
+
+The following macros are available:
+
+- _field1_: User defined field 1.
+- _field2_: User defined field 2.
+- _field3_: User defined field 3.
+- _agent_: Name of the agent that fired the alert.
+- _address_: Address of the agent that fired the alert.
+- _timestamp_: Time when the alert was fired.
+- _data_: Module data that caused the alert to fire.
+- _alert_description_: Alert description.
+- _alert_threshold_: Alert threshold.
+- _alert_times_fired_: Number of times the alert has been fired.
+
+
+
+Example: Agent _agent_ error: _alert_description_.
+
diff --git a/pandora_console/include/help/es/help_alert_macros.php b/pandora_console/include/help/es/help_alert_macros.php
new file mode 100644
index 0000000000..a7d2b74dab
--- /dev/null
+++ b/pandora_console/include/help/es/help_alert_macros.php
@@ -0,0 +1,25 @@
+
+Macros de alertas
+
+
+Las siguientes macros están disponibles:
+
+- _field1_: Campo 1 definido por el usuario.
+- _field2_: Campo 2 definido por el usuario.
+- _field3_: Campo 3 definido por el usuario.
+- _agent_: Nombre del agente que disparó la alerta.
+- _address_: Dirección del agente que disparó la alerta.
+- _timestamp_: Hora y fecha en que se disparó la alerta.
+- _data_: Dato que hizo que la alerta se disparase.
+- _alert_description_: Descripción de la alerta.
+- _alert_threshold_: Umbral de la alerta.
+- _alert_times_fired_: Número de veces que se ha disparado la alerta.
+
+
+
+Ejemplo: Error en el agente _agent_: _alert_description_.
+