summaryrefslogtreecommitdiffstats
path: root/usr/local/www/vpn_ipsec.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-08-23 22:18:27 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-08-23 22:18:27 +0000
commit0a95b653a67b738376365749700d5e755744ca80 (patch)
tree35e87d7f6811ce39e1833c95ad76d0ba8d375493 /usr/local/www/vpn_ipsec.php
parent5bba8dfbddb02f16b87534ba307e5c0719b165e4 (diff)
downloadpfsense-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.
Diffstat (limited to 'usr/local/www/vpn_ipsec.php')
-rwxr-xr-xusr/local/www/vpn_ipsec.php19
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>&nbsp;<p/>&nbsp;</td></tr>
+ <tr>
+ <td>
+ &nbsp;
+ </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>
OpenPOWER on IntegriCloud