IcingaCommandArgumentForm: cleanup, prefill enum
This commit is contained in:
parent
cdc9d002bc
commit
0fc948b3d3
|
@ -8,10 +8,10 @@ class IcingaCommandArgumentForm extends DirectorObjectForm
|
|||
{
|
||||
public function setup()
|
||||
{
|
||||
|
||||
$this->addElement('select', 'command_id', array(
|
||||
'label' => $this->translate('Check command'),
|
||||
'description' => $this->translate('Check command definition')
|
||||
'description' => $this->translate('Check command definition'),
|
||||
'multiOptions' => $this->optionalEnum($this->db->enumCommands())
|
||||
));
|
||||
|
||||
$this->addElement('text', 'argument_name', array(
|
||||
|
@ -26,7 +26,6 @@ class IcingaCommandArgumentForm extends DirectorObjectForm
|
|||
));
|
||||
|
||||
$this->addHidden('value_format', 'string'); // expression, json?
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue