Statistics
| Branch: | Tag: | Revision:

root / astakos / im / templates / invitations.html @ a196eb7e

History | View | Annotate | Download (1.3 kB)

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

    
3
{% load formatters %}
4

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

    
28
  {% if user.invitations %}
29
  <br />
30
  <h4>Invite someone else:</h4>
31
  <form action="{% url astakos.im.views.invite %}" method="post">{% csrf_token %}
32
    <div class="clearfix">
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="actions">
47
      <button type="reset" class="btn">Reset</button>
48
      <button type="submit" class="btn primary">Invite</button>
49
    </div>
50
  </form>
51
  {% endif %}
52
{% endblock body %}