summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorsullrich <sullrich@pfsense.org>2009-12-03 16:50:21 -0500
committersullrich <sullrich@pfsense.org>2009-12-03 16:50:21 -0500
commit4c263f57c29828babb1c0dbd920023a9274e2842 (patch)
tree3f86f64d6092a25e7c45abd757481e7eaf662784 /usr
parentad7446d144d10533b2238b7a2fb886c95c738d82 (diff)
downloadpfsense-4c263f57c29828babb1c0dbd920023a9274e2842.zip
pfsense-4c263f57c29828babb1c0dbd920023a9274e2842.tar.gz
Hide layer7 and in/out behind advanced button
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/firewall_rules_edit.php13
-rw-r--r--usr/local/www/javascript/firewall_rules_edit/firewall_rules_edit.js13
2 files changed, 24 insertions, 2 deletions
diff --git a/usr/local/www/firewall_rules_edit.php b/usr/local/www/firewall_rules_edit.php
index 3028797..97b071e 100755
--- a/usr/local/www/firewall_rules_edit.php
+++ b/usr/local/www/firewall_rules_edit.php
@@ -1080,7 +1080,11 @@ include("head.inc");
<tr>
<td width="22%" valign="top" class="vncell">In/Out</td>
<td width="78%" class="vtable">
- <select name="dnpipe">
+ <div id="showadvinoutbox">
+ <input type="button" onClick="show_advanced_inout()" value="Advanced"></input> - Show state</a>
+ </div>
+ <div id="showinoutadv" style="display:none">
+ <select name="dnpipe">
<?php
if (!is_array($dnqlist))
$dnqlist = array();
@@ -1116,9 +1120,10 @@ include("head.inc");
echo ">{$dnq}</option>";
}
?>
- </select>
+ </select>
<br />
<span class="vexpl">Choose the Out queue/Virtual interface only if you have selected In too. <br/> The Out selection is applied to traffic going out the interface the rule is created, In is the incoming one. <br/> If you are creating a rule on the Floating tab if the direction is In then the same rules apply, if the direction is out the selections are reverted Out is for incoming and In is for outgoing and if you do not select any direction use only the In since the Out selection does not make sense in there to prevent oddities.</span>
+ </div>
</td>
</tr>
@@ -1173,6 +1178,10 @@ include("head.inc");
<tr>
<td width="22%" valign="top" class="vncell">Layer7</td>
<td width="78%" class="vtable">
+ <div id="showadvlayer7box">
+ <input type="button" onClick="show_advanced_layer7()" value="Advanced"></input> - Show state</a>
+ </div>
+ <div id="showlayer7adv" style="display:none">
<select name="l7container">
<?php
if (!is_array($l7clist))
diff --git a/usr/local/www/javascript/firewall_rules_edit/firewall_rules_edit.js b/usr/local/www/javascript/firewall_rules_edit/firewall_rules_edit.js
index 731e28d..d8562c4 100644
--- a/usr/local/www/javascript/firewall_rules_edit/firewall_rules_edit.js
+++ b/usr/local/www/javascript/firewall_rules_edit/firewall_rules_edit.js
@@ -155,12 +155,25 @@ function show_advanced_ackqueue() {
aodiv.style.display = "block";
}
+function show_advanced_inout() {
+ document.getElementById("showadvinoutbox").innerHTML='';
+ aodiv = document.getElementById('showinoutadv');
+ aodiv.style.display = "block";
+}
+
function show_advanced_state() {
document.getElementById("showadvstatebox").innerHTML='';
aodiv = document.getElementById('showstateadv');
aodiv.style.display = "block";
}
+function show_advanced_layer7() {
+ document.getElementById("showadvlayer7box").innerHTML='';
+ aodiv = document.getElementById('showlayer7adv');
+ aodiv.style.display = "block";
+}
+
+
function src_rep_change() {
document.iform.srcendport.selectedIndex = document.iform.srcbeginport.selectedIndex;
}
OpenPOWER on IntegriCloud