[icinga-checkins] icinga.org: icingaweb2-module-director/master: Object forms: allow to disable objects

git at icinga.org git at icinga.org
Wed Feb 17 20:10:43 CET 2016


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

Author: Thomas Gelf <thomas at gelf.net>
Date:   Wed Feb 17 20:10:22 2016 +0100

Object forms: allow to disable objects

---

 application/forms/IcingaCommandForm.php |    1 +
 application/forms/IcingaHostForm.php    |    2 ++
 application/forms/IcingaServiceForm.php |    1 +
 application/forms/IcingaUserForm.php    |    2 ++
 4 files changed, 6 insertions(+)

diff --git a/application/forms/IcingaCommandForm.php b/application/forms/IcingaCommandForm.php
index 8f1cc51..058f993 100644
--- a/application/forms/IcingaCommandForm.php
+++ b/application/forms/IcingaCommandForm.php
@@ -45,6 +45,7 @@ class IcingaCommandForm extends DirectorObjectForm
             'label' => $this->translate('Timeout'),
             'description' => $this->translate('Optional command timeout')
         ));
+        $this->addDisabledElement();
 
         $this->setButtons();
     }
diff --git a/application/forms/IcingaHostForm.php b/application/forms/IcingaHostForm.php
index 57d942e..8a1b686 100644
--- a/application/forms/IcingaHostForm.php
+++ b/application/forms/IcingaHostForm.php
@@ -56,6 +56,7 @@ class IcingaHostForm extends DirectorObjectForm
         }
 
         $this->addImportsElement();
+        $this->addDisabledElement();
 
         /*
         $this->addElement('text', 'groups', array(
@@ -74,6 +75,7 @@ class IcingaHostForm extends DirectorObjectForm
             'master_should_connect',
             'accept_config',
             'imports',
+            'disabled',
         );
         $this->addDisplayGroup($elements, 'object_definition', array(
             'decorators' => array(
diff --git a/application/forms/IcingaServiceForm.php b/application/forms/IcingaServiceForm.php
index 02173be..92ae729 100644
--- a/application/forms/IcingaServiceForm.php
+++ b/application/forms/IcingaServiceForm.php
@@ -27,6 +27,7 @@ class IcingaServiceForm extends DirectorObjectForm
         );
         $this->addZoneElement();
         $this->addImportsElement();
+        $this->addDisabledElement();
         $this->addCheckCommandElements();
 
 
diff --git a/application/forms/IcingaUserForm.php b/application/forms/IcingaUserForm.php
index 6621da8..38342d5 100644
--- a/application/forms/IcingaUserForm.php
+++ b/application/forms/IcingaUserForm.php
@@ -55,5 +55,7 @@ class IcingaUserForm extends DirectorObjectForm
         ));
 */
         $this->addImportsElement();
+        $this->addDisabledElement();
+        $this->setButtons();
     }
 }



More information about the icinga-checkins mailing list