IcingaZoneForm: use helper methods, not object type

This commit is contained in:
Thomas Gelf 2015-08-03 13:14:09 +02:00
parent b6018c2d31
commit b78b066f27
1 changed files with 2 additions and 12 deletions

View File

@ -8,14 +8,7 @@ class IcingaZoneForm extends DirectorObjectForm
{
public function setup()
{
$this->addElement('select', 'object_type', array(
'label' => $this->translate('Object type'),
'description' => $this->translate('Whether this should be a template'),
'multiOptions' => $this->optionalEnum(array(
'object' => $this->translate('Zone object'),
'template' => $this->translate('Zone template'),
)),
));
$this->addHidden('object_type', 'object');
$this->addElement('text', 'object_name', array(
'label' => $this->translate('Zone (template) name'),
@ -39,9 +32,6 @@ class IcingaZoneForm extends DirectorObjectForm
'multiOptions' => $this->optionalEnum($this->db->enumZones())
));
$this->addElement('text', 'imports', array(
'label' => $this->translate('Imports'),
'description' => $this->translate('The inherited zone template names')
));
// $this->addImportsElement();
}
}