From 1761665d2e3259472704ae520436c1e64a4a13b8 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Tue, 4 Aug 2015 19:27:30 +0200 Subject: [PATCH] SyncRuleForm: allow for more object types --- application/forms/SyncRuleForm.php | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/application/forms/SyncRuleForm.php b/application/forms/SyncRuleForm.php index ab768497..45b1889e 100644 --- a/application/forms/SyncRuleForm.php +++ b/application/forms/SyncRuleForm.php @@ -19,11 +19,18 @@ class SyncRuleForm extends DirectorObjectForm 'label' => $this->translate('Object Type'), 'description' => $this->translate('Choose a object type'), 'required' => true, - 'multiOptions' => array( - 'null' => '- please choose -', - 'host' => 'host', - 'user' => 'user' - ) + 'multiOptions' => $this->optionalEnum(array( + 'host' => $this->translate('Host'), + 'host_template' => $this->translate('Host Template'), + 'service' => $this->translate('Service'), + 'service_template' => $this->translate('Service Template'), + 'user' => $this->translate('User'), + 'user_template' => $this->translate('User Template'), + 'hostgroup' => $this->translate('Hostgroup'), + 'servicegroup' => $this->translate('Servicegroup'), + 'usergroup' => $this->translate('Usergroup'), + 'datalistEntry' => $this->translate('Datalist entry'), + )) )); $this->addElement('select', 'update_policy', array(