comparison gpp/templates/messages/outbox_tab.html @ 425:76ba9478ebbd

Initial beta-test commit of a revamped, jquery ui tab-based PM system. This is for #211.
author Brian Neal <bgneal@gmail.com>
date Tue, 26 Apr 2011 00:16:35 +0000
parents
children 7cec8d6f9581
comparison
equal deleted inserted replaced
424:8df6e9edac22 425:76ba9478ebbd
1 {% load url from future %}
2 {% if messages %}
3 <ul class="user-messages">
4 {% for msg in messages %}
5 <li{% if msg.tags %} class="{{ msg.tags }}"{% endif %}>{{ msg }}</li>
6 {% endfor %}
7 </ul>
8 {% endif %}
9 {% if msgs.object_list %}
10 <form action="." onsubmit="return bulkMsgAction(this, 'delete');">
11 <table class="messages">
12 <tr>
13 <th>To</th>
14 <th>Subject</th>
15 <th>Sent</th>
16 <th>Received</th>
17 <th><input type="checkbox" onclick="tabMasterCheckClick(this, 'outbox_ids');" /></th>
18 </tr>
19 {% for msg in msgs.object_list %}
20 <tr>
21 <td><a href="{% url 'bio.views.view_profile' msg.receiver.username %}">
22 {{ msg.receiver.username }}</a></td>
23 <td>
24 <a href="#" onclick="msgShow(this, {{ msg.id }}); return false;"
25 class="{% if msg.unread %}unread {% endif %}{% if msg.replied_to %}replied_to{% endif %}">{{ msg.subject }}</a>
26 </td>
27 <td>{{ msg.send_date|date:"M j, Y g:i A" }}</td>
28 <td>{% if msg.unread %}<em>Unread</em>{% else %}{{ msg.read_date|date:"M j, Y g:i A" }}{% endif %}</td>
29 <td><input type="checkbox" name="outbox_ids" value="{{ msg.id }}" /></td>
30 </tr>
31 {% endfor %}
32 <tr><td colspan="5"><input type="submit" value="Delete Checked Messages" /></td></tr>
33 </table>
34 </form>
35 {% include "messages/pagination.html" %}
36 <ul>
37 <li>Messages in <strong>bold</strong> are unread.</li>
38 <li>Messages in <em>italics</em> have been replied to.</li>
39 </ul>
40 {% else %}
41 <p><em>Your Outbox is empty.</em></p>
42 {% endif %}