diff options
author | stilez <stilez@users.noreply.github.com> | 2017-03-16 11:48:35 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-16 11:48:35 +0000 |
commit | c747124035f3d4cf18e3f0bb56c2a6dbddd356ad (patch) | |
tree | b4a89059051c352765d1590905736ddbf0821734 /src/usr | |
parent | 6485ffb9ccd592a8db8497ecef0bbe291ae08dc6 (diff) | |
download | pfsense-c747124035f3d4cf18e3f0bb56c2a6dbddd356ad.zip pfsense-c747124035f3d4cf18e3f0bb56c2a6dbddd356ad.tar.gz |
replace setHelp() on section with staticText() and textual change requested
Diffstat (limited to 'src/usr')
-rw-r--r-- | src/usr/local/www/services_unbound_host_edit.php | 23 |
1 files changed, 17 insertions, 6 deletions
diff --git a/src/usr/local/www/services_unbound_host_edit.php b/src/usr/local/www/services_unbound_host_edit.php index 8707ee4..ebb02a1 100644 --- a/src/usr/local/www/services_unbound_host_edit.php +++ b/src/usr/local/www/services_unbound_host_edit.php @@ -225,11 +225,17 @@ if (isset($id) && $a_hosts[$id]) { )); } -$section->setHelp("This page is used to override the usual lookup process for a specific host. A host is defined by its name" . - "and parent domain (e.g., 'somesite.google.com' is entered as host='somesite' and parent domain='google.com'). Any " . - "attempt to lookup that host will automatically return the given IP, and any usual external lookup server for the domain " . - "will not be queried. Both the name and parent domain can contain 'non-standard', 'invalid' and 'local' domains " . - "such as 'test', 'mycompany.localdomain', or '1.168.192.in-addr.arpa', as well as usual publicly resolvable names such as 'www' or 'google.co.uk'."); +$section->addInput(new Form_StaticText( + '', + '<span class="help-block">' . + gettext("This page is used to override the usual lookup process for a specific host. A host is defined by its name" . + "and parent domain (e.g., 'somesite.google.com' is entered as host='somesite' and parent domain='google.com'). Any " . + "attempt to lookup that host will automatically return the given IP address, and any usual external lookup server for " . + "the domain will not be queried. Both the name and parent domain can contain 'non-standard', 'invalid' and 'local' " . + "domains such as 'test', 'mycompany.localdomain', or '1.168.192.in-addr.arpa', as well as usual publicly resolvable names ". + "such as 'www' or 'google.co.uk'.") . + '</span>' +)); $form->add($section); @@ -287,7 +293,12 @@ $form->addGlobal(new Form_Button( 'fa-plus' ))->removeClass('btn-primary')->addClass('btn-success addbtn'); -$section->setHelp("If the host can be accessed using multiple names, then enter any other names for the host which should also be overridden."); +$section->addInput(new Form_StaticText( + '', + '<span class="help-block">'. + gettext("If the host can be accessed using multiple names, then enter any other names for the host which should also be overridden.") . + '</span>' +)); $form->add($section); print($form); |