morffix/tmpl/libraries.tmpl
2024-05-05 01:31:45 +02:00

40 lines
No EOL
942 B
Cheetah

{{template "head"}}
<h2>Libraries</h2>
<div class="library-list">
<table>
<tr>
<th>ID</th>
<th>Name</th>
<th>Path</th>
<th>Enable</th>
</tr>
{{range $l := .Libraries}}
<tr onclick="window.location='/libraries/{{ $l.ID }}';">
<td>
{{ $l.ID }}
</td>
<td>
{{ $l.Name }}
</td>
<td>
{{ $l.Path }}
</td>
<td>
{{ $l.Enable }}
</td>
</tr>
{{end}}
</table>
</div>
<h2>New Library</h2>
<form method="POST">
<label>Name:</label><br />
<input type="text" name="name"><br />
<label>Path:</label><br />
<input type="text" name="path"><br />
<label>Enable:</label><br />
<input type="checkbox" name="enable"><br />
<input type="submit">
</form>
{{template "tail"}}