{{define "body" -}}
<h3>New Peer</h3>

<form method="POST">
  <input type="hidden" name="CSRF" value="{{.Session.CSRF}}">
  <input type="hidden" name="NetworkID" value="{{.Network.NetworkID}}">
  <p>
    <label>IP</label><br>
    <input type="number" name="IP" min="1" max="255" value="0">
  </p>
  <p>
    <label>Name</label><br>
    <input type="text" name="Name">
  </p>
  <p>
    <label>Public IP</label><br>
    <input type="text" name="PublicIP">
  </p>
  <p>
    <label>Port</label><br>
    <input type="number" name="Port" value="456">
  </p>
  <p>
    <label>
      <input type="checkbox" name="Relay">
      Relay
    </label>
  </p>
  <p>
    <button type="submit">Save</button>
    <a href="/admin/network/view/?NetworkID={{.Network.NetworkID}}">Cancel</a>
  </p>
</form>

{{- end}}
