Mercurial > public > sg101
comparison gpp/templates/messages/outbox.html @ 1:dbd703f7d63a
Initial import of sg101 stuff from private repository.
author | gremmie |
---|---|
date | Mon, 06 Apr 2009 02:43:12 +0000 |
parents | |
children | d51743322bb2 |
comparison
equal
deleted
inserted
replaced
0:900ba3c7b765 | 1:dbd703f7d63a |
---|---|
1 {% extends 'messages/base.html' %} | |
2 {% block title %}Messages: Outbox{% endblock %} | |
3 {% block custom_js %} | |
4 <script type="text/javascript" src="{{ MEDIA_URL }}js/messages/box.js"></script> | |
5 {% endblock %} | |
6 {% block outbox-class %}class="active"{% endblock %} | |
7 {% block messages_content %} | |
8 <h3>Outbox</h3> | |
9 {% if messages %} | |
10 <ul class="user-messages"> | |
11 {% for msg in messages %} | |
12 <li>{{ msg }}</li> | |
13 {% endfor %} | |
14 </ul> | |
15 {% endif %} | |
16 {% if msgs %} | |
17 <form action="{% url messages-delete_bulk %}" method="post" name="messages_box_form" | |
18 onsubmit="return messages_confirm_delete();"> | |
19 <table class="messages"> | |
20 <tr> | |
21 <th>To</th> | |
22 <th>Subject</th> | |
23 <th>Sent</th> | |
24 <th>Received</th> | |
25 <th><input type="checkbox" id="master_select" onclick="messages_master_click();" /></th> | |
26 </tr> | |
27 {% for msg in msgs %} | |
28 <tr> | |
29 <td><a href="{% url bio.views.view_profile msg.receiver.username %}"> | |
30 {{ msg.receiver.username }}</a></td> | |
31 <td> | |
32 {% if msg.unread %}<strong>{% endif %} | |
33 {% if msg.replied_to %}<em>{% endif %} | |
34 <a href="{{ msg.get_absolute_url }}?box=outbox">{{ msg.subject }}</a> | |
35 {% if msg.replied_to %}</em>{% endif %} | |
36 {% if msg.unread %}</strong>{% endif %} | |
37 </td> | |
38 <td>{{ msg.send_date|date:"M j, Y g:i A" }}</td> | |
39 <td>{% if msg.unread %}<em>Unread</em>{% else %}{{ msg.read_date|date:"M j, Y g:i A" }}{% endif %}</td> | |
40 <td><input type="checkbox" name="delete_ids" value="{{ msg.id }}" | |
41 onclick="messages_set_master();" /></td> | |
42 </tr> | |
43 {% endfor %} | |
44 <tr><td colspan="5" align="center"><input type="submit" value="Delete Checked Messages" /></td></tr> | |
45 </table> | |
46 <input type="hidden" name="box" value="outbox" /> | |
47 </form> | |
48 {% else %} | |
49 <p><em>Your Outbox is empty.</em></p> | |
50 {% endif %} | |
51 {% endblock %} |