From 043a8e07e5d980f2a21bece1614b207d7fc1ed4c Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Thu, 30 Jul 2015 10:10:34 +0200 Subject: [PATCH] IcingaEndpointForm: use new helpers --- application/forms/IcingaEndpointForm.php | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/application/forms/IcingaEndpointForm.php b/application/forms/IcingaEndpointForm.php index f792eac3..b64fe937 100644 --- a/application/forms/IcingaEndpointForm.php +++ b/application/forms/IcingaEndpointForm.php @@ -48,15 +48,7 @@ class IcingaEndpointForm extends DirectorObjectForm 'description' => $this->translate('The log duration time.') )); - $this->addElement('select', 'zone_id', array( - 'label' => $this->translate('Cluster Zone'), - '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') - )); + $this->addZoneElement() + ->addImportsElement(); } }