root / snf-astakos-app / astakos / im / templates / im / astakosgroup_detail.html @ d68590fd
History | View | Annotate | Download (2 kB)
1 |
{% extends "im/account_base.html" %} |
---|---|
2 |
|
3 |
{% load filters %} |
4 |
|
5 |
{% block page.body %} |
6 |
<div class="maincol {% block innerpage.class %}{% endblock %}"> |
7 |
<table class="zebra-striped id-sorted"> |
8 |
<tr>
|
9 |
<th>Name: {{object.name}}</th> |
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 %} |
24 |
<tr>
|
25 |
<td>{{name}}</td> |
26 |
<td>{{approved}}</td> |
27 |
</tr>
|
28 |
{% endfor %} |
29 |
</tbody>
|
30 |
</table>
|
31 |
{% else %} |
32 |
<p>No members yet!</p> |
33 |
{% endif %} |
34 |
</div>
|
35 |
<div class="section"> |
36 |
<h2>Policies:</h2> |
37 |
{% if quota %} |
38 |
<table class="zebra-striped id-sorted"> |
39 |
<thead>
|
40 |
<tr>
|
41 |
<th>Resource</th> |
42 |
<th>Limit</th> |
43 |
</tr>
|
44 |
</thead>
|
45 |
<tbody>
|
46 |
{% for q in quota %} |
47 |
{% for k in q|dkeys %} |
48 |
<tr>
|
49 |
<td>{{k}}</td> |
50 |
<td>{{q|lookup:k}}</td> |
51 |
</tr>
|
52 |
{% endfor %} |
53 |
{% endfor %} |
54 |
</tbody>
|
55 |
</table>
|
56 |
{% else %} |
57 |
<p>No policies</p> |
58 |
{% endif %} |
59 |
</div>
|
60 |
{% if more_policies %} |
61 |
<div class="rightcol"> |
62 |
<form action="{% url group_policies_add object.id %}" method="post" class="innerlabels signup">{% csrf_token %} |
63 |
<h2><span>NEW POLICY</span></h2> |
64 |
{% include "im/form_render.html" %} |
65 |
<div class="form-row submit"> |
66 |
<input type="submit" class="submit altcol" value="+" /> |
67 |
</div>
|
68 |
</form>
|
69 |
</div>
|
70 |
{% endif %} |
71 |
</div>
|
72 |
{% endblock %} |