PropertyModifierDnsRecords: re-order form fields
This commit is contained in:
parent
785746fb26
commit
8faa572098
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue