37 lines
839 B
HTML
37 lines
839 B
HTML
{{define "body" -}}
|
|
<h2>Edit Peer</h2>
|
|
|
|
{{with .Peer -}}
|
|
<form method="POST">
|
|
<input type="hidden" name="CSRF" value="{{$.Session.CSRF}}">
|
|
<p>
|
|
<label>Peer IP</label><br>
|
|
<input type="number" name="PeerIP" value="{{.PeerIP}}" disabled>
|
|
</p>
|
|
<p>
|
|
<label>Name</label><br>
|
|
<input type="text" name="Name" value="{{.Name}}">
|
|
</p>
|
|
<p>
|
|
<label>Public IP</label><br>
|
|
<input type="text" name="PublicIP" value="{{ipToString .PublicIP}}">
|
|
</p>
|
|
<p>
|
|
<label>Port</label><br>
|
|
<input type="number" name="Port" value="{{.Port}}">
|
|
</p>
|
|
<p>
|
|
<label>
|
|
<input type="checkbox" name="Mediator" {{if .Mediator}}checked{{end}}>
|
|
Mediator
|
|
</label>
|
|
</p>
|
|
<p>
|
|
<button type="submit">Save</button>
|
|
<a href="/admin/peer/view/?PeerIP={{.PeerIP}}">Cancel</a>
|
|
</p>
|
|
</form>
|
|
{{- end}}
|
|
|
|
{{- end}}
|