Statistics
| Branch: | Tag: | Revision:

root / snf-astakos-app / astakos / im / templates / im / invitations.html @ 49a1289d

History | View | Annotate | Download (1.4 kB)

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

    
3
{% block page.body %}
4
<div class="full bottom-bordered clearfix">
5
        <div class="lt-div">
6
                <p>Invite someone else</p>
7
        </div>
8
         
9
         {% if inviter.invitations %}
10
          <form action="{% url astakos.im.views.invite %}" method="post"
11
            class="innerlabels overflow-hidden">{% csrf_token %}
12
        
13
            {% with invitation_form as form %}
14
                    {% include "im/form_render.html" %}
15
            {% endwith %}
16
        
17
            <div class="form-row submit">
18
                <input type="submit" class="submit altcol" value="SEND" />
19
            </div>
20
          </form>
21
          {% endif %}
22
         
23
</div>
24
 
25
        <div class="full {% block innerpage.class %}{% endblock %}">
26
            
27
            <h2>You have <em>{{ inviter.invitations }}</em> invitation{{ inviter.invitations|pluralize }} left.</h2>
28
            {% if sent|length %}
29
              <table class="zebra-striped id-sorted">
30
                <thead>
31
                  <tr>
32
                    <th>Email</th>
33
                    <th>Real Name</th>
34
                    <th>Used</th>
35
                  </tr>
36
                </thead>
37
                <tbody>
38
                  {% for inv in sent %}
39
                  <tr class="{% if inv.is_consumed %}used{% endif %}">
40
                    <td>{{ inv.email }}</td>
41
                    <td>{{ inv.realname }}</td>
42
                    <td class="consumed">{% if inv.is_consumed %}Yes{% else %}No{% endif %}</td>
43
                  </tr>
44
                  {% endfor %}
45
                </tbody>
46
            </table>
47
            {% else %}
48
                <p>No invitations sent</p>
49
            {% endif %}
50
        </div>     
51

    
52

    
53

    
54
{% endblock %}
55