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:43:12 -0400 |
commit | 9ce54773be5e02235e3be7d2b970f61fbb27ba86 (patch) | |
tree | 36e6bf8920c79f3e324feab31421d7c67e9ff89d /src/usr | |
parent | 7bba13e8d53adfe4beb03c8444e60848ae6e25e9 (diff) | |
download | pfsense-9ce54773be5e02235e3be7d2b970f61fbb27ba86.zip pfsense-9ce54773be5e02235e3be7d2b970f61fbb27ba86.tar.gz |
Allow section header to be omitted by specifying "NOTITLE" as the section title.
Diffstat (limited to 'src/usr')
-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 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; + } } } |