Lots of changes

This commit is contained in:
2023-12-02 22:16:16 -05:00
parent 16704aeeb1
commit c5df026d04
16 changed files with 135 additions and 122 deletions

27
templates/test/list.tmpl Normal file
View File

@ -0,0 +1,27 @@
{{ template "header" . }}
<div class="row">
<h2>Tests</h2>
<a href="/test/create">Create a new test</a>
<table class="twelve columns">
<thead>
<tr>
<td>Title</td>
<td>Created at</td>
<td>Last updated</td>
</tr>
</thead>
<tbody>
{{ range $p := .tests }}
<tr>
<td><a href="/test/{{ $p.ID }}">{{ $p.Name }}</a></td>
<td>{{ $p.CreatedAt.Format "01/02/2006 15:04am" }}</td>
<td>{{ $p.UpdatedAt.Format "01/02/2006 15:04am" }}</td>
</tr>
{{ end }}
</tbody>
</table>
</div>
{{ template "footer" . }}