summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www
diff options
context:
space:
mode:
authorbruno <bruno.stein@bluepex.com>2015-11-19 14:17:26 -0200
committerbruno <bruno.stein@bluepex.com>2015-11-19 14:17:26 -0200
commite4a787803fce35b18e449d3922d69cb7d289dad6 (patch)
tree90e4b7597eaeab9dd9384eb101dd7e60e0a3522a /src/usr/local/www
parentc2e566f479297257b94b5318aba6458c299d2d65 (diff)
downloadpfsense-e4a787803fce35b18e449d3922d69cb7d289dad6.zip
pfsense-e4a787803fce35b18e449d3922d69cb7d289dad6.tar.gz
add attribute 'id' for the Form_Section
Diffstat (limited to 'src/usr/local/www')
-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