From 2f723ccde75d156c95a1772e7a8b03371dd5b0c7 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Tue, 22 Mar 2016 21:22:09 +0100 Subject: [PATCH] IcingaCommandForm: plugin/internal distinction --- application/forms/IcingaCommandForm.php | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/application/forms/IcingaCommandForm.php b/application/forms/IcingaCommandForm.php index a1049d90..9848487d 100644 --- a/application/forms/IcingaCommandForm.php +++ b/application/forms/IcingaCommandForm.php @@ -17,14 +17,19 @@ class IcingaCommandForm extends DirectorObjectForm 'label' => $this->translate('Command type'), 'multiOptions' => array( null => '- please choose -', - 'PluginCheck' => 'Plugin Check Command', - 'PluginNotification' => 'Notification Plugin Command', - 'PluginEvent' => 'Event Plugin Command', - 'IcingaCheck' => 'Icinga Check Command', - 'ClusterCheck' => 'Icinga Cluster Command', - 'RandomCheck' => 'Random Check Command', - 'ClusterZoneCheck' => 'Icinga Cluster Zone Check Command', - 'CrlCheck' => 'Crl Check Command', + $this->translate('Plugin commands') => array( + 'PluginCheck' => 'Plugin Check Command', + 'PluginNotification' => 'Notification Plugin Command', + 'PluginEvent' => 'Event Plugin Command', + ), + $this->translate('Internal commands') => array( + 'IcingaCheck' => 'Icinga Check Command', + 'ClusterCheck' => 'Icinga Cluster Check Command', + 'ClusterZoneCheck' => 'Icinga Cluster Zone Check Command', + 'IdoCheck' => 'Ido Check Command', + 'RandomCheck' => 'Random Check Command', + 'CrlCheck' => 'Crl Check Command', + ) ), 'required' => ! $this->isTemplate(), 'description' => $this->translate(