summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/classes
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:44:43 -0400
commitfe179ed6b9bdd5cfbf0d73a88e8dea8aa144a842 (patch)
tree008a5cb5693f374e4c12e033fb6bbbd846a476fd /src/usr/local/www/classes
parentb6bd40128283113dc54c821e1e45d84c162fa935 (diff)
downloadpfsense-fe179ed6b9bdd5cfbf0d73a88e8dea8aa144a842.zip
pfsense-fe179ed6b9bdd5cfbf0d73a88e8dea8aa144a842.tar.gz
Allow section header to be omitted by specifying "NOTITLE" as the section title.
(cherry picked from commit 9ce54773be5e02235e3be7d2b970f61fbb27ba86)
Diffstat (limited to 'src/usr/local/www/classes')
-rw-r--r--src/usr/local/www/classes/Form/Section.class.php14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/usr/local/www/classes/Form/Section.class.php b/src/usr/local/www/classes/Form/Section.class.php
index a2cc0e0..133c7ba 100644
--- a/src/usr/local/www/classes/Form/Section.class.php
+++ b/src/usr/local/www/classes/Form/Section.class.php
@@ -141,7 +141,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>
@@ -150,6 +159,7 @@ class Form_Section extends Form_Element
{$body}
</div>
</div>
-EOT;
+EOT2;
+ }
}
}
OpenPOWER on IntegriCloud