From 00f850303388cc3321dd9ecac7ae7f1f83dab35c Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Sun, 6 Mar 2016 09:47:16 +0100 Subject: [PATCH] IcingaHostForm: re-order elements --- application/forms/IcingaHostForm.php | 44 ++++++++++++++-------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/application/forms/IcingaHostForm.php b/application/forms/IcingaHostForm.php index 07026090..7751978d 100644 --- a/application/forms/IcingaHostForm.php +++ b/application/forms/IcingaHostForm.php @@ -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',