2015-12-04 05:20:23 +01:00
|
|
|
<!DOCTYPE html>
|
|
|
|
|
<html lang="en">
|
|
|
|
|
<head>
|
|
|
|
|
<meta charset="utf-8">
|
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
|
|
|
<meta name="description" content="">
|
|
|
|
|
<meta name="author" content="">
|
|
|
|
|
|
|
|
|
|
<title>Power;Challenge</title>
|
|
|
|
|
|
|
|
|
|
<!-- Bootstrap core CSS -->
|
|
|
|
|
<link href="css/bootstrap.min.css" rel="stylesheet">
|
|
|
|
|
<link href="css/main.css" rel="stylesheet">
|
|
|
|
|
|
|
|
|
|
<script src="http://code.jquery.com/jquery-1.8.2.min.js"></script>
|
|
|
|
|
<script src="js/bootstrap.min.js"></script>
|
|
|
|
|
|
|
|
|
|
</head>
|
|
|
|
|
|
|
|
|
|
<body>
|
|
|
|
|
|
|
|
|
|
<nav class="navbar navbar-inverse navbar-fixed-top">
|
|
|
|
|
<div class="container-fluid">
|
|
|
|
|
<div class="navbar-header">
|
|
|
|
|
<a class="navbar-brand" href="#">Power;Challenge</a>
|
|
|
|
|
</div>
|
|
|
|
|
<div id="navbar" class="navbar-collapse collapse">
|
|
|
|
|
<ul class="nav navbar-nav navbar-right">
|
|
|
|
|
<li><a href="#">Ziver</a></li>
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</nav>
|
|
|
|
|
|
|
|
|
|
<div class="container-fluid">
|
|
|
|
|
<div class="row">
|
|
|
|
|
<div class="col-sm-3 col-md-2 sidebar">
|
|
|
|
|
<ul class="nav nav-sidebar">
|
|
|
|
|
<li><a href="/">Overview</a></li>
|
2015-12-04 06:58:47 +01:00
|
|
|
<li><a href="heatmap">Heat Map</a></li>
|
2015-12-04 05:20:23 +01:00
|
|
|
<li><a href="#">Statistics</a></li>
|
|
|
|
|
<li class="active"><a href="configure">Configuration <span class="sr-only">(current)</span></a></li>
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
|
|
|
|
|
<h1 class="page-header">Configuration</h1>
|
|
|
|
|
|
2015-12-04 05:51:02 +01:00
|
|
|
<div class="panel panel-default">
|
|
|
|
|
<div class="panel-heading">Profile Information</div>
|
|
|
|
|
<div class="panel-body">
|
|
|
|
|
<form>
|
|
|
|
|
<div class="form-group col-md-4">
|
|
|
|
|
<label for="username">Username</label>
|
2015-12-04 06:58:47 +01:00
|
|
|
<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="username" value="{{user.address}}">
|
2015-12-04 05:51:02 +01:00
|
|
|
</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>
|
2015-12-04 06:58:47 +01:00
|
|
|
<th>Address</th>
|
2015-12-04 05:51:02 +01:00
|
|
|
<th>Hostname</th>
|
|
|
|
|
<th>Port</th>
|
|
|
|
|
</tr>
|
|
|
|
|
{{#extUsers}}
|
|
|
|
|
<tr>
|
|
|
|
|
<td>{{.username}}</td>
|
2015-12-04 06:58:47 +01:00
|
|
|
<td>{{.address}}</td>
|
|
|
|
|
<td>{{.hostname}}</td>
|
2015-12-04 05:51:02 +01:00
|
|
|
<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>
|
2015-12-04 06:58:47 +01:00
|
|
|
{{#extSensor}}
|
2015-12-04 05:51:02 +01:00
|
|
|
<tr>
|
|
|
|
|
<td>{{.name}}</td>
|
|
|
|
|
<td>{{.type}}</td>
|
|
|
|
|
<td>{{.config}}</td>
|
|
|
|
|
</tr>
|
2015-12-04 06:58:47 +01:00
|
|
|
{{/extSensor}}
|
2015-12-04 05:51:02 +01:00
|
|
|
</table>
|
|
|
|
|
</div>
|
2015-12-04 05:20:23 +01:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|