A website built in Common Lisp using Caveman2 as its framework. It is based on a collection of tutorials written by hyotang666. Those tutorials are based on chapters from the book 'Basic Ruby on Rails'. hyotang666 ported the Ruby code to Common Lisp.
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.
 
 
 
 

40 lines
1.3 KiB

{% 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 %}