Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #2283 -- Fixed XHTML-strict validation error in comment templates

git-svn-id: http://code.djangoproject.com/svn/django/trunk@3283 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 4b11b43d0b2eac4e346d597360982103bae2b698 1 parent 16c5cec
Adrian Holovaty adrianholovaty authored
4 django/contrib/comments/templates/comments/form.html
View
@@ -28,9 +28,11 @@
<p><label for="id_comment">{% trans "Comment:" %}</label><br />
<textarea name="comment" id="id_comment" rows="10" cols="60"></textarea></p>
+<p>
<input type="hidden" name="options" value="{{ options }}" />
<input type="hidden" name="target" value="{{ target }}" />
<input type="hidden" name="gonzo" value="{{ hash }}" />
-<p><input type="submit" name="preview" value="{% trans "Preview comment" %}" /></p>
+<input type="submit" name="preview" value="{% trans "Preview comment" %}" />
+</p>
</form>
{% endif %}
4 django/contrib/comments/templates/comments/freeform.html
View
@@ -3,9 +3,11 @@
<form action="/comments/postfree/" method="post">
<p><label for="id_person_name">{% trans "Your name:" %}</label> <input type="text" id="id_person_name" name="person_name" /></p>
<p><label for="id_comment">{% trans "Comment:" %}</label><br /><textarea name="comment" id="id_comment" rows="10" cols="60"></textarea></p>
+<p>
<input type="hidden" name="options" value="{{ options }}" />
<input type="hidden" name="target" value="{{ target }}" />
<input type="hidden" name="gonzo" value="{{ hash }}" />
-<p><input type="submit" name="preview" value="{% trans "Preview comment" %}" /></p>
+<input type="submit" name="preview" value="{% trans "Preview comment" %}" />
+</p>
</form>
{% endif %}
Please sign in to comment.
Something went wrong with that request. Please try again.