IcingaEndpointForm: use new helpers

This commit is contained in:
Thomas Gelf 2015-07-30 10:10:34 +02:00
parent 44a9755cce
commit 043a8e07e5
1 changed files with 2 additions and 10 deletions

View File

@ -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')
));
} }
} }