go-watch/templates/index.html
2022-07-25 18:43:12 +00:00

25 lines
No EOL
753 B
HTML

{{define "content"}}
<table class="table table-striped table-hover">
<thead class="table-dark">
<tr>
<th>Name</th>
<th>Interval</th>
<th></th>
</tr>
</thead>
<tbody>
{{ range . }}
<tr class="pointer" onclick="window.location='/watch/view/{{ .ID }}'">
<td class="h3">{{ .Name }}</td>
<td class="h3">{{ .Interval }}</td>
<td>
<form action="/query/delete" method="post">
<input type="hidden" name="id" value="{{ .ID }}">
<input type="submit" class="btn btn-danger" value="Delete">
</form>
</td>
</tr>
{{ end }}
</tbody>
</table>
{{end}}