Mercurial > public > sg101
diff gpp/templates/messages/view.html @ 156:7ad1f3e77cd9
Messages: use post to delete and undelete messages.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 20 Dec 2009 05:21:57 +0000 |
parents | dbd703f7d63a |
children | 6a5549c2efb5 |
line wrap: on
line diff
--- a/gpp/templates/messages/view.html Sat Dec 19 22:20:09 2009 +0000 +++ b/gpp/templates/messages/view.html Sun Dec 20 05:21:57 2009 +0000 @@ -20,12 +20,16 @@ {{ msg.sender.get_profile.signature_html|safe }} </div> {% endif %} -<p> {% if is_deleted %} -<a href="{% url messages-undelete msg.id %}{% if box %}?box={{ box }}{% endif %}">Undelete</a> +<form action="{% url messages-undelete msg.id %}" method="post"> + {% if box %}<input type="hidden" name="box" value="{{ box }}" />{% endif %} + <input type="submit" value="Undelete" /> +</form> {% else %} <a href="{% url messages-reply msg.id %}{% if box %}?box={{ box }}{% endif %}">Reply</a> | -<a href="{% url messages-delete msg.id %}{% if box %}?box={{ box }}{% endif %}">Delete</a> +<form action="{% url messages-delete msg.id %}" method="post" class="messages-button"> + {% if box %}<input type="hidden" name="box" value="{{ box }}" />{% endif %} + <input type="submit" value="Delete" /> +</form> {% endif %} -</p> {% endblock %}