Opened 16 years ago
Closed 14 years ago
#10321 closed New feature (wontfix)
Dont hardcode form label html.
Reported by: | Vadim Fint | Owned by: | nobody |
---|---|---|---|
Component: | Forms | Version: | 1.0 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Design decision needed | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Sometimes, form labels should be formatted differently. Current django forms does not allow this, by hardcoding label template in forms/forms.py. This my old patch which allows to change label template for any form. It is backward-compatible (used by me for several months, all django tests pass). Not sure is it elegant solution or not, but helps me a lot.
Attachments (1)
Change History (3)
by , 16 years ago
Attachment: | mocksoul_form_label_tag_templates.patch added |
---|
comment:1 by , 16 years ago
Triage Stage: | Unreviewed → Design decision needed |
---|
comment:2 by , 14 years ago
Resolution: | → wontfix |
---|---|
Severity: | → Normal |
Status: | new → closed |
Type: | → New feature |
Note:
See TracTickets
for help on using tickets.
I'm going to make a call and say we won't go with this. I'm keen on exorcising all html from python eventually, and this is just making it more flexible.
If someone really wants to change the label html, they can just override the whole
label_tag
method.