From 96dda384b0b128b5d32d9b22129c54e2da00f573 Mon Sep 17 00:00:00 2001 From: Luke Plant Date: Wed, 20 Apr 2011 17:41:04 +0000 Subject: [PATCH] Fixed various validation errors caught by the validator.nu HTML5 validator. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16051 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- formtools/templates/formtools/form.html | 2 +- formtools/templates/formtools/preview.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/formtools/templates/formtools/form.html b/formtools/templates/formtools/form.html index 2f2de1f..cfb5c6c 100644 --- a/formtools/templates/formtools/form.html +++ b/formtools/templates/formtools/form.html @@ -4,7 +4,7 @@ {% if form.errors %}

Please correct the following errors

{% else %}

Submit

{% endif %} -
{% csrf_token %} +{% csrf_token %} {{ form }}
diff --git a/formtools/templates/formtools/preview.html b/formtools/templates/formtools/preview.html index eb88b1e..dea3a99 100644 --- a/formtools/templates/formtools/preview.html +++ b/formtools/templates/formtools/preview.html @@ -15,7 +15,7 @@

Security hash: {{ hash_value }}

-{% csrf_token %} +{% csrf_token %} {% for field in form %}{{ field.as_hidden }} {% endfor %} @@ -25,7 +25,7 @@

Or edit it again

-{% csrf_token %} +{% csrf_token %} {{ form }}