mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-29 08:44:11 +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'),
|
'label' => $this->translate('Timeout'),
|
||||||
'description' => $this->translate('Optional command timeout')
|
'description' => $this->translate('Optional command timeout')
|
||||||
));
|
));
|
||||||
|
$this->addDisabledElement();
|
||||||
|
|
||||||
$this->setButtons();
|
$this->setButtons();
|
||||||
}
|
}
|
||||||
|
@ -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(
|
||||||
|
@ -27,6 +27,7 @@ class IcingaServiceForm extends DirectorObjectForm
|
|||||||
);
|
);
|
||||||
$this->addZoneElement();
|
$this->addZoneElement();
|
||||||
$this->addImportsElement();
|
$this->addImportsElement();
|
||||||
|
$this->addDisabledElement();
|
||||||
$this->addCheckCommandElements();
|
$this->addCheckCommandElements();
|
||||||
|
|
||||||
|
|
||||||
|
@ -55,5 +55,7 @@ class IcingaUserForm extends DirectorObjectForm
|
|||||||
));
|
));
|
||||||
*/
|
*/
|
||||||
$this->addImportsElement();
|
$this->addImportsElement();
|
||||||
|
$this->addDisabledElement();
|
||||||
|
$this->setButtons();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user