Skip to content

Commit

Permalink
Fixed #8870 -- Changed django.contrib.comments templates to use lower…
Browse files Browse the repository at this point in the history
…case 'post' for <form method> attributes, to be consistent with our other templates. Thanks, zgoda

git-svn-id: http://code.djangoproject.com/svn/django/trunk@9050 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
adrianholovaty committed Sep 16, 2008
1 parent 78fd5db commit 8ec8e1a
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion django/contrib/comments/templates/comments/approve.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{% block content %}
<h1>Really make this comment public?</h1>
<blockquote>{{ comment|linebreaks }}</blockquote>
<form action="." method="POST">
<form action="." method="post">
<input type="hidden" name="next" value="{{ next }}" id="next">
<p class="submit">
<input type="submit" name="submit" value="Approve"> or <a href="{{ comment.permalink }}">cancel</a>
Expand Down
2 changes: 1 addition & 1 deletion django/contrib/comments/templates/comments/delete.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{% block content %}
<h1>Really remove this comment?</h1>
<blockquote>{{ comment|linebreaks }}</blockquote>
<form action="." method="POST">
<form action="." method="post">
<input type="hidden" name="next" value="{{ next }}" id="next">
<p class="submit">
<input type="submit" name="submit" value="Remove"> or <a href="{{ comment.permalink }}">cancel</a>
Expand Down
2 changes: 1 addition & 1 deletion django/contrib/comments/templates/comments/flag.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{% block content %}
<h1>Really flag this comment?</h1>
<blockquote>{{ comment|linebreaks }}</blockquote>
<form action="." method="POST">
<form action="." method="post">
<input type="hidden" name="next" value="{{ next }}" id="next">
<p class="submit">
<input type="submit" name="submit" value="Flag"> or <a href="{{ comment.permalink }}">cancel</a>
Expand Down
2 changes: 1 addition & 1 deletion django/contrib/comments/templates/comments/form.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% load comments %}
<form action="{% comment_form_target %}" method="POST">
<form action="{% comment_form_target %}" method="post">
{% for field in form %}
{% if field.is_hidden %}
{{ field }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@ <h1 id="site-name">Comment moderation queue</h1>
{% for comment in comments %}
<tr class="{% cycle 'row1' 'row2' %}">
<td class="actions">
<form action="{% url comments-approve comment.pk %}" method="POST">
<form action="{% url comments-approve comment.pk %}" method="post">
<input type="hidden" name="next" value="{% url comments-moderation-queue %}">
<input class="approve submit" type="submit" name="submit" value="Approve">
</form>
<form action="{% url comments-delete comment.pk %}" method="POST">
<form action="{% url comments-delete comment.pk %}" method="post">
<input type="hidden" name="next" value="{% url comments-moderation-queue %}">
<input class="remove submit" type="submit" name="submit" value="Remove">
</form>
Expand Down
2 changes: 1 addition & 1 deletion django/contrib/comments/templates/comments/preview.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

{% block content %}
{% load comments %}
<form action="{% comment_form_target %}" method="POST">
<form action="{% comment_form_target %}" method="post">
{% if form.errors %}
<h1>Please correct the error{{ form.errors|pluralize }} below</h1>
{% else %}
Expand Down
2 changes: 1 addition & 1 deletion django/contrib/comments/templates/comments/reply.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% load comments %}
<form action="{% comment_form_target %}" method="POST">
<form action="{% comment_form_target %}" method="post">
{% for field in form %}
{% if field.is_hidden %}
{{ field }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

{% block content %}
{% load comments %}
<form action="{% comment_form_target %}" method="POST">
<form action="{% comment_form_target %}" method="post">
{% if form.errors %}
<h1>Please correct the error{{ form.errors|pluralize }} below</h1>
{% else %}
Expand Down

0 comments on commit 8ec8e1a

Please sign in to comment.