2024-11-23 03:50:18 +00:00
|
|
|
{{ template "header.html" . }}
|
|
|
|
<h1>Better Z-Wave Locks</h1>
|
2024-11-23 05:15:21 +00:00
|
|
|
<!-- <header>Active Codes</header>
|
2024-11-23 03:50:18 +00:00
|
|
|
[ <a href="{{ .BaseURL }}/add-code">add</a> ]
|
|
|
|
<table border="1">
|
|
|
|
<tr>
|
|
|
|
<th>Name</th>
|
|
|
|
<th>Code</th>
|
|
|
|
<th>Last used</th>
|
|
|
|
<th>Expires</th>
|
|
|
|
<th>Actions</th>
|
|
|
|
</tr>
|
|
|
|
{{ range .ActiveCodes }}
|
|
|
|
<tr>
|
|
|
|
<td>{{ .Name.Value }}</td>
|
|
|
|
<td>{{ .Code }}</td>
|
|
|
|
<td>0.005ms ago on <a href="{{ $.BaseURL }}/locks/1">Back Door</a></td>
|
|
|
|
<td>{{ .End.Value }}</td>
|
|
|
|
<td><a href="#">details</a> | <a href="#">delete</a></td>
|
|
|
|
</tr>
|
|
|
|
{{ end }}
|
2024-11-23 05:15:21 +00:00
|
|
|
</table> -->
|
2024-11-23 03:50:18 +00:00
|
|
|
<br /><br />
|
|
|
|
<header>locks</header>
|
|
|
|
<ul>
|
|
|
|
{{ range .Locks }}<li><a href="{{ $.BaseURL }}/locks/{{ .ID }}">{{ .Name }} ({{ .ZwaveDeviceID }})</a></li>{{ end }}
|
|
|
|
</ul>
|
|
|
|
{{ template "footer.html" }}
|