From 65292972a0c60ca7216edd94ffcf25aeeca84c69 Mon Sep 17 00:00:00 2001 From: Chris Buechler Date: Sat, 2 Jul 2016 03:40:36 -0500 Subject: Change button order on diag_dns.php so hitting enter in the field does a lookup rather than update alias. semi-related to Ticket #6561 --- src/usr/local/www/diag_dns.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/usr/local/www/diag_dns.php') diff --git a/src/usr/local/www/diag_dns.php b/src/usr/local/www/diag_dns.php index 2fcdad2..dfbbd53 100755 --- a/src/usr/local/www/diag_dns.php +++ b/src/usr/local/www/diag_dns.php @@ -267,6 +267,15 @@ $section->addInput(new Form_Input( ['placeholder' => 'Hostname to look up.'] )); +$form->add($section); + +$form->addGlobal(new Form_Button( + 'Submit', + 'Lookup', + null, + 'fa-search' +))->addClass('btn-primary'); + if (!empty($resolved)) { if ($alias_exists) { $button_text = gettext("Update alias"); @@ -281,15 +290,6 @@ if (!empty($resolved)) { ))->removeClass('btn-primary')->addClass('btn-success'); } -$form->add($section); - -$form->addGlobal(new Form_Button( - 'Submit', - 'Lookup', - null, - 'fa-search' -))->addClass('btn-primary'); - print $form; if (!$input_errors && $type) { -- cgit v1.1