diff options
author | bruno <bruno.stein@bluepex.com> | 2015-11-19 14:17:26 -0200 |
---|---|---|
committer | bruno <bruno.stein@bluepex.com> | 2015-11-19 14:17:26 -0200 |
commit | e4a787803fce35b18e449d3922d69cb7d289dad6 (patch) | |
tree | 90e4b7597eaeab9dd9384eb101dd7e60e0a3522a /src/usr/local/www/classes | |
parent | c2e566f479297257b94b5318aba6458c299d2d65 (diff) | |
download | pfsense-e4a787803fce35b18e449d3922d69cb7d289dad6.zip pfsense-e4a787803fce35b18e449d3922d69cb7d289dad6.tar.gz |
add attribute 'id' for the Form_Section
Diffstat (limited to 'src/usr/local/www/classes')
-rw-r--r-- | src/usr/local/www/classes/Form/Section.class.php | 7 |
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 +} |