IcingaHostForm: re-order elements
This commit is contained in:
parent
e0d00c3ae0
commit
00f8503033
|
@ -58,6 +58,28 @@ class IcingaHostForm extends DirectorObjectForm
|
|||
'description' => $this->translate('Usually your hosts main IPv6 address')
|
||||
));
|
||||
|
||||
$this->addDisabledElement();
|
||||
|
||||
$elements = array(
|
||||
'object_type',
|
||||
'object_name',
|
||||
'display_name',
|
||||
'address',
|
||||
'address6',
|
||||
'imports',
|
||||
'groups',
|
||||
'disabled',
|
||||
);
|
||||
$this->addDisplayGroup($elements, 'object_definition', array(
|
||||
'decorators' => array(
|
||||
'FormElements',
|
||||
array('HtmlTag', array('tag' => 'dl')),
|
||||
'Fieldset',
|
||||
),
|
||||
'order' => 20,
|
||||
'legend' => $this->translate('Host properties')
|
||||
));
|
||||
|
||||
$this->addZoneElement();
|
||||
|
||||
$this->addBoolean('has_agent', array(
|
||||
|
@ -83,28 +105,6 @@ class IcingaHostForm extends DirectorObjectForm
|
|||
));
|
||||
}
|
||||
|
||||
$this->addDisabledElement();
|
||||
|
||||
$elements = array(
|
||||
'object_type',
|
||||
'object_name',
|
||||
'display_name',
|
||||
'address',
|
||||
'address6',
|
||||
'imports',
|
||||
'groups',
|
||||
'disabled',
|
||||
);
|
||||
$this->addDisplayGroup($elements, 'object_definition', array(
|
||||
'decorators' => array(
|
||||
'FormElements',
|
||||
array('HtmlTag', array('tag' => 'dl')),
|
||||
'Fieldset',
|
||||
),
|
||||
'order' => 20,
|
||||
'legend' => $this->translate('Host properties')
|
||||
));
|
||||
|
||||
$elements = array(
|
||||
'zone_id',
|
||||
'has_agent',
|
||||
|
|
Loading…
Reference in New Issue