mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-09-26 11:19:16 +02:00
DirectorObjectForm: group exection options, style
This commit is contained in:
parent
dc41842118
commit
0a5addabd1
@ -596,7 +596,7 @@ abstract class DirectorObjectForm extends QuickForm
|
||||
'label' => $this->translate('Imports'),
|
||||
'description' => $this->translate('Importable templates, choose one or more of them (CTRL/SHIFT click)'),
|
||||
'multiOptions' => $this->enumAllowedTemplates(),
|
||||
'size' => 10,
|
||||
'size' => 8,
|
||||
'class' => 'autosubmit'
|
||||
));
|
||||
|
||||
@ -605,8 +605,6 @@ abstract class DirectorObjectForm extends QuickForm
|
||||
|
||||
protected function addCheckExecutionElements()
|
||||
{
|
||||
$this->addHtml('<h3>Check execution</h3>');
|
||||
|
||||
$this->addElement('select', 'check_command_id', array(
|
||||
'label' => $this->translate('Check command'),
|
||||
'description' => $this->translate('Check command definition'),
|
||||
@ -649,6 +647,26 @@ abstract class DirectorObjectForm extends QuickForm
|
||||
$this->translate('Whether this check is volatile.')
|
||||
);
|
||||
|
||||
$elements = array(
|
||||
'check_command_id',
|
||||
'enable_active_checks',
|
||||
'enable_passive_checks',
|
||||
'enable_notifications',
|
||||
'enable_event_handler',
|
||||
'enable_perfdata',
|
||||
'volatile'
|
||||
);
|
||||
|
||||
$this->addDisplayGroup($elements, 'check_execution', array(
|
||||
'decorators' => array(
|
||||
'FormElements',
|
||||
'DtDdWrapper',
|
||||
'Fieldset',
|
||||
),
|
||||
'order' => 60,
|
||||
'legend' => $this->translate('Check execution')
|
||||
));
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user