Project

General

Profile

« Previous | Next » 

Revision 63c704c3

Added by N0YB almost 12 years ago

Add show/hide to the new "Reject Leases From" row

Show for Basic and Advanced. Hide for Config File Override.

View differences:

usr/local/www/interfaces.php
4 4
	interfaces.php
5 5
	Copyright (C) 2004-2008 Scott Ullrich
6 6
	Copyright (C) 2006 Daniel S. Haischt.
7
	Copyright (C) 2008-2010 Ermal Lu?i
7
	Copyright (C) 2008-2010 Ermal Luรงi
8 8
	All rights reserved.
9 9

  
10 10
	originally part of m0n0wall (http://m0n0.ch/wall)
......
1926 1926
											"DHCP client."); ?>
1927 1927
										</td>
1928 1928
									</tr>
1929
									<tr>
1929
									<tr style='display:none' name="show_basic_dhcprejectlease" id="show_basic_dhcprejectlease">
1930 1930
										<td width="22%" valign="top" class="vncell"><?=gettext("Reject Leases From"); ?></td>
1931 1931
										<td width="78%" class="vtable">
1932 1932
											<input name="dhcprejectfrom" type="text" class="formfld unknown" id="dhcprejectfrom" size="20" value="<?=htmlspecialchars($pconfig['dhcprejectfrom']);?>" />
......
1935 1935
											<?=gettext("this is useful for rejecting leases from cable modems that offer private IPs when they lose upstream sync."); ?>
1936 1936
										</td>
1937 1937
									</tr>
1938
									<tr>
1939
										<td colspan="2" valign="top" height="16"></td>
1940 1938

  
1941 1939
									<tr style='display:none' name="show_adv_dhcp_protocol_timing" id="show_adv_dhcp_protocol_timing">
1942 1940
										<td width="22%" valign="top" class="vncell"><?=gettext("<a target=FreeBSD DHCP href=http://www.freebsd.org/cgi/man.cgi?query=dhclient.conf&sektion=5#PROTOCOL_TIMING>Protocol Timing</a>"); ?></td>
......
2063 2061

  
2064 2062
											document.getElementById("show_basic_dhcphostname").style.display = basic;
2065 2063
											document.getElementById("show_basic_dhcpalias-address").style.display = basic;
2064
											document.getElementById("show_basic_dhcprejectlease").style.display = basic;
2066 2065

  
2067 2066
											document.getElementById("show_adv_dhcp_protocol_timing").style.display = advanced;
2068 2067
											document.getElementById("show_adv_dhcp_lease_requirements_and_requests").style.display = advanced;

Also available in: Unified diff