diff options
| author | Jacob Kaplan-Moss <jacob@jacobian.org> | 2009-04-07 19:35:11 +0000 |
|---|---|---|
| committer | Jacob Kaplan-Moss <jacob@jacobian.org> | 2009-04-07 19:35:11 +0000 |
| commit | 503b3ca45984c6f5673d62c590ff639ba82820b2 (patch) | |
| tree | 25c7c66cc61692e4bc4dfc22a7d2f478cf3a42ab | |
| parent | a340c7f0e2995c7868ac673eddd23022ab1549ba (diff) | |
[1.0.X] Fixed #9792: corrected invalid HTML in the comment form and comment preview. Backport of r10420 from trunk.
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10421 bcc190cf-cafb-0310-a4f2-bffc1f526a37
| -rw-r--r-- | django/contrib/comments/templates/comments/form.html | 2 | ||||
| -rw-r--r-- | django/contrib/comments/templates/comments/preview.html | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/django/contrib/comments/templates/comments/form.html b/django/contrib/comments/templates/comments/form.html index f0da620ec0..d8e248372f 100644 --- a/django/contrib/comments/templates/comments/form.html +++ b/django/contrib/comments/templates/comments/form.html @@ -5,10 +5,10 @@ {% if field.is_hidden %} {{ field }} {% else %} + {% if field.errors %}{{ field.errors }}{% endif %} <p {% if field.errors %} class="error"{% endif %} {% ifequal field.name "honeypot" %} style="display:none;"{% endifequal %}> - {% if field.errors %}{{ field.errors }}{% endif %} {{ field.label_tag }} {{ field }} </p> {% endif %} diff --git a/django/contrib/comments/templates/comments/preview.html b/django/contrib/comments/templates/comments/preview.html index 9f9af1352d..d3884575f5 100644 --- a/django/contrib/comments/templates/comments/preview.html +++ b/django/contrib/comments/templates/comments/preview.html @@ -20,10 +20,10 @@ {% if field.is_hidden %} {{ field }} {% else %} + {% if field.errors %}{{ field.errors }}{% endif %} <p {% if field.errors %} class="error"{% endif %} {% ifequal field.name "honeypot" %} style="display:none;"{% endifequal %}> - {% if field.errors %}{{ field.errors }}{% endif %} {{ field.label_tag }} {{ field }} </p> {% endif %} |
