Statistics
| Branch: | Tag: | Revision:

root / snf-astakos-app / astakos / im / templates / im / invitations.html @ 279d6e51

History | View | Annotate | Download (1.4 kB)

1 1e685275 Sofia Papagiannaki
{% extends "im/account_base.html" %}
2 890b0eaf Sofia Papagiannaki
3 35a62b9d Kostas Papadimitriou
{% block page.body %}
4 792c2f3b Olga Brani
<div class="full  clearfix">
5 0c887794 Olga Brani
        <div class="lt-div">
6 0c887794 Olga Brani
                <p>Invite someone else</p>
7 0c887794 Olga Brani
        </div>
8 0c887794 Olga Brani
         
9 0f4a8a68 Olga Brani
         {% if inviter.invitations %}
10 0f4a8a68 Olga Brani
          <form action="{% url astakos.im.views.invite %}" method="post"
11 0c887794 Olga Brani
            class="innerlabels overflow-hidden">{% csrf_token %}
12 0c887794 Olga Brani
        
13 0f4a8a68 Olga Brani
            {% with invitation_form as form %}
14 0c887794 Olga Brani
                    {% include "im/form_render.html" %}
15 0f4a8a68 Olga Brani
            {% endwith %}
16 0f4a8a68 Olga Brani
        
17 0f4a8a68 Olga Brani
            <div class="form-row submit">
18 c8977d75 Olga Brani
                <input type="submit" class="submit altcol" value="INVITE" />
19 0f4a8a68 Olga Brani
            </div>
20 0f4a8a68 Olga Brani
          </form>
21 0f4a8a68 Olga Brani
          {% endif %}
22 0c887794 Olga Brani
         
23 35a62b9d Kostas Papadimitriou
</div>
24 0c887794 Olga Brani
 
25 792c2f3b Olga Brani
        <div class="full full-dotted">
26 0f4a8a68 Olga Brani
            
27 0f4a8a68 Olga Brani
            <h2>You have <em>{{ inviter.invitations }}</em> invitation{{ inviter.invitations|pluralize }} left.</h2>
28 0f4a8a68 Olga Brani
            {% if sent|length %}
29 c8977d75 Olga Brani
              <table class="alt-style">
30 0f4a8a68 Olga Brani
                <thead>
31 0f4a8a68 Olga Brani
                  <tr>
32 0f4a8a68 Olga Brani
                    <th>Email</th>
33 0f4a8a68 Olga Brani
                    <th>Real Name</th>
34 0f4a8a68 Olga Brani
                    <th>Used</th>
35 0f4a8a68 Olga Brani
                  </tr>
36 0f4a8a68 Olga Brani
                </thead>
37 0f4a8a68 Olga Brani
                <tbody>
38 0f4a8a68 Olga Brani
                  {% for inv in sent %}
39 0f4a8a68 Olga Brani
                  <tr class="{% if inv.is_consumed %}used{% endif %}">
40 0f4a8a68 Olga Brani
                    <td>{{ inv.email }}</td>
41 0f4a8a68 Olga Brani
                    <td>{{ inv.realname }}</td>
42 0f4a8a68 Olga Brani
                    <td class="consumed">{% if inv.is_consumed %}Yes{% else %}No{% endif %}</td>
43 0f4a8a68 Olga Brani
                  </tr>
44 0f4a8a68 Olga Brani
                  {% endfor %}
45 0f4a8a68 Olga Brani
                </tbody>
46 0f4a8a68 Olga Brani
            </table>
47 0f4a8a68 Olga Brani
            {% else %}
48 0f4a8a68 Olga Brani
                <p>No invitations sent</p>
49 0f4a8a68 Olga Brani
            {% endif %}
50 0f4a8a68 Olga Brani
        </div>     
51 0c887794 Olga Brani
52 64cd4730 Antony Chazapis
53 35a62b9d Kostas Papadimitriou
54 c8977d75 Olga Brani
{% endblock %}