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

View File

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