mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-31 01:34:12 +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()
|
public function setup()
|
||||||
{
|
{
|
||||||
|
$jobTypes = $this->enumJobTypes();
|
||||||
|
|
||||||
$this->addElement('select', 'job_class', array(
|
$this->addElement('select', 'job_class', array(
|
||||||
'label' => $this->translate('Job Type'),
|
'label' => $this->translate('Job Type'),
|
||||||
'required' => true,
|
'required' => true,
|
||||||
'multiOptions' => $this->optionalEnum($this->enumJobTypes()),
|
'multiOptions' => $this->optionalEnum($jobTypes),
|
||||||
'description' => $this->translate(
|
'description' => $this->translate(
|
||||||
'These are different available job types'
|
'These are different available job types'
|
||||||
),
|
),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user