Some thoughts:

Inplementing form.as_items returning a list of form lines would be
nice.
This allows a variety of custom formatting options. Examples:

<form>
{% for item in forms.as_items }}{{ item }} , {% endfor %}<br/>
<...submit directive...>
</form>

<form>
{{ item[0] }} -- {{ item[1] }} -- {{ item[2] }}<br/>
{{ item[3] }}<br/>
{{ item[4] }}&nbsp;&nbsp;<submit directive>
</form>

--------------------------------------------------------------------------------------------

One trick that I use for tiny forms is to define "inline" for li in
the css and then use form.as_ul.
(If necessary you can do this inside a tagged div to prevent the
inlining of other uls.)

This allows trivial one line forms with the submit button on the same
line. Nice and compact.


Rock

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to