DirectorObjectForm: new helper method for disabled

This commit is contained in:
Thomas Gelf 2016-02-17 20:00:18 +01:00
parent 35e0830658
commit 6d1b44f56e
1 changed files with 14 additions and 0 deletions

View File

@ -848,6 +848,20 @@ abstract class DirectorObjectForm extends QuickForm
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()
{
$this->addElement('select', 'check_command_id', array(