Revision ffb1e7a8 snf-astakos-app/astakos/im/templates/im/astakosgroup_detail.html

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

  
3
{% load filters %}
4

  
3 5
{% block page.body %}
4 6
<div class="maincol {% block innerpage.class %}{% endblock %}">
5 7
        <table class="zebra-striped id-sorted">
......
10 12
                <th>Type: {{object.kind}}</th>
11 13
              </tr>
12 14
              <tr>
13
                <th>Issue date: {{object.issue_date}}</th>
15
                <th>Issue date: {{object.issue_date|date:"d/m/Y"}}</th>
14 16
              </tr>
15 17
              <tr>
16
                <th>Expiration date: {{object.expiration_date}}</th>
18
                <th>Expiration date: {{object.expiration_date|date:"d/m/Y"}}</th>
17 19
              </tr>
18 20
              <tr>
19 21
                <th>Moderation: {% if object.moderation_enabled%}Yes{% else %}No{% endif %}</th>
......
21 23
              <tr>
22 24
                <th>Owner: {% for o in object.owner.all %}
23 25
                                {% if user == o %}
24
                                    Me!
26
                                    Me
25 27
                                {% else%}
26 28
                                    {{o.realname}} ({{o.email}})
27 29
                                
......
29 31
                            {% endfor %}
30 32
                </th>
31 33
              </tr>
34
              <tr>
35
                <th>Enabled: {% if object.is_enabled %}Yes{% else %}No{% endif %}</th>
36
              </tr>
32 37
        </table>
33 38
    <div class="section">
34 39
        <h2>Members:</h2>
......
54 59
                    {% else %}
55 60
                    <td>Pending</td>
56 61
                        {% if user in m.group.owner.all %}
57
                            <td><a href="{% url approve_member m.id %}">Approve</a></td>
58
                            <td><a href="{% url disapprove_member m.id %}">Disapprove</a></td>
62
                            <td><a href="{% url approve_member m.group.id m.person.id %}">Approve</a></td>
63
                            <td><a href="{% url disapprove_member m.group.id m.person.id  %}">Disapprove</a></td>
59 64
                        {% endif %}
60 65
                    {% endif %}
61 66
                {% endif %}
......
78 83
              </tr>
79 84
            </thead>
80 85
            <tbody>
81
            {% for q in quota %}
86
            {% for k in quota|dkeys %}
82 87
                <tr>
83
                    <td>{{q.resource.name}}</td>
84
                    <td>{{q.limit}}</td>
88
                    <td>{{ k }}</td>
89
                    <td>{{ quota|lookup:k }}</td>
85 90
                  </tr>
86 91
            {% endfor %}
87 92
            </tbody>
......
90 95
            <p>No policies</p>
91 96
        {% endif %}
92 97
    </div>
93
    {% if more_policies %}
98
    {% if user in object.owner.all and more_policies %}
94 99
    <div class="rightcol">
95 100
        <form action="{% url group_policies_add object.id %}" method="post" class="innerlabels signup">{% csrf_token %}
96 101
            <h2><span>NEW POLICY</span></h2>

Also available in: Unified diff