Statistics
| Branch: | Tag: | Revision:

root / snf-astakos-app / astakos / im / templates / im / invitations.html @ 09122dd8

History | View | Annotate | Download (1.7 kB)

1 1e685275 Sofia Papagiannaki
{% extends "im/account_base.html" %}
2 890b0eaf Sofia Papagiannaki
3 890b0eaf Sofia Papagiannaki
{% load formatters %}
4 890b0eaf Sofia Papagiannaki
5 35a62b9d Kostas Papadimitriou
{% block page.body %}
6 35a62b9d Kostas Papadimitriou
<div class="maincol {% block innerpage.class %}{% endblock %}">
7 35a62b9d Kostas Papadimitriou
    <div class="section">
8 35a62b9d Kostas Papadimitriou
        <h2>You have <em>{{ inviter.invitations }}</em> invitation{{ inviter.invitations|pluralize }} left.</h2>
9 35a62b9d Kostas Papadimitriou
        {% if sent|length %}
10 35a62b9d Kostas Papadimitriou
          <table class="zebra-striped id-sorted">
11 35a62b9d Kostas Papadimitriou
            <thead>
12 35a62b9d Kostas Papadimitriou
              <tr>
13 35a62b9d Kostas Papadimitriou
                <th>Email</th>
14 35a62b9d Kostas Papadimitriou
                <th>Real Name</th>
15 1fefe48c Sofia Papagiannaki
                <th>Used</th>
16 35a62b9d Kostas Papadimitriou
              </tr>
17 35a62b9d Kostas Papadimitriou
            </thead>
18 35a62b9d Kostas Papadimitriou
            <tbody>
19 35a62b9d Kostas Papadimitriou
              {% for inv in sent %}
20 1fefe48c Sofia Papagiannaki
              <tr class="{% if inv.is_consumed %}used{% endif %}">
21 35a62b9d Kostas Papadimitriou
                <td>{{ inv.email }}</td>
22 35a62b9d Kostas Papadimitriou
                <td>{{ inv.realname }}</td>
23 1bfd767d Kostas Papadimitriou
                <td class="consumed">{% if inv.is_consumed %}Yes{% else %}No{% endif %}</td>
24 35a62b9d Kostas Papadimitriou
              </tr>
25 35a62b9d Kostas Papadimitriou
              {% endfor %}
26 35a62b9d Kostas Papadimitriou
            </tbody>
27 35a62b9d Kostas Papadimitriou
        </table>
28 35a62b9d Kostas Papadimitriou
        {% else %}
29 35a62b9d Kostas Papadimitriou
            <p>No invitations sent</p>
30 35a62b9d Kostas Papadimitriou
        {% endif %}
31 35a62b9d Kostas Papadimitriou
    </div>
32 35a62b9d Kostas Papadimitriou
</div>
33 64cd4730 Antony Chazapis
34 35a62b9d Kostas Papadimitriou
<div class="rightcol">
35 4b100dbb Kostas Papadimitriou
 {% if inviter.invitations %}
36 13858d75 Kostas Papadimitriou
  <form action="{% url astakos.im.views.invite %}" method="post"
37 35a62b9d Kostas Papadimitriou
    class="innerlabels">{% csrf_token %}
38 35a62b9d Kostas Papadimitriou
    <h2>INVITE SOMEONE ELSE</h2>
39 35a62b9d Kostas Papadimitriou
    <div class="form-row">
40 64cd4730 Antony Chazapis
      <label for="user-realname">Name</label>
41 64cd4730 Antony Chazapis
      <div class="input">
42 35a62b9d Kostas Papadimitriou
        <input type="text" class="text" id="user-realname" name="realname" />
43 64cd4730 Antony Chazapis
      </div>
44 64cd4730 Antony Chazapis
    </div>
45 64cd4730 Antony Chazapis
46 35a62b9d Kostas Papadimitriou
    <div class="form-row">
47 64cd4730 Antony Chazapis
      <label for="user-uniq">Email</label>
48 64cd4730 Antony Chazapis
      <div class="input">
49 35a62b9d Kostas Papadimitriou
        <input type="text" class="text" id="user-uniq" name="uniq" />
50 64cd4730 Antony Chazapis
      </div>
51 64cd4730 Antony Chazapis
    </div>
52 64cd4730 Antony Chazapis
53 13858d75 Kostas Papadimitriou
    <div class="form-row submit">
54 35a62b9d Kostas Papadimitriou
        <input type="submit" class="submit altcol" value="SEND" />
55 64cd4730 Antony Chazapis
    </div>
56 64cd4730 Antony Chazapis
  </form>
57 64cd4730 Antony Chazapis
  {% endif %}
58 35a62b9d Kostas Papadimitriou
</div>
59 35a62b9d Kostas Papadimitriou
{% endblock %}