622a623,637
> fieldset attribute for fields
> ~~~~~~~~~~~~~~~~~~~~
> New in the development version, you can add a fieldset attribute to fields that
> can be used by templates to group fields. In the form below, the template
> form.fields will have "fieldset" attributes you can group by, and also
> use for legends within html fields.
> 
>     class ContactForm(forms.Form):
>         subject = forms.CharField(max_length=100, fieldset="Required")
>         message = forms.CharField(fieldset="Required")
>         sender = forms.EmailField(fieldset="Required")
>         cc_myself = forms.BooleanField(required=False)
> 
> 
> 
723a739,783
> New in the development version, you can also use passed fieldset attributes to
> layout the form fields in html fieldsets, using the attribute value as the legend.
> 
>     <form method="post" action="">
>     <dl>
> {% regroup form by fieldset as fields_list %}
> {% for fields in fields_list %}
>     <fieldset>
>     <legend>{{ fields.grouper|upper }}</legend>
>         {% for field in fields.list %}
>             <dt>{{ field.label_tag }}</dt>
>             <dd>{{ field }}</dd>
>             {% if field.help_text %}<dd>{{ field.help_text }}</dd>{% endif %}
>             {% if field.errors %}<dd class="myerrors">{{ field.errors }}</dd>{% endif %}
>         {% endfor %}
>     {% endfor %}
>     </dl>
>     <input type="submit" />
>     </form>
> 
> 
> This will output the following HTML.
> 
>     <fieldset>
>     <legend>REQUIRED</legend>
>     
>         <label for="id_subject">Subject</label> <input id="id_subject" type="text" name="subject" maxlength="100" />
>     
>         <label for="id_message">Message</label> <input type="text" name="message" id="id_message" />
>     
>         <label for="id_sender">Sender</label> <input type="text" name="sender" id="id_sender" />
> 
>     
>     </fieldset>
> 
>     <fieldset>
>     <legend></legend>
>     
>         <label for="id_cc_myself">Cc myself</label> <input type="checkbox" name="cc_myself" id="id_cc_myself" />
>     
>     </fieldset>
> 
>   <input type="submit" value="Submit" />
> 
> 
2156c2216
< a formset out of an ``ArticleForm`` you would do::
---
> a formset of out of an ``ArticleForm`` you would do::
