Revision 0f4a8a68 snf-astakos-app/astakos/im/templates/im/invitations.html

b/snf-astakos-app/astakos/im/templates/im/invitations.html
1 1
{% extends "im/account_base.html" %}
2 2

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

  
32
<div class="rightcol">
33
 {% if inviter.invitations %}
34
  <form action="{% url astakos.im.views.invite %}" method="post"
35
    class="innerlabels">{% csrf_token %}
36
    <h2>INVITE SOMEONE ELSE</h2>
37
    {% with invitation_form as form %}
38
    {% include "im/form_render.html" %}
39
    {% endwith %}
40 48

  
41
    <div class="form-row submit">
42
        <input type="submit" class="submit altcol" value="SEND" />
43
    </div>
44
  </form>
45
  {% endif %}
46
</div>
47 49
{% endblock %}
48 50

  

Also available in: Unified diff