lockserver/frontend/lock.html
Finn 426ab872dd
All checks were successful
/ build-container (push) Successful in 9m0s
somewhat improve style
2025-02-23 14:30:56 -08:00

20 lines
772 B
HTML

{{ template "header.html" . }}
<header>{{ if eq .Data.lock.Name "" }}Lock #{{ .Data.lock.ID }}{{ else }}{{ .Data.lock.Name }}{{ end }}</header>
[ <a href="{{ $.BaseURL }}/locks/{{ .Data.lock.ID }}/edit">rename</a> ]<br />
<br />
<span class="table">
<span class="table-row">
<span class="table-cell">Name</span>
<span class="table-cell">Code</span>
</span>
{{ range $_, $code := .Data.codes }}
<a href="{{ $.BaseURL }}/locks/{{ $.Data.lock.ID }}/codes/{{ $code.Slot }}" class="table-row code-{{ if $code.Enabled }}enabled{{ else }}disabled{{ end }}">
<span class="table-cell">{{ $code.Name }}</span>
<span class="table-cell">{{ $code.Code }}</span>
</a>
{{ end }}
</span>
<br /><br />
{{ template "footer.html" }}