Opened 16 years ago
Closed 14 years ago
#8426 closed (fixed)
Wrap help_text in "<span class="helptext"></span>", like errors in "<ul class="errorlist"></ul>" in HTML output
Reported by: | ErikW | Owned by: | Karen Tracey |
---|---|---|---|
Component: | Forms | Version: | dev |
Severity: | Keywords: | help_text, as_p, as_ul, forms | |
Cc: | randallpbarlow@… | Triage Stage: | Accepted |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
form.as_p() and form.as_ul() should both either have a div (with class="help"), span, or br around the help_text. form.as_table() already has a br tag before the helptext. So this should be added to improve consistency. This will really aid in styling the form with CSS!
Attachments (4)
Change History (28)
comment:1 by , 16 years ago
milestone: | 1.0 → post-1.0 |
---|---|
Triage Stage: | Unreviewed → Design decision needed |
comment:2 by , 16 years ago
Is it the right time for a design decision on this ticket?
Note, that error messages has custom ul class, so why not have it for help_text?
And the implementation is fairly trivial.
What is against accepting it? (well, I can write arbitrary output method, but why cannot be the default ones perfect?)
comment:3 by , 16 years ago
Triage Stage: | Design decision needed → Accepted |
---|
Pushing to accepted as per jacob on Version1.1Features:
- Wrap help_text in "<span class="helptext"></span>", like errors in "<ul class="errorlist"></ul>" in HTML output. (needs ticket)
by , 16 years ago
Attachment: | wrap_help_text_in_css_class.diff added |
---|
comment:5 by , 16 years ago
Has patch: | set |
---|---|
Needs tests: | set |
Patch needs improvement: | set |
by , 16 years ago
Attachment: | wrap_help_text_in_css_class-with_tests.diff added |
---|
Add tests and fix as_p()
comment:6 by , 16 years ago
Needs tests: | unset |
---|---|
Patch needs improvement: | unset |
Not sure if documentation is needed though.
comment:7 by , 16 years ago
Summary: | Add "div" tag around help_text html output in nowforms myform.as_p() → Wrap help_text in "<span class="helptext"></span>", like errors in "<ul class="errorlist"></ul>" in HTML output |
---|
comment:9 by , 16 years ago
milestone: | → 1.1 beta |
---|
Tentatively pushing to 1.1 beta, assuming that this was just missed (it seems that Jacob agrees it's needed). As it's a feature, it should be either committed before 1.1 beta or deferred to 1.2.
by , 16 years ago
Attachment: | wrap_help_text_in_css_class-with_tests-r10116.diff added |
---|
Update to r10116
comment:10 by , 16 years ago
milestone: | 1.1 beta → 1.1 |
---|
Markup changes don't count as features; this can wait and go in with the other bug fixes.
comment:11 by , 16 years ago
milestone: | 1.1 → 1.2 |
---|
comment:12 by , 16 years ago
The path always add help_text even when no help_text is set in the form
comment:14 by , 15 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:15 by , 15 years ago
Patch needs improvement: | set |
---|
by , 15 years ago
Attachment: | wrap_help_text_in_css_class-with_tests-r11855.diff added |
---|
Here's an updated patch.
comment:16 by , 15 years ago
Owner: | changed from | to
---|---|
Patch needs improvement: | unset |
Status: | assigned → new |
Hey Karen, this one's ready to go in!
comment:17 by , 15 years ago
Cc: | added |
---|
comment:18 by , 15 years ago
milestone: | 1.2 |
---|
1.2 is feature-frozen, moving this feature request off the milestone.
follow-up: 20 comment:19 by , 15 years ago
Definitely not happy. Simple bug, simple patch, more than one year old.
comment:20 by , 15 years ago
Replying to pihentagy:
Definitely not happy. Simple bug, simple patch, more than one year old.
Like it or not, this is a feature request, and the process for feature requests getting into new releases is documented. The biggest factor for a small request is that someone motivated -- perhaps you, if you feel strongly about this ticket -- needs to bring it up during the feature-development phase of a release cycle and make sure there's some discussion about it and a decision as to whether it's worth adding. If no-one does that (and no-one did for the 1.2 release cycle), it's more or less inevitable that the request will simply be punted until someone does. And since 1.2 is feature-frozen there's no way to do that for 1.2 now; if you'd like to see this make it into Django, then make a note of it and pop onto the django-dev list when feature discussion for 1.3 opens up in a month or so.
comment:21 by , 14 years ago
oh please God... why this must hang for 2 years =( it's really REALLY inconvinient... is it takes too much time to include this fix into release? I need it die hard!
comment:22 by , 14 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:23 by , 14 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
[13519] appears to be just the tests, not the forms/forms.py fix.
comment:24 by , 14 years ago
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
This could well be wontfix, since you can easily write your own output methods to do whatever you like in forms. We can make a decision after 1.0.