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)

mocksoul_form_label_tag_templates.patch (2.4 KB ) - added by Vadim Fint 16 years ago.

Download all attachments as: .zip

Change History (3)

by Vadim Fint, 16 years ago

comment:1 by rokclimb15, 16 years ago

Triage Stage: UnreviewedDesign decision needed

comment:2 by Chris Beaven, 14 years ago

Resolution: wontfix
Severity: Normal
Status: newclosed
Type: New feature

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.

Note: See TracTickets for help on using tickets.
Back to Top