51 lines
1.4 KiB
HTML
51 lines
1.4 KiB
HTML
|
<form action="/add" method="post">
|
||
|
<fieldset>
|
||
|
<legend>Add Device</legend>
|
||
|
|
||
|
<label for="alias">Alias</label><input id="alias" name="Alias">
|
||
|
<label for="mac">MAC</label><input id="mac" name="MAC">
|
||
|
<label for="ip">IP</label><input id="ip" name="IP">
|
||
|
<input type="submit" value="Submit">
|
||
|
</fieldset>
|
||
|
</form>
|
||
|
|
||
|
<fieldset>
|
||
|
<legend>Devices</legend>
|
||
|
|
||
|
<table>
|
||
|
<tr>
|
||
|
<th>Alias</th>
|
||
|
<th>MAC</th>
|
||
|
<th>IP/Broadcast</th>
|
||
|
<th>Actions</th>
|
||
|
</tr>
|
||
|
{{range $i, $d := .Devices}}
|
||
|
<tr>
|
||
|
<td>{{$d.Alias}}</td>
|
||
|
<td>{{$d.MAC}}</td>
|
||
|
<td>{{$d.IP}}</td>
|
||
|
<td class="actions">
|
||
|
<form action="/wake" method="post">
|
||
|
<input type="text" name="Alias" value="{{$d.Alias}}" hidden>
|
||
|
<input type="text" name="MAC" value="{{$d.MAC}}" hidden>
|
||
|
<input type="text" name="IP" value="{{$d.IP}}" hidden>
|
||
|
<input type="submit" value="Wake">
|
||
|
</form>
|
||
|
<form action="/remove" method="post">
|
||
|
<input type="text" name="Alias" value="{{$d.Alias}}" hidden>
|
||
|
<input type="text" name="MAC" value="{{$d.MAC}}" hidden>
|
||
|
<input type="text" name="IP" value="{{$d.IP}}" hidden>
|
||
|
<input type="submit" value="Remove">
|
||
|
</form>
|
||
|
</td>
|
||
|
</tr>
|
||
|
{{end}}
|
||
|
</table>
|
||
|
</fieldset>
|
||
|
|
||
|
<style>
|
||
|
body > div {
|
||
|
flex-flow: row wrap;
|
||
|
align-items: flex-start;
|
||
|
}
|
||
|
</style>
|