dev.html 1.14 KB
Newer Older
Vladislav Rykov's avatar
Vladislav Rykov committed
1
2
3
4
5
6
7
8
{% extends 'layout.html' %}

{% block title %} Device: {% endblock %}

{% block content %}

<div class="row">
	<div class="col-md-6 col-md-offset-3">
Vladislav Rykov's avatar
Vladislav Rykov committed
9
		<div class="panel panel-info">
Vladislav Rykov's avatar
Vladislav Rykov committed
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
			<div class="panel-heading">
				<center><h2> {{ dev[0] }} </h2></center>
			</div>
			<div class="panel-body">
				<table class="table table-hover">
					<tbody>
						<tr>
							<th> dev_id </th>
							<th> {{ dev[1] }} </th>
						</tr>
						<tr>
							<th> app-key </th>
							<th> {{ appkey }} </th>
						</tr>
						<tr>
							<th> Description </th>
							<th> {{ dev[2] }} </th>
						</tr>
						<tr>
							<th> Last time up </th> 
							<th><strong> {{ ltup }} </strong></th>
						</tr>
					</tbody>
				</table>
Vladislav Rykov's avatar
Vladislav Rykov committed
34
35
	
				<br><br>
Vladislav Rykov's avatar
Vladislav Rykov committed
36
37
38
				<center>
				<a href="/dev-data"><button type="submit" class="btn btn-primary">Data</button></a>
				<a href="/dev-conf"><button type="submit" class="btn btn-primary">Configure</button></a>
39
40
				<a href="/delete-dev"><button type="submit" class="btn btn-danger" onclick="return confirm('Are you sure? It will remove all device data.');">Delete Device</button></a>
				</center>
Vladislav Rykov's avatar
Vladislav Rykov committed
41
42
			</div>
		</div>
Vladislav Rykov's avatar
Vladislav Rykov committed
43
44
45
46
47
	</div>
</div>

{% endblock %}