IcingaHostForm: re-order elements

This commit is contained in:
Thomas Gelf 2016-03-06 09:47:16 +01:00
parent e0d00c3ae0
commit 00f8503033
1 changed files with 22 additions and 22 deletions

View File

@ -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',