Initial bones for #37

This commit is contained in:
Logan Cusano
2023-07-15 18:16:42 -04:00
parent 6b37a48061
commit 2e22fa66a6
13 changed files with 561 additions and 14 deletions

41
Server/views/node.ejs Normal file
View File

@@ -0,0 +1,41 @@
<%- include('partials/htmlHead.ejs') %>
<div class="card mb-4">
<div class="card-header">
Account Details
<% if(node.online){%> <span class="badge badge-soft-success mb-0">Online</span>
<% } else {%> <span class="badge badge-soft-danger mb-0">Offline</span>
<% } %>
</div>
<div class="card-body">
<form>
<div class="mb-3">
<label class="small mb-1" for="nodeId">Node ID (this is the assigned Node ID and cannot be changed)</label>
<input class="form-control" id="nodeId" type="text" value="<%=node.id%>" disabled>
</div>
<div class="row gx-3 mb-3">
<div class="col-md-12">
<label class="small mb-1" for="inputNodeName">Node Name</label>
<input class="form-control" id="inputNodeName" type="text" value="<%=node.name%>">
</div>
</div>
<div class="row gx-3 mb-3">
<div class="col-md-4">
<label class="small mb-1" for="inputNodeIp">Node IP Address (that the server can contact)</label>
<input class="form-control" id="inputNodeIp" type="text" value="<%=node.ip%>">
</div>
<div class="col-md-2">
<label class="small mb-1" for="inputOrgName">Node Port (with the API)</label>
<input class="form-control" id="inputOrgName" type="number" value="<%=node.port%>">
</div>
</div>
<div class="mb-3">
<label class="small mb-1" for="inputNodeLocation">Node Location (physical location)</label>
<input class="form-control" id="inputNodeLocation" type="location" value="<%=node.location%>">
</div>
<!-- Save changes button-->
<button class="btn btn-primary" type="button">Save changes</button>
</form>
</div>
</div>
<%- include('partials/bodyEnd.ejs') %>
<%- include('partials/htmlFooter.ejs') %>