Mercurial > public > sg101
comparison 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 |
comparison
equal
deleted
inserted
replaced
155:ef93dc9f1992 | 156:7ad1f3e77cd9 |
---|---|
18 <div class="message-hr"></div> | 18 <div class="message-hr"></div> |
19 <div class="message-signature"> | 19 <div class="message-signature"> |
20 {{ msg.sender.get_profile.signature_html|safe }} | 20 {{ msg.sender.get_profile.signature_html|safe }} |
21 </div> | 21 </div> |
22 {% endif %} | 22 {% endif %} |
23 <p> | |
24 {% if is_deleted %} | 23 {% if is_deleted %} |
25 <a href="{% url messages-undelete msg.id %}{% if box %}?box={{ box }}{% endif %}">Undelete</a> | 24 <form action="{% url messages-undelete msg.id %}" method="post"> |
25 {% if box %}<input type="hidden" name="box" value="{{ box }}" />{% endif %} | |
26 <input type="submit" value="Undelete" /> | |
27 </form> | |
26 {% else %} | 28 {% else %} |
27 <a href="{% url messages-reply msg.id %}{% if box %}?box={{ box }}{% endif %}">Reply</a> | | 29 <a href="{% url messages-reply msg.id %}{% if box %}?box={{ box }}{% endif %}">Reply</a> | |
28 <a href="{% url messages-delete msg.id %}{% if box %}?box={{ box }}{% endif %}">Delete</a> | 30 <form action="{% url messages-delete msg.id %}" method="post" class="messages-button"> |
31 {% if box %}<input type="hidden" name="box" value="{{ box }}" />{% endif %} | |
32 <input type="submit" value="Delete" /> | |
33 </form> | |
29 {% endif %} | 34 {% endif %} |
30 </p> | |
31 {% endblock %} | 35 {% endblock %} |