39 lines
929 B
HTML
39 lines
929 B
HTML
{{define "body" -}}
|
|
<h2>Edit Peer</h2>
|
|
|
|
{{with .Peer -}}
|
|
<form method="POST">
|
|
<p>
|
|
<label>Peer IP</label><br>
|
|
<input type="text" value="{{.PeerIP}}" disabled>
|
|
</p>
|
|
<p>
|
|
<label>Name</label><br>
|
|
<input type="text" name="Name" value="{{.Name}}">
|
|
</p>
|
|
<p>
|
|
<label>IPv4 Address (optional)</label><br>
|
|
<input type="text" name="Addr4" value="{{ipToString .Addr4}}">
|
|
</p>
|
|
<p>
|
|
<label>IPv6 Address (optional)</label><br>
|
|
<input type="text" name="Addr6" value="{{ipToString .Addr6}}">
|
|
</p>
|
|
<p>
|
|
<label>WireGuard Port</label><br>
|
|
<input type="number" name="Port" value="{{.Port}}">
|
|
</p>
|
|
<p>
|
|
<label>
|
|
<input type="checkbox" name="Relay" {{if .Relay}}checked{{end}}>
|
|
Relay
|
|
</label>
|
|
</p>
|
|
<p>
|
|
<button type="submit">Save</button>
|
|
<a href="/admin/peer/view/?NetworkID={{$.Network.NetworkID}}&PeerIP={{.PeerIP}}">Cancel</a>
|
|
</p>
|
|
</form>
|
|
{{- end}}
|
|
{{- end}}
|