SyncRuleForm: allow for more object types

This commit is contained in:
Thomas Gelf 2015-08-04 19:27:30 +02:00
parent e9d9a435b9
commit 1761665d2e
1 changed files with 12 additions and 5 deletions

View File

@ -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(