Revision 01ac12d5 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 |
|
|
5 | 3 |
{% block page.body %} |
6 | 4 |
<div class="maincol {% block innerpage.class %}{% endblock %}"> |
7 | 5 |
<table class="zebra-striped id-sorted"> |
8 | 6 |
<tr> |
9 | 7 |
<th>Name: {{object.name}}</th> |
10 | 8 |
</tr> |
9 |
<tr> |
|
10 |
<th>Type: {{object.kind}}</th> |
|
11 |
</tr> |
|
12 |
<tr> |
|
13 |
<th>Issue date: {{object.issue_date}}</th> |
|
14 |
</tr> |
|
15 |
<tr> |
|
16 |
<th>Expiration date: {{object.expiration_date}}</th> |
|
17 |
</tr> |
|
18 |
<tr> |
|
19 |
<th>Owner: {% for o in object.owner.all %} |
|
20 |
{% if user == o %} |
|
21 |
Me! |
|
22 |
{% else%} |
|
23 |
{{o.realname}} ({{o.email}}) |
|
24 |
|
|
25 |
{% endif %} |
|
26 |
{% endfor %} |
|
27 |
</th> |
|
28 |
</tr> |
|
11 | 29 |
</table> |
12 | 30 |
<div class="section"> |
13 | 31 |
<h2>Members:</h2> |
14 |
{% if members %} |
|
32 |
{% if object.members %}
|
|
15 | 33 |
<table class="zebra-striped id-sorted"> |
16 | 34 |
<thead> |
17 | 35 |
<tr> |
36 |
<th>Email</th> |
|
18 | 37 |
<th>Realname</th> |
19 | 38 |
<th>Status</th> |
20 | 39 |
</tr> |
21 | 40 |
</thead> |
22 | 41 |
<tbody> |
23 |
{% for name, approved in members %}
|
|
42 |
{% for m in object.membership_set.all %}
|
|
24 | 43 |
<tr> |
25 |
<td>{{name}}</td> |
|
26 |
<td>{{approved}}</td> |
|
44 |
<td>{{m.person.email}}</td> |
|
45 |
<td>{{m.person.realname}}</td> |
|
46 |
{% if m.person in m.group.owner.all %} |
|
47 |
<td>Owner</td> |
|
48 |
{% else %} |
|
49 |
{% if m.is_approved %} |
|
50 |
<td>Approved</td> |
|
51 |
{% else %} |
|
52 |
<td>Pending</td> |
|
53 |
{% if user in m.group.owner.all %} |
|
54 |
<td><a href="{% url approve_member m.id %}">Approve</a></td> |
|
55 |
<td><a href="{% url disapprove_member m.id %}">Disapprove</a></td> |
|
56 |
{% endif %} |
|
57 |
{% endif %} |
|
58 |
{% endif %} |
|
27 | 59 |
</tr> |
28 | 60 |
{% endfor %} |
29 | 61 |
</tbody> |
... | ... | |
44 | 76 |
</thead> |
45 | 77 |
<tbody> |
46 | 78 |
{% for q in quota %} |
47 |
{% for k in q|dkeys %} |
|
48 | 79 |
<tr> |
49 |
<td>{{k}}</td>
|
|
50 |
<td>{{q|lookup:k}}</td>
|
|
80 |
<td>{{q.resource.name}}</td>
|
|
81 |
<td>{{q.limit}}</td>
|
|
51 | 82 |
</tr> |
52 |
{% endfor %} |
|
53 | 83 |
{% endfor %} |
54 | 84 |
</tbody> |
55 | 85 |
</table> |
Also available in: Unified diff