28 lines
816 B
HTML
28 lines
816 B
HTML
{{ template "header.html" . }}
|
|
<h1>Better Z-Wave Locks</h1>
|
|
<!-- <header>Active Codes</header>
|
|
[ <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 }}
|
|
</table> -->
|
|
<br /><br />
|
|
<header>locks</header>
|
|
<ul>
|
|
{{ range .Locks }}<li><a href="{{ $.BaseURL }}/locks/{{ .ID }}">{{ .Name }} ({{ .ZwaveDeviceID }})</a></li>{{ end }}
|
|
</ul>
|
|
{{ template "footer.html" }}
|