mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-30 09:14:09 +02:00
DirectorJobForm: use enumJobTypes()
This commit is contained in:
parent
a0864e2240
commit
61ff51c52b
@ -9,10 +9,12 @@ class DirectorJobForm extends DirectorObjectForm
|
||||
{
|
||||
public function setup()
|
||||
{
|
||||
$jobTypes = $this->enumJobTypes();
|
||||
|
||||
$this->addElement('select', 'job_class', array(
|
||||
'label' => $this->translate('Job Type'),
|
||||
'required' => true,
|
||||
'multiOptions' => $this->optionalEnum($this->enumJobTypes()),
|
||||
'multiOptions' => $this->optionalEnum($jobTypes),
|
||||
'description' => $this->translate(
|
||||
'These are different available job types'
|
||||
),
|
||||
|
Loading…
x
Reference in New Issue
Block a user