IcingaCommandForm: simplify code, remove zones

This commit is contained in:
Thomas Gelf 2015-08-02 13:27:35 +02:00
parent 483ba3fbbd
commit 7a5e3451a5
1 changed files with 1 additions and 19 deletions

View File

@ -36,24 +36,6 @@ class IcingaCommandForm extends DirectorObjectForm
'description' => $this->translate('Optional command timeout')
));
$this->addElement('select', 'zone_id', array(
'label' => $this->translate('Cluster Zone'),
'description' => $this->translate('Provide this command only to this specific Icinga cluster zone')
));
$this->addElement('select', 'object_type', array(
'label' => $this->translate('Object type'),
'required' => true,
'description' => $this->translate('Whether to create a command template or a command object'),
'multiOptions' => $this->optionalEnum(array(
'object' => $this->translate('Command object'),
'template' => $this->translate('Command template'),
))
));
$this->addElement('text', 'imports', array(
'label' => $this->translate('Imports'),
'description' => $this->translate('The inherited command template names')
));
$this->addImportsElement();
}
}