Statistics
| Branch: | Tag: | Revision:

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

History | View | Annotate | Download (1.7 kB)

1
{% extends "im/account_base.html" %}
2

    
3
{% load formatters %}
4

    
5
{% block page.body %}
6
<div class="maincol {% block innerpage.class %}{% endblock %}">
7
    <div class="section">
8
        <h2>You have <em>{{ inviter.invitations }}</em> invitation{{ inviter.invitations|pluralize }} left.</h2>
9
        {% if sent|length %}
10
          <table class="zebra-striped id-sorted">
11
            <thead>
12
              <tr>
13
                <th>Email</th>
14
                <th>Real Name</th>
15
                <th>Used</th>
16
              </tr>
17
            </thead>
18
            <tbody>
19
              {% for inv in sent %}
20
              <tr class="{% if inv.is_consumed %}used{% endif %}">
21
                <td>{{ inv.email }}</td>
22
                <td>{{ inv.realname }}</td>
23
                <td class="consumed">{% if inv.is_consumed %}Yes{% else %}No{% endif %}</td>
24
              </tr>
25
              {% endfor %}
26
            </tbody>
27
        </table>
28
        {% else %}
29
            <p>No invitations sent</p>
30
        {% endif %}
31
    </div>
32
</div>
33

    
34
<div class="rightcol">
35
 {% if inviter.invitations %}
36
  <form action="{% url astakos.im.views.invite %}" method="post"
37
    class="innerlabels">{% csrf_token %}
38
    <h2>INVITE SOMEONE ELSE</h2>
39
    <div class="form-row">
40
      <label for="user-realname">Name</label>
41
      <div class="input">
42
        <input type="text" class="text" id="user-realname" name="realname" />
43
      </div>
44
    </div>
45

    
46
    <div class="form-row">
47
      <label for="user-uniq">Email</label>
48
      <div class="input">
49
        <input type="text" class="text" id="user-uniq" name="uniq" />
50
      </div>
51
    </div>
52

    
53
    <div class="form-row submit">
54
        <input type="submit" class="submit altcol" value="SEND" />
55
    </div>
56
  </form>
57
  {% endif %}
58
</div>
59
{% endblock %}
60