diff --git a/docs/topics/forms/index.txt b/docs/topics/forms/index.txt index 8ac950e589..0c51907a99 100644 --- a/docs/topics/forms/index.txt +++ b/docs/topics/forms/index.txt @@ -168,7 +168,7 @@ context variable ``form``. Here's a simple example template::
{{ form.as_p }} - +
The form only outputs its own fields; it is up to you to provide the surrounding @@ -186,7 +186,7 @@ wrapped in a paragraph. Here's the output for our example template::

- + Note that each form field has an ID attribute set to ``id_``, which @@ -226,7 +226,7 @@ above example:: {{ form.cc_myself }} -

+

Each named form-field can be output to the template using @@ -264,7 +264,7 @@ reduce duplicate code by looping through each field in turn using {{ field.label_tag }}: {{ field }} {% endfor %} -

+

Within this loop, ``{{ field }}`` is an instance of :class:`BoundField`. @@ -299,7 +299,7 @@ can create a template that contains just the form loop and use the
{% include "form_snippet.html" %} -

+

# In form_snippet.html: @@ -318,7 +318,7 @@ context you can alias it using the :ttag:`with` tag:: {% with comment_form as form %} {% include "form_snippet.html" %} {% endwith %} -

+

Further topics