summaryrefslogtreecommitdiffstats
path: root/usr/local/www/interfaces.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-11-25 03:44:02 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-11-25 03:44:02 +0000
commitccb383452fb6fe40b2c13d0763d2b8d56e054b2d (patch)
treed9ac4b0a91f7f6cfc4597efd63449517d3739b48 /usr/local/www/interfaces.php
parent667a3184b8aa4591ef18ea98ceb63c1fc27240c8 (diff)
downloadpfsense-ccb383452fb6fe40b2c13d0763d2b8d56e054b2d.zip
pfsense-ccb383452fb6fe40b2c13d0763d2b8d56e054b2d.tar.gz
Spice up ajax add box look / feel
Diffstat (limited to 'usr/local/www/interfaces.php')
-rwxr-xr-xusr/local/www/interfaces.php13
1 files changed, 12 insertions, 1 deletions
diff --git a/usr/local/www/interfaces.php b/usr/local/www/interfaces.php
index d733de4..4c3530e 100755
--- a/usr/local/www/interfaces.php
+++ b/usr/local/www/interfaces.php
@@ -854,10 +854,17 @@ $types = array("none" => "None", "static" => "Static", "dhcp" => "DHCP", "pppoe"
?>
</select>
<br/>
- Select a existing Gateway from the list or <input onClick="show_add_gateway();" type="button" value="add one">.
+ <div id='addgwbox'>
+ Select a existing Gateway from the list or <input onClick="show_add_gateway();" type="button" value="add one">
+ </div>
<div style="display:none" id="addgateway" name="addgateway">
<p>
<table>
+ <tr><td>&nbsp;</td>
+ <tr>
+ <td colspan="2"><center><b>Add new gateway:</b></center></td>
+ </tr>
+ <tr><td>&nbsp;</td>
<tr>
<td align="right">Name:</td><td><input id="name" name="name"></td>
</tr>
@@ -867,6 +874,7 @@ $types = array("none" => "None", "static" => "Static", "dhcp" => "DHCP", "pppoe"
<tr>
<td align="right">Description:</td><td><input id="gatewaydescr" name="gatewaydescr"></td>
</tr>
+ <tr><td>&nbsp;</td>
<tr>
<td colspan="2" align="right">
<div id='savebuttondiv'>
@@ -875,6 +883,7 @@ $types = array("none" => "None", "static" => "Static", "dhcp" => "DHCP", "pppoe"
</div>
</td>
</tr>
+ <tr><td>&nbsp;</td>
</table>
<div id="status">
</div>
@@ -1386,9 +1395,11 @@ $types = array("none" => "None", "static" => "Static", "dhcp" => "DHCP", "pppoe"
var gatewayip;
function show_add_gateway() {
document.getElementById("addgateway").style.display = '';
+ document.getElementById("addgwbox").style.display = 'none';
}
function hide_add_gateway() {
document.getElementById("addgateway").style.display = 'none';
+ document.getElementById("addgwbox").style.display = '';
}
function hide_add_gatewaysave() {
$('status').innerHTML = '<img src="/themes/metallic/images/misc/loader.gif">';
OpenPOWER on IntegriCloud