Statistics
| Branch: | Tag: | Revision:

root / pithos / im / templates / users_list.html @ 7e392d16

History | View | Annotate | Download (1.8 kB)

1
{% extends "base.html" %}
2

    
3
{% block body %}
4

    
5
<div class="row">
6
  <div class="offset10 span3">
7
    <form method="get">
8
      <div class="input">
9
        <input class="span3" name="filter" type="search" placeholder="search" value="{{ filter }}">
10
      </div>
11
    </form>
12
  </div>
13
</div>
14

    
15
<table class="zebra-striped id-sorted">
16
  <thead>
17
    <tr>
18
      <th>ID</th>
19
      <th>Uniq</th>
20
      <th>Real Name</th>
21
      <th>Admin</th>
22
      <th>Affiliation</th>
23
      <th>Quota</th>
24
      <th>Updated</th>
25
    </tr>
26
  </thead>
27
  <tbody>
28
    {% for user in users %}
29
    <tr>
30
      <td><a href="{% url im.views.users_info user.id %}">{{ user.id }}</a></td>
31
      <td><a href="{% url im.views.users_info user.id %}">{{ user.uniq }}</a></td>
32
      <td>{{ user.realname }}</td>
33
      <td>{{ user.is_admin }}</td>
34
      <td>{{ user.affiliation }}</td>
35
      <td>{{ user.quota }}</td>
36
      <td>{{ user.updated }}</td>
37
    </tr>
38
    {% endfor %}
39
  </tbody>
40
</table>
41

    
42
{% if pages|length > 1 %}
43
<div class="pagination">
44
  <ul>
45
    {% if prev %}
46
      <li class="prev"><a href="?page={{ prev }}{% if filter %}&filter={{ filter }}{% endif %}">&larr; Previous</a></li>
47
    {% else %}
48
      <li class="prev disabled"><a href="#">&larr; Previous</a></li>
49
    {% endif %}
50

    
51
    {% for p in pages %}
52
      <li{% if  == p %} class="active"{% endif %}><a href="?page={{ p }}{% if filter %}&filter={{ filter }}{% endif %}">{{ p }}</a></li>
53
    {% endfor %}
54

    
55
    {% if next %}
56
      <li class="next"><a href="?page={{ next }}{% if filter %}&filter={{ filter }}{% endif %}">&rarr; Next</a></li>
57
    {% else %}
58
      <li class="next disabled"><a href="#">&rarr; Next</a></li>
59
    {% endif %}
60
  </ul>
61
</div>
62
{% endif %}
63

    
64
<a class="btn success" href="{% url im.views.users_create %}">Create a user</a>
65
<br /><br />
66
{% endblock body %}