Statistics
| Branch: | Tag: | Revision:

root / astakos / im / templates / invitations.html @ 13858d75

History | View | Annotate | Download (1.3 kB)

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

    
3
{% load formatters %}
4

    
5
{% block body %}
6
  <h3>You have {{ user.invitations }} invitation{{ user.invitations|pluralize }} left.</h3>
7
  
8
  <table class="zebra-striped id-sorted">
9
    <thead>
10
      <tr>
11
        <th>Email</th>
12
        <th>Real Name</th>
13
        <th>Consumed</th>
14
      </tr>
15
    </thead>
16
    <tbody>
17
      {% for inv in sent %}
18
      <tr>
19
        <td>{{ inv.email }}</td>
20
        <td>{{ inv.realname }} GiB</td>
21
        <td>{{ inv.is_consumed }}</td>
22
      </tr>
23
      {% endfor %}
24
    </tbody>
25
  </table>
26

    
27
  {% if user.invitations %}
28
  <br />
29
  <h4>Invite someone else:</h4>
30
  <form action="{% url astakos.im.views.invite %}" method="post"
31
    class="withlabels">{% csrf_token %}
32
    <div class="clearfix f">
33
      <label for="user-realname">Name</label>
34
      <div class="input">
35
        <input type="text" class="span4" id="user-realname" name="realname" />
36
      </div>
37
    </div>
38

    
39
    <div class="clearfix">
40
      <label for="user-uniq">Email</label>
41
      <div class="input">
42
        <input type="text" class="span4" id="user-uniq" name="uniq" />
43
      </div>
44
    </div>
45

    
46
    <div class="form-row submit">
47
        <input type="submit" class="submit altcol" value="INVITE" />
48
    </div>
49
  </form>
50
  {% endif %}
51
{% endblock body %}