diff options
author | Stephen Beaver <sbeaver@netgate.com> | 2016-07-18 11:43:12 -0400 |
---|---|---|
committer | Stephen Beaver <sbeaver@netgate.com> | 2016-07-18 11:44:43 -0400 |
commit | fe179ed6b9bdd5cfbf0d73a88e8dea8aa144a842 (patch) | |
tree | 008a5cb5693f374e4c12e033fb6bbbd846a476fd /src/usr/local | |
parent | b6bd40128283113dc54c821e1e45d84c162fa935 (diff) | |
download | pfsense-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')
-rw-r--r-- | src/usr/local/www/classes/Form/Section.class.php | 14 |
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; + } } } |