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

Bug #2637 Bug in example (required fields) HTML_QuickForm
Submitted: 2004-10-28 06:31 UTC Modified: 2004-10-28 12:33 UTC
From: schwering at ift-nord dot de Assigned: ths
Status: Verified Package: HTML_QuickForm
PHP Version: Irrelevant OS: Linux-Red Hat
Roadmaps: (Not assigned)    
Subscription  
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes. If this is not your bug, you can add a comment by following this link. If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: schwering at ift-nord dot de
New email:
PHP Version: Package Version: OS:

 

 [2004-10-28 06: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 12: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>