Revision 373daf6a snf-astakos-app/astakos/im/templates/im/astakosgroup_detail.html

b/snf-astakos-app/astakos/im/templates/im/astakosgroup_detail.html
7 7
        <table class="zebra-striped id-sorted">
8 8
              <tr>
9 9
                <th>Name: {{object.name}}</th>
10
              </tr> 
10
              </tr>
11
        </table>
12
    <div class="section">
13
        <h2>Members:</h2>
14
        {% if members %}
15
          <table class="zebra-striped id-sorted">
16
            <thead>
17
              <tr>
18
                <th>Realname</th>
19
                <th>Status</th>
20
              </tr>
21
            </thead>
22
            <tbody>
23
            {% for name, approved in members %}
11 24
              <tr>
12
                <th>Members: {{object.membership.all}}</th>
25
                <td>{{name}}</td>
26
                <td>{{approved}}</td>
13 27
              </tr>
28
            {% endfor %}
29
            </tbody>
14 30
        </table>
15
        <div class="section">
31
        {% else %}
32
            <p>No members yet!</p>
33
        {% endif %}
34
    </div>
35
    <div class="section">
16 36
        <h2>Policies:</h2>
17 37
        {% if quota %}
18 38
          <table class="zebra-striped id-sorted">
......
35 55
            <p>No policies</p>
36 56
        {% endif %}
37 57
    </div>
58
    <div class="rightcol">
59
    <form action="{% url group_policies_add object.id %}" method="post" class="innerlabels signup">{% csrf_token %}
60
        <h2><span>NEW POLICY</span></h2>
61
            {% include "im/form_render.html" %}
62
            <div class="form-row submit">
63
                <input type="submit" class="submit altcol" value="+" />
64
            </div>
65
    </form>
66
</div>
38 67
</div>
39 68
{% endblock %}

Also available in: Unified diff