From ee1fb205d3b704d2c5af5fc7bc0c93bdb67d0271 Mon Sep 17 00:00:00 2001 From: jim-p Date: Wed, 26 Dec 2012 10:09:59 -0500 Subject: Add description to additional DHCP pools. Implements #2733 --- usr/local/www/services_dhcp.php | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/usr/local/www/services_dhcp.php b/usr/local/www/services_dhcp.php index 522531e..4c5bbaa 100755 --- a/usr/local/www/services_dhcp.php +++ b/usr/local/www/services_dhcp.php @@ -163,6 +163,9 @@ if (is_array($dhcpdconf)) { if (!is_array($dhcpdconf['staticmap'])) $dhcpdconf['staticmap'] = array(); $a_maps = &$dhcpdconf['staticmap']; + } else { + // Options that exist only in pools + $pconfig['descr'] = $dhcpdconf['descr']; } // Options that can be global or per-pool. @@ -401,6 +404,9 @@ if ($_POST) { mwexec("/bin/rm -rf /var/dhcpd/var/db/*"); $dhcpdconf['failover_peerip'] = $_POST['failover_peerip']; $dhcpdconf['dhcpleaseinlocaltime'] = $_POST['dhcpleaseinlocaltime']; + } else { + // Options that exist only in pools + $dhcpdconf['descr'] = $_POST['descr']; } // Options that can be global or per-pool. @@ -547,6 +553,9 @@ include("head.inc"); enable_over = true; endis = !(document.iform.enable.checked || enable_over); + + document.iform.descr.disabled = endis; + document.iform.range_from.disabled = endis; document.iform.range_to.disabled = endis; document.iform.wins1.disabled = endis; @@ -690,6 +699,14 @@ include("head.inc");
+ + + + + + + + @@ -761,8 +778,9 @@ include("head.inc"); - - + + +
@@ -782,6 +800,9 @@ include("head.inc"); +
  +   + @@ -795,7 +816,7 @@ include("head.inc"); - +
-- cgit v1.1