diff options
author | Ermal Luçi <eri@pfsense.org> | 2010-01-18 20:55:13 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2010-01-18 20:55:13 +0000 |
commit | a25327390213285c15c50c88d94c9d8abdb7ccd6 (patch) | |
tree | 8fb701ffb7d2ac8fce909d75788f6bdf73df6f72 /usr/local | |
parent | 38936dc72ab47d70c679d088e09ee0096206c070 (diff) | |
download | pfsense-a25327390213285c15c50c88d94c9d8abdb7ccd6.zip pfsense-a25327390213285c15c50c88d94c9d8abdb7ccd6.tar.gz |
Ticket #305. Grey out the gateway when it is a dynamic one.
Diffstat (limited to 'usr/local')
-rwxr-xr-x | usr/local/www/system_gateways_edit.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr/local/www/system_gateways_edit.php b/usr/local/www/system_gateways_edit.php index 9b26c9c..9b0b244 100755 --- a/usr/local/www/system_gateways_edit.php +++ b/usr/local/www/system_gateways_edit.php @@ -67,6 +67,8 @@ if (isset($id) && $a_gateways[$id]) { $pconfig['interface'] = $a_gateways[$id]['interface']; $pconfig['gateway'] = $a_gateways[$id]['gateway']; $pconfig['defaultgw'] = $a_gateways[$id]['defaultgw']; + if (isset($a_gateways[$id]['dynamic'])) + $pconfig['dynamic'] = true; if($a_gateway_item[$id]['monitor'] <> "") { $pconfig['monitor'] = $a_gateway_item[$id]['monitor']; } else { @@ -258,7 +260,7 @@ include("head.inc"); $gateway = htmlspecialchars($pconfig['gateway']); } ?> - <input name="gateway" type="text" class="formfld host" id="gateway" size="40" value="<?php echo $gateway; ?>"> + <input name="gateway" type="text" class="formfld host" id="gateway" size="40" value="<?php echo $gateway; ?>" <?php if ($pconfig['dynamic'] == true) echo "disabled"; ?>> <br> <span class="vexpl">Gateway IP address</span></td> </tr> <tr> |