You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1.3 KiB
41 lines
1.3 KiB
2 years ago
|
{% extends "layouts/app.html" %}
|
||
|
{% block title %}{% lisp (title! "list of users") %}{% endblock %}
|
||
|
{% block content %}
|
||
|
<h1>{% lisp (title!) %}</h1>
|
||
|
<form class="search" action="/user/search" accept-charset="UTF=8" method="get">
|
||
|
<input name="utf=8" type="hidden" value="v"/>
|
||
|
<input type="text" name="q" id="q"/>
|
||
|
<input type="submit" name="commit" value="search" data-disable-with="search"/>
|
||
|
</form>
|
||
|
<div class="toolbar"><a href="/user/new">Add a New User</a></div>
|
||
|
{% if users %}
|
||
|
<table class="list">
|
||
|
<thead>
|
||
|
<tr>
|
||
|
<th>Number</th>
|
||
|
<th>Name</th>
|
||
|
<th>Full Name</th>
|
||
|
<th>Operation</th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<tbody>
|
||
|
{% for user in users %}
|
||
|
<tr>
|
||
|
<td style="text-align: right">{{user.number}}</td>
|
||
|
<td><a href="/users/{{user.id}}">{{user.name}}</a></td>
|
||
|
<td>{{user.full-name}}</td>
|
||
|
<td>
|
||
|
<a href="/user/{{user.id}}/edit">Edit</a> |
|
||
|
<a data-confirm="Really delete it?"
|
||
|
rel="nofollow" data-method="delete"
|
||
|
href="/user/{{user.id}}">Delete
|
||
|
</a>
|
||
|
</tr>
|
||
|
{% endfor %}
|
||
|
</tbody>
|
||
|
</table>
|
||
|
{% else %}
|
||
|
<p>There are no accounts on this site.</p>
|
||
|
{% endif %}
|
||
|
{% endblock %}
|