root / snf-astakos-app / astakos / im / templates / im / astakosgroupquota_form.html @ 373daf6a
History | View | Annotate | Download (1.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 |
<div class="section"> |
8 |
<h2>{{group.name}} policies:</h2> |
9 |
{% if quota %} |
10 |
<table class="zebra-striped id-sorted"> |
11 |
<thead>
|
12 |
<tr>
|
13 |
<th>Resource</th> |
14 |
<th>Limit</th> |
15 |
</tr>
|
16 |
</thead>
|
17 |
<tbody>
|
18 |
{% for o in quota %} |
19 |
<tr>
|
20 |
<td>{{o}}</td> |
21 |
<td>{{quota|lookup:o}}</td> |
22 |
</tr>
|
23 |
{% endfor %} |
24 |
</tbody>
|
25 |
</table>
|
26 |
{% else %} |
27 |
<p>No policies</p> |
28 |
{% endif %} |
29 |
</div>
|
30 |
</div>
|
31 |
|
32 |
<div class="rightcol"> |
33 |
<form action="" method="post" class="innerlabels signup">{% csrf_token %} |
34 |
<h2><span>NEW POLICY</span></h2> |
35 |
{% include "im/form_render.html" %} |
36 |
<div class="form-row submit"> |
37 |
<input type="submit" class="submit altcol" value="+" /> |
38 |
<a href="{% url group_approval_request group.id %}">Request approval</a> |
39 |
</div>
|
40 |
</form>
|
41 |
</div>
|
42 |
{% endblock %} |