Opened 17 years ago

Closed 16 years ago

Last modified 11 years ago

#3108 closed enhancement (wontfix)

Add Form.as_dl() to newforms

Reported by: Adrian Holovaty Owned by: Adrian Holovaty
Component: Forms Version: dev
Severity: normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Attachments (1)

as_dl.patch (769 bytes ) - added by webograph <webograph@…> 17 years ago.

Download all attachments as: .zip

Change History (7)

comment:1 by Adrian Holovaty, 17 years ago

Resolution: wontfix
Status: newclosed

Wontfix -- let's cap the default form output to the three choices we already have.

comment:2 by webograph <webograph@…>, 17 years ago

Has patch: set

is there some particular point in this being closed again? using dl in for list is becoming common practice and gives great possibilities for quickly styling forms in a clean way without having to write html code (plus it looks good from the beginning).

it has been mentioned that the as_ functions are heavily used as shortcuts and that django should handle common cases; i guess this is one!

as of how to handle the error_row, i suggest using u'<dd>%s</dd>') -- it's not perfectly clean from a semantic point of view, but the best we can get in current (x)html.

by webograph <webograph@…>, 17 years ago

Attachment: as_dl.patch added

comment:3 by anonymous, 16 years ago

Resolution: wontfix
Status: closedreopened
Version: SVN

please? this is much more usefull than as_p or as_ul

comment:4 by Malcolm Tredinnick, 16 years ago

Resolution: wontfix
Status: reopenedclosed

Please don't reopen tickets that have been wontfixed by a core maintainer. Read the contributing doc for how to take this further. However, since you can easily write your own method, this is really a non-issue, so don't expect too much action.

comment:5 by anonymous, 12 years ago

Easy pickings: unset
UI/UX: unset

I don't understand how anyone can think form.as_p() or form.as_ul() is in any way a better use case than form.as_dl(). The patch is right there, ready to be reviewed.

comment:6 by anonymous, 11 years ago

I'm new to Django, this is one of the things I want to do. Formatting a form using dl is the way to go. See the Twitter Bootstrap for example.

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