Update - modify hub to support multiple networks. (#4)
Co-authored-by: jdl <jdl@desktop> Reviewed-on: #4
This commit was merged in pull request #4.
	This commit is contained in:
		
							
								
								
									
										35
									
								
								hub/templates/network/peer-edit.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										35
									
								
								hub/templates/network/peer-edit.html
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,35 @@ | ||||
| {{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="text" 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="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}} | ||||
		Reference in New Issue
	
	Block a user