Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.6.2

Request #8236 Adding a "id" on Fieldset
Submitted: 2006-07-18 07:03 UTC
From: v8kf6x11fb5v06l at jetable dot org Assigned: wiesemann
Status: Closed Package: HTML_QuickForm_Renderer_Tableless (version 0.3.0)
PHP Version: 4.3.2 OS: Linux
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 12 + 41 = ?

 
 [2006-07-18 07:03 UTC] v8kf6x11fb5v06l at jetable dot org (jrz)
Description: ------------ In Renderer/Tableless.php: ------------------- Line 76: replace by var $_openFieldsetTemplate = "\n\t<fieldset{id}>"; ------------- Line 129: Add $HeaderId = (!empty($name)) ? str_replace('{id}', ' id="'.$name.'"', $this->_openFieldsetTemplate) : str_replace('{id}', '', $this->_openFieldsetTemplate); ------------ Line 144: Replace by $this->_html .= $HeaderId . $header_html; ----------- Test script: --------------- Now, you can use $form->addElement('header', 'myHeaderID', 'Some text'); Actual result: -------------- ... <fieldset id="myHeaderID"> ... Now you can use CSS to manage your fieldsets !

Comments

 [2006-07-18 11:54 UTC] wiesemann (Mark Wiesemann)
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better. --- Nice addition, thanks. I've used a little bit more clear code, to make it easier to understand.