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

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

{% block content %}

<div class="row">
	<div class="col-md-6 col-md-offset-3">
		<p>Name: {{ dev[0] }} </p>
		<p>dev_id: {{ dev[1] }} </p>
11
12
		<p>app-key: {{ appkey }} </p>
		<p>Description : {{ dev[2] }} </p>
Vladislav Rykov's avatar
Vladislav Rykov committed
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
		<p>Last time up : {{ ltup }} </p>

		<a href="/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>
		<a href="/delete-dev"><button type="submit" class="btn btn-danger" onclick="return conf();">Delete Device</button></a>
	</div>
</div>

<script type="text/javascrypt">
function conf() {
	return confirm("Are you sure? It will remove all device data.")
}
</script>

{% endblock %}