[icinga-checkins] icinga.org: icingaweb2-module-director/master: PropertyModifierDnsRecords: re-order form fields

git at icinga.org git at icinga.org
Wed Oct 12 09:04:01 CEST 2016


Module: icingaweb2-module-director
Branch: master
Commit: 8faa5720984e4f8ee56a77dab9ff876938f806e5
URL:    https://git.icinga.org/?p=icingaweb2-module-director.git;a=commit;h=8faa5720984e4f8ee56a77dab9ff876938f806e5

Author: Thomas Gelf <thomas at gelf.net>
Date:   Tue Oct 11 16:02:50 2016 +0000

PropertyModifierDnsRecords: re-order form fields

---

 .../PropertyModifier/PropertyModifierDnsRecords.php     |   15 +++++++--------
 1 file changed, 7 insertions(+), 8 deletions(-)

diff --git a/library/Director/PropertyModifier/PropertyModifierDnsRecords.php b/library/Director/PropertyModifier/PropertyModifierDnsRecords.php
index d8e221b..7e67180 100644
--- a/library/Director/PropertyModifier/PropertyModifierDnsRecords.php
+++ b/library/Director/PropertyModifier/PropertyModifierDnsRecords.php
@@ -20,6 +20,13 @@ class PropertyModifierDnsRecords extends PropertyModifierHook
 
     public static function addSettingsFormFields(QuickForm $form)
     {
+        $form->addElement('select', 'record_type', array(
+            'label'        => 'Record type',
+            'description'  => $form->translate('DNS record type'),
+            'multiOptions' => $form->optionalEnum(static::enumTypes()),
+            'required'    => true,
+        ));
+
         $form->addElement('select', 'on_failure', array(
             'label'        => 'On failure',
             'description'  => $form->translate('What should we do if the DNS lookup fails?'),
@@ -30,14 +37,6 @@ class PropertyModifierDnsRecords extends PropertyModifierHook
             )),
             'required'    => true,
         ));
-
-        $form->addElement('select', 'record_type', array(
-            'label'        => 'Record type',
-            'description'  => $form->translate('DNS record type'),
-            'multiOptions' => $form->optionalEnum(static::enumTypes()),
-            'required'    => true,
-        ));
-
     }
 
     protected static function enumTypes()



More information about the icinga-checkins mailing list