Opened 18 years ago
Closed 18 years ago
#4232 closed (fixed)
Update to the newforms documentation
Reported by: | Owned by: | Jacob | |
---|---|---|---|
Component: | Documentation | Version: | dev |
Severity: | Keywords: | newforms documentation | |
Cc: | heckj@… | Triage Stage: | Ready for checkin |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
In learning about how to use the newforms from within the templates, I thought I'd write it up from a template designer's point of view to make the newforms a little more accessible. I've submitted the update to the docs as a patch, attached to this bug.
Attachments (4)
Change History (11)
by , 18 years ago
Attachment: | newforms.diff added |
---|
comment:1 by , 18 years ago
Summary: | [patch] update to the newforms documentation → Update to the newforms documentation |
---|---|
Triage Stage: | Unreviewed → Accepted |
Looks like a good start!
comment:2 by , 18 years ago
I added some more documentation - putting in an example view just above "Outputting to HTML" to bring together all of the components above. I also put in a few more "template" references on rendering of the form using shortcuts as_p, as_ul, and as_table.
follow-up: 4 comment:3 by , 18 years ago
Patch needs improvement: | set |
---|
Thanks for the documentation. Is this complete now, or are you still working on this?
A few comments:
- It appears that you have possibly mixed some tabs in there as the indention is nonuniform.
- In the view code, I believe it is better practice to use "
if request.method == 'POST'
" instead of "if request.POST
".
comment:4 by , 18 years ago
Replying to Gary Wilson <gary.wilson@gmail.com>:
Thanks for the documentation. Is this complete now, or are you still working on this?
A few comments:
- It appears that you have possibly mixed some tabs in there as the indention is nonuniform.
- In the view code, I believe it is better practice to use "
if request.method == 'POST'
" instead of "if request.POST
".
I'll clean up the tabs and change the view code per your suggestions, then I'll call it done for this set. I need to learn more about Widgets and the variety of ways of using them before I attack more docs.
by , 18 years ago
final update - cleaned up view per request and removed nasty tabs
comment:6 by , 18 years ago
Patch needs improvement: | unset |
---|---|
Triage Stage: | Accepted → Ready for checkin |
by , 18 years ago
Attachment: | 4232.2.diff added |
---|
comment:7 by , 18 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
documentation updates