diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-08-23 22:18:27 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-08-23 22:18:27 +0000 |
commit | 0a95b653a67b738376365749700d5e755744ca80 (patch) | |
tree | 35e87d7f6811ce39e1833c95ad76d0ba8d375493 | |
parent | 5bba8dfbddb02f16b87534ba307e5c0719b165e4 (diff) | |
download | pfsense-0a95b653a67b738376365749700d5e755744ca80.zip pfsense-0a95b653a67b738376365749700d5e755744ca80.tar.gz |
Add a Phase2 button and hide the phase 2 settings by default. Clicking the
button will unhide the phase2 block similar to our "Advacned" buttons on
various screens.
-rwxr-xr-x | usr/local/www/vpn_ipsec.php | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/usr/local/www/vpn_ipsec.php b/usr/local/www/vpn_ipsec.php index 27816d7..bce53f5 100755 --- a/usr/local/www/vpn_ipsec.php +++ b/usr/local/www/vpn_ipsec.php @@ -281,7 +281,10 @@ include("head.inc"); </tr> <tr> <td class="list" colspan="5"> - <table class="tabcont" width="100%" height="100%" border="0" cellspacing="0" cellpadding="0"> + <div id="shph2but-<?=$i?>"> + <input type="button" onClick="show_phase2('tdph2-<?=$i?>','shph2but-<?=$i?>')" value="Phase2"></input> - Show Phase 2</a> + </div> + <table class="tabcont" width="100%" height="100%" border="0" cellspacing="0" cellpadding="0" id="tdph2-<?=$i?>" style="display:none"> <tr> <td class="listhdrr">Local Network</td> <td class="listhdrr">Remote Network</td> @@ -373,12 +376,15 @@ include("head.inc"); </table> </td> </tr> - <tr><td> <p/> </td></tr> + <tr> + <td> + + </td> + </tr> <?php $i++; } ?> - <tr> <td class="list" colspan="5"></td> <td class="list"> @@ -413,5 +419,12 @@ include("head.inc"); </table> </form> <?php include("fend.inc"); ?> +<script type="text/javascript"> +function show_phase2(id, buttonid) { + document.getElementById(buttonid).innerHTML=''; + aodiv = document.getElementById(id); + aodiv.style.display = "block"; +} +</script> </body> </html> |