From b8ba0154b8b22199f8e52f7033d3fdc3cd720474 Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Mon, 15 Sep 2008 12:14:31 +0000 Subject: [PATCH] Fixed #9085: Modified some example form HTML to be XHTML, consistent with Django default rendering. Thanks to Jarek Zgoda for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@9034 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- docs/topics/forms/index.txt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/topics/forms/index.txt b/docs/topics/forms/index.txt index 8ac950e5891..0c51907a998 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