{{define "body" -}}
<h3>Delete</h3>

{{if .Peers -}}
<p>You must first delete all peers.</p>
{{- else -}}
<form method="POST">
  <input type="hidden" name="CSRF" value="{{.Session.CSRF}}">
  <input type="hidden" name="NetworkID" value="{{.Network.NetworkID}}">
  <p>
    <button type="submit">Delete</button>
    <a href="/admin/network/view/?NetworkID={{.Network.NetworkID}}">Cancel</a>
  </p>
</form>
{{- end}}
{{- end}}
