From 5518ac1c2e3fc64b549621d4f558256123c71382 Mon Sep 17 00:00:00 2001 From: tzangms Date: Tue, 22 Nov 2011 00:45:39 +0800 Subject: [PATCH] move error message on top of help text according to twitter bootstrap, error message should be inline --- bootstrapform/templates/bootstrapform/form.html | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/bootstrapform/templates/bootstrapform/form.html b/bootstrapform/templates/bootstrapform/form.html index c38480b..7e3ad47 100644 --- a/bootstrapform/templates/bootstrapform/form.html +++ b/bootstrapform/templates/bootstrapform/form.html @@ -16,15 +16,15 @@ {{ field }} {{ field.label }} + {% for error in field.errors %} + {{ error }} + {% endfor %} + {% if field.help_text %} {{ field.help_text }} {% endif %} - - {% for error in field.errors %} - {{ error }} - {% endfor %} @@ -33,15 +33,16 @@
{{ field }} + {% for error in field.errors %} + {{ error }} + {% endfor %} + {% if field.help_text %} {{ field.help_text }} {% endif %} - {% for error in field.errors %} - {{ error }} - {% endfor %}
{% endif %}