IcingaEndpointForm: use new helpers
This commit is contained in:
parent
44a9755cce
commit
043a8e07e5
|
@ -48,15 +48,7 @@ class IcingaEndpointForm extends DirectorObjectForm
|
||||||
'description' => $this->translate('The log duration time.')
|
'description' => $this->translate('The log duration time.')
|
||||||
));
|
));
|
||||||
|
|
||||||
$this->addElement('select', 'zone_id', array(
|
$this->addZoneElement()
|
||||||
'label' => $this->translate('Cluster Zone'),
|
->addImportsElement();
|
||||||
'description' => $this->translate('Check this host in this specific Icinga cluster zone'),
|
|
||||||
'required' => true
|
|
||||||
));
|
|
||||||
|
|
||||||
$this->addElement('text', 'imports', array(
|
|
||||||
'label' => $this->translate('Imports'),
|
|
||||||
'description' => $this->translate('The inherited endpoint template names')
|
|
||||||
));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue