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.5 KiB
41 lines
1.5 KiB
{% extends "layouts/app.html" %} |
|
{% block title %}{% lisp (title! "list of users") %}{% endblock %} |
|
{% block content %} |
|
<h1>{% lisp (title!) %}</h1> |
|
<form class="search" action="/users/search" accept-charset="UTF=8" method="get"> |
|
<input name="utf=8" type="hidden" value="{{token}}"/> |
|
<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="/users/{{user.id}}/edit">Edit</a> | |
|
<form action="/account/{{user.id}}" method="post"> |
|
<input type="hidden" name="_method" value="delete"> |
|
<input type="hidden" name="authenticity-token" value="{{token}}"> |
|
<input type="submit" value="Delete {{user.id}}"> |
|
</form> |
|
</tr> |
|
{% endfor %} |
|
</tbody> |
|
</table> |
|
{% else %} |
|
<p>There are no accounts on this site.</p> |
|
{% endif %} |
|
{% endblock %}
|
|
|