mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-31 01:34:12 +02:00
IcingaZoneForm: use helper methods, not object type
This commit is contained in:
parent
b6018c2d31
commit
b78b066f27
@ -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')
|
|
||||||
));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user