summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorStephen Beaver <sbeaver@netgate.com>2016-07-18 11:43:12 -0400
committerStephen Beaver <sbeaver@netgate.com>2016-07-18 11:43:12 -0400
commit9ce54773be5e02235e3be7d2b970f61fbb27ba86 (patch)
tree36e6bf8920c79f3e324feab31421d7c67e9ff89d /src
parent7bba13e8d53adfe4beb03c8444e60848ae6e25e9 (diff)
downloadpfsense-9ce54773be5e02235e3be7d2b970f61fbb27ba86.zip
pfsense-9ce54773be5e02235e3be7d2b970f61fbb27ba86.tar.gz
Allow section header to be omitted by specifying "NOTITLE" as the section title.
Diffstat (limited to 'src')
-rw-r--r--src/etc/inc/shaper.inc2
-rw-r--r--src/usr/local/www/classes/Form/Section.class.php14
2 files changed, 13 insertions, 3 deletions
diff --git a/src/etc/inc/shaper.inc b/src/etc/inc/shaper.inc
index d4caa8f..6cba885 100644
--- a/src/etc/inc/shaper.inc
+++ b/src/etc/inc/shaper.inc
@@ -2771,7 +2771,7 @@ class cbq_queue extends priq_queue {
function build_form() {
$sform = parent::build_form();
- $section = new Form_Section('');
+ $section = new Form_Section('NOTITLE');
$group = new Form_Group('Bandwidth');
diff --git a/src/usr/local/www/classes/Form/Section.class.php b/src/usr/local/www/classes/Form/Section.class.php
index d70ee73..51ab06a 100644
--- a/src/usr/local/www/classes/Form/Section.class.php
+++ b/src/usr/local/www/classes/Form/Section.class.php
@@ -109,7 +109,16 @@ class Form_Section extends Form_Element
}
}
- return <<<EOT
+ if ($title == "NOTITLE") {
+ return <<<EOT
+ {$element}
+ {$bodyclass}
+ {$body}
+ </div>
+ </div>
+EOT;
+ } else {
+ return <<<EOT2
{$element}
<div class="panel-heading">
<h2 class="panel-title">{$title}{$hdricon}</h2>
@@ -118,6 +127,7 @@ class Form_Section extends Form_Element
{$body}
</div>
</div>
-EOT;
+EOT2;
+ }
}
}
OpenPOWER on IntegriCloud