IcingaCommandArgumentForm: cleanup, prefill enum

This commit is contained in:
Thomas Gelf 2015-07-30 10:03:31 +02:00
parent cdc9d002bc
commit 0fc948b3d3
1 changed files with 3 additions and 4 deletions

View File

@ -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?
}