lockserver/frontend/lock.html

27 lines
866 B
HTML
Raw Normal View History

2024-11-23 05:15:21 +00:00
{{ template "header.html" . }}
<header>{{ if eq .Data.lock.Name "" }}Lock #{{ .Data.lock.ID }}{{ else }}{{ .Data.lock.Name }}{{ end }}</header>
2024-11-23 09:50:46 +00:00
[ <a href="{{ $.BaseURL }}/locks/{{ .Data.lock.ID }}/edit">rename</a> ]<br />
2024-11-23 05:15:21 +00:00
<br />
2024-11-25 00:21:08 +00:00
<table class="table">
2024-11-23 05:15:21 +00:00
<tr>
<td>Slot</td>
<td>Name</td>
2024-11-23 05:15:21 +00:00
<td>Code</td>
<td>Enabled?</td>
<td>Actions</td>
</tr>
{{ range $_, $code := .Data.codes }}
<tr class="code-{{ if $code.Enabled }}enabled{{ else }}disabled{{ end }}">
<td>{{ $code.Slot }}</td>
<td>{{ $code.Name }}</td>
2024-11-23 05:15:21 +00:00
<td>{{ $code.Code }}</td>
<td>{{ if $code.Enabled }}enabled{{ else }}disabled{{ end }}</td>
2024-11-23 09:50:46 +00:00
<td>[ <a href="{{ $.BaseURL }}/locks/{{ $.Data.lock.ID }}/codes/{{ $code.Slot }}">edit</a> ]</td>
2024-11-23 05:15:21 +00:00
</tr>
{{ end }}
</table>
2024-11-25 00:08:06 +00:00
<br /><br />
2024-11-23 05:15:21 +00:00
{{ template "footer.html" }}