diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2006-07-07 03:57:50 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2006-07-07 03:57:50 +0000 |
| commit | 4b11b43d0b2eac4e346d597360982103bae2b698 (patch) | |
| tree | 4e2e3eb130af78ed776355699753c95e7e0df225 | |
| parent | 16c5cec9c149830be605354d910890a9b4a90b49 (diff) | |
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
| -rw-r--r-- | django/contrib/comments/templates/comments/form.html | 4 | ||||
| -rw-r--r-- | django/contrib/comments/templates/comments/freeform.html | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/django/contrib/comments/templates/comments/form.html b/django/contrib/comments/templates/comments/form.html index 3e171b1e67..4a6b5fc320 100644 --- a/django/contrib/comments/templates/comments/form.html +++ b/django/contrib/comments/templates/comments/form.html @@ -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 %} diff --git a/django/contrib/comments/templates/comments/freeform.html b/django/contrib/comments/templates/comments/freeform.html index 99a02b4d97..f0d00b91c7 100644 --- a/django/contrib/comments/templates/comments/freeform.html +++ b/django/contrib/comments/templates/comments/freeform.html @@ -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 %} |
