Home » HTML » HTML_QuickForm_Renderer_Tableless » Bug #8569
Make "requiredNote" more dom-friendly
Details
| Request #8569 | Make "requiredNote" more dom-friendly |
|---|---|
| Submitted | 2006-08-27 22:05 UTC |
| From | eduardo593734256 at gmail dot com |
| Assigned | wiesemann |
| Status | Closed |
| Package | HTML_QuickForm_Renderer_Tableless |
| PHP Version | Irrelevant |
| OS | Gnu/Linux |
| Roadmaps | (Not assigned) |
Comments
[2006-08-27 22:05 UTC] eduardo593734256 at gmail dot com
Description:
------------
This element needs a DOM node so it can be styled.
Test script:
---------------
Line 99, Tableless.php:
From:
"\n\t\t{requiredNote}";
To:
"\n\t\t{requiredNote}";
[2006-09-12 17:26 UTC] eduardo593734256 at gmail dot com
Hi, Mark!
In the original renderer, the method is useful because the template is hard coded with "align" and else, so it's the way to quickly change it.
In your renderer, not putting the notes in a DOM acessible place by default looks equivalent to hard coding the fixed style in the renderer, since you need to change the code, not the CSS, to do something related to the layout, which goes against the renderer's purpose. (at least in our case)
Plus, this change would add many more use cases to the default behavior and reduce 1 duplicated line per form in most use cases.
[2006-09-14 19:47 UTC] eduardo593734256 at gmail dot com
This looks like a problem in QF itself, since it's setting in RequiredNote data that should be in RequiredNoteTemplate exclusively.
I didn't knew about this problem because I always have to translate the message in my forms, so this default formatting was always overwritten with a clean message. What to do? Should I report it to QF?
[2006-09-15 03:34 UTC] eduardo593734256 at gmail dot com
I got your points, I think it is the best solution.
My suggestion for the class name: "star" or "indicator"
.qf_req_note .star {/* stuff */}
* denotes required field
[2006-09-18 05:32 UTC] eduardo593734256 at gmail dot com
Ah! Sorry, I forgot about it, been too long seeing only
client validation.
It's really much better and consistent.
Thank you for the help and attention, I checked the new
source, will update my style sheet here and wait for the
release. :-)