26 lines
1.1 KiB
HTML
26 lines
1.1 KiB
HTML
{% extends "base.html" %}
|
|
|
|
{% block title %} Administration {% endblock %}
|
|
|
|
{% block titre %}Administration : users {% endblock %}
|
|
|
|
{% block contenu %}
|
|
<div id="zone-de-contenu">
|
|
<fieldset class="fieldset" ><legend style="font-size:25px;">Add user</legend>
|
|
<button id="add" onclick="javascript:go('/admin/users/new')">
|
|
<img src="/static/plus.png" style="float:left;" alt=''/><div style="float:right; margin:5px;">New user</div>
|
|
</button>
|
|
</fieldset>
|
|
<fieldset class="fieldset"><legend style="font-size:25px;">List of users</legend>
|
|
<table width=100%>
|
|
<thead>
|
|
<tr><td>Login</td><td>Name</td><td>Level</td><td>Actions</td></tr>
|
|
</thead>
|
|
{% for u in users %}
|
|
<tr><td><a href="/d/{{u.login}}">{{ u.login }}</a></td><td>{{ u.name }}</td><td>{{ u.is_admin }}</td><td><a href="/admin/users/{{ u.login }}"><img src="/static/edit.png" alt="Edit" /></a> <a href="/admin/users/{{ u.login }}/del"><img src="/static/croix.png" alt="Del" /></a></td></tr>
|
|
{% endfor %}
|
|
</table>
|
|
</fieldset>
|
|
</div>
|
|
{% endblock %}
|