miniwol/web/template/device.html.tmpl

22 lines
531 B
Cheetah
Raw Normal View History

2022-02-17 12:31:01 +00:00
<table>
<tr>
<th>Device Alias</th>
<th>MAC Address</th>
<th>IP/Broadcast</th>
<th>Actions</th>
</tr>
2022-02-18 13:35:03 +00:00
{{range $i, $d := .Device}}
2022-02-17 12:31:01 +00:00
<tr>
2022-02-17 12:54:52 +00:00
<td>{{$d.Alias}}</td>
<td>{{$d.MAC}}</td>
<td>{{$d.IP}}</td>
2022-02-17 12:31:01 +00:00
<td>
<form action="/wake" method="post">
2022-02-17 12:54:52 +00:00
<input type="text" name="index" value="{{$i}}" hidden>
<input type="text" name="alias" value="{{$d.Alias}}" hidden>
2022-02-17 12:31:01 +00:00
<input type="submit" value="Wake">
</form>
</td>
</tr>
{{end}}
</table>