From 9a090b2c1f953d9f8ede4bd71747204cf153098e Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Mon, 6 Aug 2007 05:16:35 +0000 Subject: [PATCH] Fixed #5053 -- Added 'action' attribute to
tags that didn't have that attribute in docs/newforms.txt examples. Perfectionism appreciated, trickyb git-svn-id: http://code.djangoproject.com/svn/django/trunk@5813 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- docs/newforms.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/newforms.txt b/docs/newforms.txt index 3a92193d44..dae145434b 100644 --- a/docs/newforms.txt +++ b/docs/newforms.txt @@ -641,7 +641,7 @@ the "Outputting forms as HTML" section above. The simplest way to display a form's HTML is to use the variable on its own, like this:: - + {{ form }}
@@ -653,7 +653,7 @@ class' ``__str__()`` method calls its ``as_table()`` method. The following is equivalent but a bit more explicit:: -
+ {{ form.as_table }}
@@ -675,7 +675,7 @@ individual fields for complete template control over the form's design. The easiest way is to iterate over the form's fields, with ``{% for field in form %}``. For example:: -
+
{% for field in form %}
{{ field.label }}
@@ -696,7 +696,7 @@ Alternatively, you can arrange the form's fields explicitly, by name. Do that by accessing ``{{ form.fieldname }}``, where ``fieldname`` is the field's name. For example:: - +
  • {{ form.sender.label }} {{ form.sender }}
  • {{ form.sender.help_text }}