lockserver/frontend/lock-code-edit.html

19 lines
713 B
HTML
Raw Normal View History

2024-11-23 05:15:21 +00:00
{{ template "header.html" . }}
2024-11-23 07:12:26 +00:00
<header>{{ if eq .Data.lock.Name "" }}Lock #{{ .Data.lock.ID }}{{ else }}{{ .Data.lock.Name }}{{ end }} Slot #{{ .Data.code.Slot }}</header>
<br />
2024-11-23 05:15:21 +00:00
<form method="post">
2024-11-23 07:12:26 +00:00
Code: <input type="text" name="code" value="{{ .Data.code.Code }}" /><br />
Name: <input type="text" name="name" value="{{ .Data.code.Name }}" /><br />
Enabled: <input type="checkbox" name="enabled" {{ if .Data.code.Enabled }}checked{{ end }} /><br />
<br />
2024-11-23 05:15:21 +00:00
<input type="submit" value="save" />
</form>
2024-11-25 00:08:06 +00:00
<br /><br />
<ul>
{{ range $_, $entry := .Data.log }}
<li>{{ $entry.State }} (<i>{{ $entry.Timestamp | time_since }} ago</i>)</li>
{{ end }}
</ul>
2024-11-23 05:15:21 +00:00
{{ template "footer.html" }}