PropertyModifierDnsRecords: re-order form fields

This commit is contained in:
Thomas Gelf 2016-10-11 16:02:50 +00:00
parent 785746fb26
commit 8faa572098
1 changed files with 7 additions and 8 deletions

View File

@ -20,6 +20,13 @@ class PropertyModifierDnsRecords extends PropertyModifierHook
public static function addSettingsFormFields(QuickForm $form) 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( $form->addElement('select', 'on_failure', array(
'label' => 'On failure', 'label' => 'On failure',
'description' => $form->translate('What should we do if the DNS lookup fails?'), 'description' => $form->translate('What should we do if the DNS lookup fails?'),
@ -30,14 +37,6 @@ class PropertyModifierDnsRecords extends PropertyModifierHook
)), )),
'required' => true, '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() protected static function enumTypes()