summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Beaver <sbeaver@netgate.com>2015-11-19 11:26:55 -0500
committerStephen Beaver <sbeaver@netgate.com>2015-11-19 11:26:55 -0500
commitcf3db8b45d885dd11f269838470aacaea5eff0ad (patch)
tree785724fe8b52174a6437f25d107a92e93e608066
parent1fcde22aa409afb0b4093b73e257249f9673a44a (diff)
parente4a787803fce35b18e449d3922d69cb7d289dad6 (diff)
downloadpfsense-cf3db8b45d885dd11f269838470aacaea5eff0ad.zip
pfsense-cf3db8b45d885dd11f269838470aacaea5eff0ad.tar.gz
Merge pull request #2090 from brunostein/add_identification_form_section
-rw-r--r--src/usr/local/www/classes/Form/Section.class.php7
1 files changed, 5 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 b1dfb22..bebc11c 100644
--- a/src/usr/local/www/classes/Form/Section.class.php
+++ b/src/usr/local/www/classes/Form/Section.class.php
@@ -38,8 +38,11 @@ class Form_Section extends Form_Element
protected $_title;
protected $_groups = array();
- public function __construct($title)
+ public function __construct($title, $id = "")
{
+ if (!empty($id)) {
+ $this->_attributes['id'] = $id;
+ }
$this->_title = $title;
}
@@ -79,4 +82,4 @@ class Form_Section extends Form_Element
</div>
EOT;
}
-} \ No newline at end of file
+}
OpenPOWER on IntegriCloud