summaryrefslogtreecommitdiffstats
path: root/usr/local/www/services_router_advertisements.php
diff options
context:
space:
mode:
authorDarren Embry <dse@webonastick.com>2012-06-08 17:14:22 -0400
committerDarren Embry <dse@webonastick.com>2012-06-08 18:05:55 -0400
commit4e0fc44f793956447ebdc0ff4e01a71900c84bd5 (patch)
treee642e744566fa121d0756394cee2fdf17651e809 /usr/local/www/services_router_advertisements.php
parent8921bf89d15d37549c65c5e5b8c713f6b7e41540 (diff)
downloadpfsense-4e0fc44f793956447ebdc0ff4e01a71900c84bd5.zip
pfsense-4e0fc44f793956447ebdc0ff4e01a71900c84bd5.tar.gz
more work on feature #2361
- fields are there now but don't do anything - checkbox for 'use same settings' that disables fields
Diffstat (limited to 'usr/local/www/services_router_advertisements.php')
-rw-r--r--usr/local/www/services_router_advertisements.php47
1 files changed, 47 insertions, 0 deletions
diff --git a/usr/local/www/services_router_advertisements.php b/usr/local/www/services_router_advertisements.php
index 0603540..42622dd 100644
--- a/usr/local/www/services_router_advertisements.php
+++ b/usr/local/www/services_router_advertisements.php
@@ -226,6 +226,36 @@ display_top_tabs($tab_array);
</td>
</tr>
<?php } ?>
+
+ <tr>
+ <td colspan="2" valign="top" class="listtopic">DNS</td>
+ </tr>
+
+ <tr>
+ <td width="22%" valign="top" class="vncell"><?=gettext("DNS servers");?></td>
+ <td width="78%" class="vtable">
+ <input name="radns1" type="text" class="formfld unknown" id="radns1" size="28" value="<?=htmlspecialchars($pconfig['radns1']);?>"><br>
+ <input name="radns2" type="text" class="formfld unknown" id="radns2" size="28" value="<?=htmlspecialchars($pconfig['radns2']);?>"><br>
+ <?=gettext("NOTE: leave blank to use the system default DNS servers - this interface's IP if DNS forwarder is enabled, otherwise the servers configured on the General page.");?>
+ </td>
+ </tr>
+
+ <tr>
+ <td width="22%" valign="top" class="vncell"><?=gettext("Domain search list");?></td>
+ <td width="78%" class="vtable">
+ <input name="radomainsearchlist" type="text" class="formfld unknown" id="radomainsearchlist" size="28" value="<?=htmlspecialchars($pconfig['radomainsearchlist']);?>"><br>
+ <?=gettext("The RA server can optionally provide a domain search list. Use the semicolon character as seperator");?>
+ </td>
+ </tr>
+
+ <tr>
+ <td width="22%" valign="top" class="vncell">&nbsp;</td>
+ <td width="78%" class="vtable">
+ <input id="rasamednsasdhcp6" name="rasamednsasdhcp6" type="checkbox" value="yes" <?php if ($pconfig['rasamednsasdhcp6']) { echo "checked='checked'"; } ?> />
+ <strong><?= gettext("Use same settings as DHCPv6 server"); ?></strong>
+ </td>
+ </tr>
+
<tr>
<td width="22%" valign="top">&nbsp;</td>
<td width="78%">
@@ -239,6 +269,23 @@ display_top_tabs($tab_array);
</tr>
</table>
</form>
+<script language="JavaScript">
+ jQuery(function ($) {
+ var $rasamednsasdhcp6 = $("#rasamednsasdhcp6");
+ var $triggered_checkboxes = $("#radns1, #radns2, #radomainsearchlist");
+ if ($rasamednsasdhcp6.length !== 1) { return; }
+ var onchange = function () {
+ var checked = $rasamednsasdhcp6.is(":checked");
+ if (checked) {
+ $triggered_checkboxes.each(function () { this.disabled = true; });
+ } else {
+ $triggered_checkboxes.each(function () { this.disabled = false; });
+ }
+ };
+ $rasamednsasdhcp6.bind("change", onchange);
+ onchange();
+ });
+</script>
<?php include("fend.inc"); ?>
</body>
</html>
OpenPOWER on IntegriCloud