mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-08-19 00:38:27 +02:00
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')
|
||||
'label' => $this->translate('Check command'),
|
||||
'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…
x
Reference in New Issue
Block a user