Statistics
| Branch: | Tag: | Revision:

root / snf-astakos-app / astakos / im / templates / im / astakosuserquota_list.html @ 9eafaa32

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
        <form action="" method="post"
9
                    class="withlabels">{% csrf_token %}
10
                    {% include "im/form_render.html" %}
11
            </form>
12
            <table>
13
            {% for q in object_list %}
14
                {% if q.group.is_enabled %}
15
                    <tr>
16
                        <td>{{ q.uplimit }}</td><td>({{ q.group }})</td>
17
                    </tr>
18
                {% endif %}
19
            {% endfor %}
20
            {% if form.cleaned_data %}
21
            {% with form.cleaned_data|lookup:'resource' as resource %}
22
                {% if resource %}
23
                    {% for q in user.astakosuserquota_set.all %}
24
                        {% if q.resource == resource %}
25
                        <tr>
26
                            <td>{{ q.uplimit }}</td><td>(assigned to me)</td>
27
                        </tr>
28
                        {% endif %}
29
                    {% endfor %}
30
                        <tr>
31
                            <td>{{ user.quota|lookup:resource }}</td><td>(total)</td>
32
                        </tr>
33
                {% endif %}
34
            {% endwith %}
35
        {% endif %}
36
            </table>
37
    </div>
38
</div>
39
{% endblock %}