mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2026-06-09 08:54:56 -04:00
Differentiate notification object and template
Show a different label and description when configuring a notification object or a template.
This commit is contained in:
parent
9a9886d263
commit
8142229fae
2 changed files with 25 additions and 9 deletions
|
|
@ -16,11 +16,19 @@ class IcingaNotificationForm extends DirectorObjectForm
|
|||
return;
|
||||
}
|
||||
|
||||
$this->addElement('text', 'object_name', array(
|
||||
'label' => $this->translate('Notification'),
|
||||
'required' => true,
|
||||
'description' => $this->translate('Icinga object name for this notification')
|
||||
));
|
||||
if ($this->isTemplate()) {
|
||||
$this->addElement('text', 'object_name', array(
|
||||
'label' => $this->translate('Notification Template'),
|
||||
'required' => true,
|
||||
'description' => $this->translate('Name for the Icinga notification template you are going to create')
|
||||
));
|
||||
} else {
|
||||
$this->addElement('text', 'object_name', array(
|
||||
'label' => $this->translate('Notification'),
|
||||
'required' => true,
|
||||
'description' => $this->translate('Name for the Icinga notification you are going to create')
|
||||
));
|
||||
}
|
||||
|
||||
$this->addDisabledElement()
|
||||
->addImportsElement()
|
||||
|
|
|
|||
|
|
@ -1640,9 +1640,13 @@ msgstr ""
|
|||
"sprechende Namen für Vorlagen verwendet werden. z.B. ist \"Standard Linux "
|
||||
"Server\" leichter verständlich als \"generic-host\""
|
||||
|
||||
#: application/forms/IcingaNotificationForm.php:22
|
||||
msgid "Icinga object name for this notification"
|
||||
msgstr "Icinga-Objektname für diese Benachrichtigung"
|
||||
#: application/forms/IcingaNotificationForm.php:23
|
||||
msgid "Name for the Icinga notification template you are going to create"
|
||||
msgstr "Name der Icinga-Benachrichtigungs-Vorlage, die erstellt werden soll"
|
||||
|
||||
#: application/forms/IcingaNotificationForm.php:29
|
||||
msgid "Name for the Icinga notification you are going to create"
|
||||
msgstr "Name der Icinga-Benachrichtigung, die erstellt werden soll"
|
||||
|
||||
#: application/forms/IcingaServiceGroupForm.php:17
|
||||
msgid "Icinga object name for this service group"
|
||||
|
|
@ -2233,7 +2237,11 @@ msgstr ""
|
|||
msgid "Nothing would change, this rule is still in sync"
|
||||
msgstr "Es würde sich nichts ändern, diese Regel ist noch synchron"
|
||||
|
||||
#: application/forms/IcingaNotificationForm.php:20
|
||||
#: application/forms/IcingaNotificationForm.php:21
|
||||
msgid "Notification template"
|
||||
msgstr "Benachrichtigungsvorlage"
|
||||
|
||||
#: application/forms/IcingaNotificationForm.php:27
|
||||
#: application/tables/IcingaNotificationTable.php:31
|
||||
msgid "Notification"
|
||||
msgstr "Benachrichtigung"
|
||||
|
|
|
|||
Loading…
Reference in a new issue