mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-29 00:34:05 +02:00
Object forms: allow to disable objects
This commit is contained in:
parent
e8aadbb30b
commit
aa3614a37f
@ -45,6 +45,7 @@ class IcingaCommandForm extends DirectorObjectForm
|
||||
'label' => $this->translate('Timeout'),
|
||||
'description' => $this->translate('Optional command timeout')
|
||||
));
|
||||
$this->addDisabledElement();
|
||||
|
||||
$this->setButtons();
|
||||
}
|
||||
|
@ -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(
|
||||
|
@ -27,6 +27,7 @@ class IcingaServiceForm extends DirectorObjectForm
|
||||
);
|
||||
$this->addZoneElement();
|
||||
$this->addImportsElement();
|
||||
$this->addDisabledElement();
|
||||
$this->addCheckCommandElements();
|
||||
|
||||
|
||||
|
@ -55,5 +55,7 @@ class IcingaUserForm extends DirectorObjectForm
|
||||
));
|
||||
*/
|
||||
$this->addImportsElement();
|
||||
$this->addDisabledElement();
|
||||
$this->setButtons();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user