diff options
author | Chris Buechler <cmb@pfsense.org> | 2016-07-02 03:40:36 -0500 |
---|---|---|
committer | Chris Buechler <cmb@pfsense.org> | 2016-07-02 03:41:16 -0500 |
commit | 65292972a0c60ca7216edd94ffcf25aeeca84c69 (patch) | |
tree | 5ce45d63ab8b6a9fad4eafa815425333b4dbec13 | |
parent | ea57c74bc48070fc667c1a120ee5e54982196b9a (diff) | |
download | pfsense-65292972a0c60ca7216edd94ffcf25aeeca84c69.zip pfsense-65292972a0c60ca7216edd94ffcf25aeeca84c69.tar.gz |
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
-rwxr-xr-x | src/usr/local/www/diag_dns.php | 18 |
1 files changed, 9 insertions, 9 deletions
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) { |