diff options
author | Stephen Beaver <sbeaver@netgate.com> | 2015-11-19 11:26:55 -0500 |
---|---|---|
committer | Stephen Beaver <sbeaver@netgate.com> | 2015-11-19 11:26:55 -0500 |
commit | cf3db8b45d885dd11f269838470aacaea5eff0ad (patch) | |
tree | 785724fe8b52174a6437f25d107a92e93e608066 /src/usr/local/www | |
parent | 1fcde22aa409afb0b4093b73e257249f9673a44a (diff) | |
parent | e4a787803fce35b18e449d3922d69cb7d289dad6 (diff) | |
download | pfsense-cf3db8b45d885dd11f269838470aacaea5eff0ad.zip pfsense-cf3db8b45d885dd11f269838470aacaea5eff0ad.tar.gz |
Merge pull request #2090 from brunostein/add_identification_form_section
Diffstat (limited to 'src/usr/local/www')
-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 +} |