diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-11-25 03:44:02 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-11-25 03:44:02 +0000 |
commit | ccb383452fb6fe40b2c13d0763d2b8d56e054b2d (patch) | |
tree | d9ac4b0a91f7f6cfc4597efd63449517d3739b48 /usr/local/www/interfaces.php | |
parent | 667a3184b8aa4591ef18ea98ceb63c1fc27240c8 (diff) | |
download | pfsense-ccb383452fb6fe40b2c13d0763d2b8d56e054b2d.zip pfsense-ccb383452fb6fe40b2c13d0763d2b8d56e054b2d.tar.gz |
Spice up ajax add box look / feel
Diffstat (limited to 'usr/local/www/interfaces.php')
-rwxr-xr-x | usr/local/www/interfaces.php | 13 |
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> </td> + <tr> + <td colspan="2"><center><b>Add new gateway:</b></center></td> + </tr> + <tr><td> </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> </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> </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">'; |