Add Library Pages
This commit is contained in:
parent
566b9d8667
commit
d6fa1fc97a
5 changed files with 235 additions and 0 deletions
40
tmpl/libraries.tmpl
Normal file
40
tmpl/libraries.tmpl
Normal file
|
@ -0,0 +1,40 @@
|
|||
{{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"}}
|
Loading…
Add table
Add a link
Reference in a new issue