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 : 3 + 16 = ?

 
 [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] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!