mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-31 01:34:12 +02:00
DirectorObjectForm: new helper method for disabled
This commit is contained in:
parent
35e0830658
commit
6d1b44f56e
@ -848,6 +848,20 @@ abstract class DirectorObjectForm extends QuickForm
|
|||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected function addDisabledElement()
|
||||||
|
{
|
||||||
|
$this->addBoolean(
|
||||||
|
'disabled',
|
||||||
|
array(
|
||||||
|
'label' => $this->translate('Disabled'),
|
||||||
|
'description' => $this->translate('Disabled objects will not be deployes')
|
||||||
|
),
|
||||||
|
'n'
|
||||||
|
);
|
||||||
|
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
protected function addCheckCommandElements()
|
protected function addCheckCommandElements()
|
||||||
{
|
{
|
||||||
$this->addElement('select', 'check_command_id', array(
|
$this->addElement('select', 'check_command_id', array(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user