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

Bug #2637 Bug in example (required fields) HTML_QuickForm
Submitted: 2004-10-28 11:31 UTC
From: schwering at ift-nord dot de Assigned: ths
Status: No Feedback Package: HTML_QuickForm
PHP Version: Irrelevant OS: Linux-Red Hat
Roadmaps: (Not assigned)    
Subscription  


 [2004-10-28 11:31 UTC] schwering at ift-nord dot de
Description: ------------ there might be an error in the: FlexyStatic_example.php or in its included files. the whole example is working but with a color bug: if u do not enter necessary fields it should come up an orange warning messgage behind the field labels. it is orange with two exceptions: the waring message for the group: Name (with first and last) and for the group: address (with zip and city) is black. not sure why.. any workaround for that bug? Expected result: ---------------- orange warning messages for every required field if empty Actual result: -------------- 2 group warnings are black

Comments

 [2004-10-28 17:33 UTC] ths
I would implement a setErrorTemplate() method to make the base layout of an error independent from label or element template. The workaround is to set the colors in the static template directly. <tr> <td class="label">{form.name.label:h}</td> <td class="element"> <font color="orange" size="1"> {form.name.error:h}</font><br /> <table cellspacing="0" cellpadding="1"> <tr> <td>{form.name.first.html:h}</td> <td>{form.name.last.html:h}</td> </tr> <tr> <td><font size="1" color="grey"> {form.name.first.label:h}</font></td> <td><font size="1" color="grey"> {form.name.last.label:h}</font></td> </tr> </table> </td> </tr>
 [2012-01-27 22:20 UTC] mansion (Bertrand Mansion)
-Status: Verified +Status: No Feedback
No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to "Open". Thank you.