mirror of
https://github.com/django/django.git
synced 2025-07-19 00:59:17 +00:00
[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
This commit is contained in:
parent
a340c7f0e2
commit
503b3ca459
@ -5,10 +5,10 @@
|
|||||||
{% if field.is_hidden %}
|
{% if field.is_hidden %}
|
||||||
{{ field }}
|
{{ field }}
|
||||||
{% else %}
|
{% else %}
|
||||||
|
{% if field.errors %}{{ field.errors }}{% endif %}
|
||||||
<p
|
<p
|
||||||
{% if field.errors %} class="error"{% endif %}
|
{% if field.errors %} class="error"{% endif %}
|
||||||
{% ifequal field.name "honeypot" %} style="display:none;"{% endifequal %}>
|
{% ifequal field.name "honeypot" %} style="display:none;"{% endifequal %}>
|
||||||
{% if field.errors %}{{ field.errors }}{% endif %}
|
|
||||||
{{ field.label_tag }} {{ field }}
|
{{ field.label_tag }} {{ field }}
|
||||||
</p>
|
</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -20,10 +20,10 @@
|
|||||||
{% if field.is_hidden %}
|
{% if field.is_hidden %}
|
||||||
{{ field }}
|
{{ field }}
|
||||||
{% else %}
|
{% else %}
|
||||||
|
{% if field.errors %}{{ field.errors }}{% endif %}
|
||||||
<p
|
<p
|
||||||
{% if field.errors %} class="error"{% endif %}
|
{% if field.errors %} class="error"{% endif %}
|
||||||
{% ifequal field.name "honeypot" %} style="display:none;"{% endifequal %}>
|
{% ifequal field.name "honeypot" %} style="display:none;"{% endifequal %}>
|
||||||
{% if field.errors %}{{ field.errors }}{% endif %}
|
|
||||||
{{ field.label_tag }} {{ field }}
|
{{ field.label_tag }} {{ field }}
|
||||||
</p>
|
</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user