22 lines
756 B
HTML
22 lines
756 B
HTML
|
{{ template "header.html" . }}
|
||
|
<header>{{ if eq .Data.lock.Name "" }}Lock #{{ .Data.lock.ID }}{{ else }}{{ .Data.lock.Name }}{{ end }}</header>
|
||
|
[ <a href="/locks/{{ .Data.lock.ID }}/edit">rename</a> ]
|
||
|
<br />
|
||
|
<table border="1">
|
||
|
<tr>
|
||
|
<td>Slot</td>
|
||
|
<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.Code }}</td>
|
||
|
<td>{{ if $code.Enabled }}enabled{{ else }}disabled{{ end }}</td>
|
||
|
<td>[ <a href="/locks/{{ $.Data.lock.ID }}/codes/{{ $code.Slot }}">edit</a> ]</td>
|
||
|
</tr>
|
||
|
{{ end }}
|
||
|
</table>
|
||
|
{{ template "footer.html" }}
|