[icinga-checkins] icinga.org: icingaweb2-module-director/master: SyncRuleForm: hardcode order, add new types

git at icinga.org git at icinga.org
Wed Oct 12 10:53:15 CEST 2016


Module: icingaweb2-module-director
Branch: master
Commit: acbce05c08026c158bde84babd5f9855e09b4943
URL:    https://git.icinga.org/?p=icingaweb2-module-director.git;a=commit;h=acbce05c08026c158bde84babd5f9855e09b4943

Author: Thomas Gelf <thomas at gelf.net>
Date:   Wed Oct 12 08:52:48 2016 +0000

SyncRuleForm: hardcode order, add new types

refs #11361

---

 application/forms/SyncRuleForm.php |   13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/application/forms/SyncRuleForm.php b/application/forms/SyncRuleForm.php
index 87ad210..2c478fa 100644
--- a/application/forms/SyncRuleForm.php
+++ b/application/forms/SyncRuleForm.php
@@ -9,18 +9,19 @@ class SyncRuleForm extends DirectorObjectForm
     public function setup()
     {
         $availableTypes = array(
-            'command'          => $this->translate('Command'),
-            'endpoint'         => $this->translate('Endpoint'),
             'host'             => $this->translate('Host'),
+            'hostgroup'        => $this->translate('Host group'),
             'service'          => $this->translate('Service'),
+            'servicegroup'     => $this->translate('Service group'),
+            'serviceSet'       => $this->translate('Service Set'),
             'user'             => $this->translate('User'),
-            'hostgroup'        => $this->translate('Hostgroup'),
-            'servicegroup'     => $this->translate('Servicegroup'),
-            'usergroup'        => $this->translate('Usergroup'),
+            'usergroup'        => $this->translate('User group'),
             'datalistEntry'    => $this->translate('Datalist entry'),
+            'command'          => $this->translate('Command'),
+            'timePeriod'       => $this->translate('Time period'),
+            'endpoint'         => $this->translate('Endpoint'),
             'zone'             => $this->translate('Zone'),
         );
-        asort($availableTypes);
 
         $this->addElement('text', 'rule_name', array(
             'label'       => $this->translate('Rule name'),



More information about the icinga-checkins mailing list