Object forms: allow to disable objects

This commit is contained in:
Thomas Gelf 2016-02-17 20:10:22 +01:00
parent e8aadbb30b
commit aa3614a37f
4 changed files with 6 additions and 0 deletions

View File

@ -45,6 +45,7 @@ class IcingaCommandForm extends DirectorObjectForm
'label' => $this->translate('Timeout'), 'label' => $this->translate('Timeout'),
'description' => $this->translate('Optional command timeout') 'description' => $this->translate('Optional command timeout')
)); ));
$this->addDisabledElement();
$this->setButtons(); $this->setButtons();
} }

View File

@ -56,6 +56,7 @@ class IcingaHostForm extends DirectorObjectForm
} }
$this->addImportsElement(); $this->addImportsElement();
$this->addDisabledElement();
/* /*
$this->addElement('text', 'groups', array( $this->addElement('text', 'groups', array(
@ -74,6 +75,7 @@ class IcingaHostForm extends DirectorObjectForm
'master_should_connect', 'master_should_connect',
'accept_config', 'accept_config',
'imports', 'imports',
'disabled',
); );
$this->addDisplayGroup($elements, 'object_definition', array( $this->addDisplayGroup($elements, 'object_definition', array(
'decorators' => array( 'decorators' => array(

View File

@ -27,6 +27,7 @@ class IcingaServiceForm extends DirectorObjectForm
); );
$this->addZoneElement(); $this->addZoneElement();
$this->addImportsElement(); $this->addImportsElement();
$this->addDisabledElement();
$this->addCheckCommandElements(); $this->addCheckCommandElements();

View File

@ -55,5 +55,7 @@ class IcingaUserForm extends DirectorObjectForm
)); ));
*/ */
$this->addImportsElement(); $this->addImportsElement();
$this->addDisabledElement();
$this->setButtons();
} }
} }