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