root / snf-astakos-app / astakos / im / templates / im / invitations.html @ 0f4a8a68
History | View | Annotate | Download (1.4 kB)
1 |
{% extends "im/account_base.html" %} |
---|---|
2 |
|
3 |
{% block page.body %} |
4 |
<div class="two-cols clearfix"> |
5 |
<div class="rt"> |
6 |
{% if inviter.invitations %} |
7 |
<form action="{% url astakos.im.views.invite %}" method="post" |
8 |
class="innerlabels">{% csrf_token %} |
9 |
<h2>INVITE SOMEONE ELSE</h2> |
10 |
{% with invitation_form as form %} |
11 |
{% include "im/form_render.html" %} |
12 |
{% endwith %} |
13 |
|
14 |
<div class="form-row submit"> |
15 |
<input type="submit" class="submit altcol" value="SEND" /> |
16 |
</div>
|
17 |
</form>
|
18 |
{% endif %} |
19 |
</div>
|
20 |
<div class="lt {% block innerpage.class %}{% endblock %}"> |
21 |
|
22 |
<h2>You have <em>{{ inviter.invitations }}</em> invitation{{ inviter.invitations|pluralize }} left.</h2> |
23 |
{% if sent|length %} |
24 |
<table class="zebra-striped id-sorted"> |
25 |
<thead>
|
26 |
<tr>
|
27 |
<th>Email</th> |
28 |
<th>Real Name</th> |
29 |
<th>Used</th> |
30 |
</tr>
|
31 |
</thead>
|
32 |
<tbody>
|
33 |
{% for inv in sent %} |
34 |
<tr class="{% if inv.is_consumed %}used{% endif %}"> |
35 |
<td>{{ inv.email }}</td> |
36 |
<td>{{ inv.realname }}</td> |
37 |
<td class="consumed">{% if inv.is_consumed %}Yes{% else %}No{% endif %}</td> |
38 |
</tr>
|
39 |
{% endfor %} |
40 |
</tbody>
|
41 |
</table>
|
42 |
{% else %} |
43 |
<p>No invitations sent</p> |
44 |
{% endif %} |
45 |
</div>
|
46 |
</div>
|
47 |
|
48 |
|
49 |
{% endblock %} |
50 |
|