Refactored we pages
Former-commit-id: a64def61acdcbf63bf4792b9084a48dded9eb41a
This commit is contained in:
parent
c669cca664
commit
84fd5adb5e
12 changed files with 421 additions and 424 deletions
86
web-resource/configure.tmpl
Executable file
86
web-resource/configure.tmpl
Executable file
|
|
@ -0,0 +1,86 @@
|
|||
<h1 class="page-header">Configuration</h1>
|
||||
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">Profile Information</div>
|
||||
<div class="panel-body">
|
||||
<form>
|
||||
<hidden id="id" value="{{user.getId()}}">
|
||||
<div class="form-group col-md-4">
|
||||
<label for="username">Username</label>
|
||||
<input type="text" class="form-control" id="username" value="{{user.username}}">
|
||||
</div>
|
||||
<div class="form-group col-md-8">
|
||||
<label for="address">Address</label>
|
||||
<input type="text" class="form-control" id="address" value="{{user.address}}">
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<button type="submit" class="btn btn-default">Save</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">Local Sensors</div>
|
||||
<div class="panel-body">
|
||||
This is a local list of sensors connected to this node.
|
||||
</div>
|
||||
<table class="table table-hover">
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>Type</th>
|
||||
<th>Configuration</th>
|
||||
</tr>
|
||||
{{#localSensor}}
|
||||
<tr>
|
||||
<td>{{.name}}</td>
|
||||
<td>{{.type}}</td>
|
||||
<td>{{.config}}</td>
|
||||
</tr>
|
||||
{{/localSensor}}
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">External Users</div>
|
||||
<div class="panel-body">
|
||||
Add or remove users that you want to synchronized data with.
|
||||
</div>
|
||||
<table class="table table-hover">
|
||||
<tr>
|
||||
<th>Username</th>
|
||||
<th>Address</th>
|
||||
<th>Hostname</th>
|
||||
<th>Port</th>
|
||||
</tr>
|
||||
{{#extUsers}}
|
||||
<tr>
|
||||
<td>{{.username}}</td>
|
||||
<td>{{.address}}</td>
|
||||
<td>{{.hostname}}</td>
|
||||
<td>{{.port}}</td>
|
||||
</tr>
|
||||
{{/extUsers}}
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">External Sensors</div>
|
||||
<div class="panel-body">
|
||||
This is a read only list of synchronized sensors from external users.
|
||||
</div>
|
||||
<table class="table table-hover">
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>Type</th>
|
||||
<th>Configuration</th>
|
||||
</tr>
|
||||
{{#extSensor}}
|
||||
<tr>
|
||||
<td>{{.name}}</td>
|
||||
<td>{{.type}}</td>
|
||||
<td>{{.config}}</td>
|
||||
</tr>
|
||||
{{/extSensor}}
|
||||
</table>
|
||||
</div>
|
||||
Loading…
Add table
Add a link
Reference in a new issue