home / django_tickets / tickets

tickets: 8272

This data as json

id created changetime last_pulled_from_trac stage status component type severity version resolution summary description owner reporter keywords easy has_patch needs_better_patch needs_tests needs_docs ui_ux
8272 2008-08-13 02:11:04 2013-04-07 18:04:21 2022-03-06 03:41:48.836748 Accepted closed Forms New feature Normal dev duplicate Patch to forms to add a fieldset attribute to Field for use with templates I needed to create a complex form that used fieldsets to divide sections of the form. I finally figured out that to do this, I needed to modify the forms code a bit. I've tested this patch against the latest version of svn and it worked. Below is a snippet of a template to show you how you would use the new fieldset attribute for more complex form layouts. The diff file is attached. <form action="." method="post"> {% regroup form by fieldset as fields_list %} {% for field in fields_list %} <fieldset> <legend>{{ field.grouper|upper }}</legend> {% for f in field.list %} {{ f.label_tag }} {{ f }} {% endfor %} </fieldset> {% endfor %} <input type="submit" value="Submit" /> </form> jbowman jbowman   0 1 0 1 1 0
Powered by Datasette · Queries took 1.176ms