Initial commit. Move from pithos repository.
[astakos] / astakos / im / templates / users_list.html
1 {% extends "admin_base.html" %}
2
3 {% load formatters %}
4
5 {% block body %}
6
7 <div class="row">
8   <div class="offset10 span3">
9     <form method="get">
10       <div class="input">
11         <input class="span3" name="filter" type="search" placeholder="search" value="{{ filter }}">
12       </div>
13     </form>
14   </div>
15 </div>
16
17 <table class="zebra-striped id-sorted">
18   <thead>
19     <tr>
20       <th>ID</th>
21       <th>Uniq</th>
22       <th>Real Name</th>
23       <th>Admin</th>
24       <th>Affiliation</th>
25       <th>State</th>
26       <th>Quota</th>
27       <th>Updated</th>
28     </tr>
29   </thead>
30   <tbody>
31     {% for user in users %}
32     <tr>
33       <td><a href="{% url astakos.im.views.users_info user.id %}">{{ user.id }}</a></td>
34       <td><a href="{% url astakos.im.views.users_info user.id %}">{{ user.uniq }}</a></td>
35       <td>{{ user.realname }}</td>
36       <td>{{ user.is_admin }}</td>
37       <td>{{ user.affiliation }}</td>
38       <td>{{ user.state }}</td>
39       <td>{{ user.quota|GiB }} GiB</td>
40       <td>{{ user.updated }}</td>
41     </tr>
42     {% endfor %}
43   </tbody>
44 </table>
45
46 {% if pages|length > 1 %}
47 <div class="pagination">
48   <ul>
49     {% if prev %}
50       <li class="prev"><a href="?page={{ prev }}{% if filter %}&filter={{ filter }}{% endif %}">&larr; Previous</a></li>
51     {% else %}
52       <li class="prev disabled"><a href="#">&larr; Previous</a></li>
53     {% endif %}
54
55     {% for p in pages %}
56       <li{% if page == p %} class="active"{% endif %}><a href="?page={{ p }}{% if filter %}&filter={{ filter }}{% endif %}">{{ p }}</a></li>
57     {% endfor %}
58
59     {% if next %}
60       <li class="next"><a href="?page={{ next }}{% if filter %}&filter={{ filter }}{% endif %}">&rarr; Next</a></li>
61     {% else %}
62       <li class="next disabled"><a href="#">&rarr; Next</a></li>
63     {% endif %}
64   </ul>
65 </div>
66 {% endif %}
67
68 <a class="btn success" href="{% url astakos.im.views.users_create %}">Create a user</a>
69 <a class="btn success" href="{% url astakos.im.views.users_export %}">Export</a>
70
71 <br /><br />
72 {% endblock body %}