summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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