summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2008-07-16 22:31:26 +0000
committerErmal Luçi <eri@pfsense.org>2008-07-16 22:31:26 +0000
commit77dc689425073f2898d31fe9cb50f0e949af1afa (patch)
treeae5b0a64591cf9bd1354eba291facf5a159be1f1
parent1fa12d94c2d1bac6a3044d13d68e2243fb2d32b7 (diff)
downloadpfsense-77dc689425073f2898d31fe9cb50f0e949af1afa.zip
pfsense-77dc689425073f2898d31fe9cb50f0e949af1afa.tar.gz
Hide some options under an show button.
-rw-r--r--etc/inc/shaper.inc16
1 files changed, 13 insertions, 3 deletions
diff --git a/etc/inc/shaper.inc b/etc/inc/shaper.inc
index e51c87c..e79f1c5 100644
--- a/etc/inc/shaper.inc
+++ b/etc/inc/shaper.inc
@@ -2712,13 +2712,23 @@ class dnpipe_class extends dummynet_class {
$form .= ">Bit/s</option>";
$form .= "</select>";
$form .= "</td></tr>";
- $form .= "<tr><td valign=\"top\" class=\"vncellreq\">Delay</td>";
+ $form .= "<tr><td valign=\"top\" class=\"vncellreq\">Advanced</td>";
+ $form .= "<td><div id=\"showadvancedboxspr\">";
+ $form .= "<p><input type=\"button\" onClick=\"show_source_port_range()\"";
+ $form .= " value=\"Show\"></input> - Show source port range</a>";
+ $form .= "</div></td></tr>";
+ $form .= "<tr style=\"display:none\" id=\"sprtable\" name=\"sprtable\">";
+
+ $form .= "<td valign=\"top\" class=\"vncellreq\">";
+ $form .= "<td valign=\"top\" class=\"vncellreq\">";
+ $form .= "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">";
+ $form .= "<tr><td valign=\"top\" class=\"vncellreq\">Delay</td>";
$form .= "<td valign=\"top\" class=\"vncellreq\">";
$form .= "<input name=\"delay\" type=\"text\" id=\"delay\" size=\"5\" value=\"";
$form .= $this->GetDelay() . "\">";
$form .= "&nbsp;ms<br> <span class=\"vexpl\">Hint: in most cases, you";
$form .= "should specify 0 here (or leave the field empty)</span>";
- $form .= "</td></tr>";
+ $form .= "</td></tr><br/>";
$form .= "<tr><td valign=\"top\" class=\"vncellreq\">Packet loss rate</td>";
$form .= "<td valign=\"top\" class=\"vncellreq\">";
$form .= "<input name=\"plr\" type=\"text\" id=\"plr\" size=\"5\" value=\"";
@@ -2736,7 +2746,7 @@ class dnpipe_class extends dummynet_class {
$form .= "should leave the field empty. All packets in this pipe are placed into a fixed-size queue first,";
$form .= "then they are delayed by value specified in the Delay field, and then they ";
$form .= "are delivered to their destination.</span>";
- $form .= "</td></tr>";
+ $form .= "</td></tr></table></td></tr>";
$form .= "<tr><td valign=\"top\" class=\"vncellreq\">Mask</td>";
$form .= "<td class=\"vncellreq\">";
$form .= "<select name=\"mask\" class=\"formselect\">";
OpenPOWER on IntegriCloud