File: change_list.html

package info (click to toggle)
qdjango 0.2.5-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 2,144 kB
  • sloc: cpp: 6,085; perl: 104; makefile: 6
file content (28 lines) | stat: -rw-r--r-- 767 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{% include "header.html" %}
<ul class="object-tools">
    <li><a href="add/">{{ add_link }}</a></li>
</ul>

<div class="module">
    <table width="100%">
        <tr>
{% for field in field_list %}
            <th>{{ field.name }}</th>
{% endfor %}
        </tr>
{% for object in object_list %}
        <tr id="{{ forloop.counter }}">
{% if model_name == "user" %}
            <td><a href="{{ object.pk }}/">{{ object.username }}</a></td>
            <td>{{ object.email }}</td>
            <td>{{ object.first_name }}</td>
            <td>{{ object.last_name }}</td>
{% endif %}
{% if model_name == "group" %}
            <td><a href="{{ object.pk }}/">{{ object.name }}</a></td>
{% endif %}
        </tr>
{% endfor %}
    </table>
</div>
{% include "footer.html" %}