dev.html 774 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
		<p>Last time up : {{ ltup }} </p>

Vladislav Rykov's avatar
Vladislav Rykov committed
15
16
17
		<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>
		<a href="/delete-dev"><button type="submit" class="btn btn-danger" onclick="return conf();">Delete Device</button></a>
Vladislav Rykov's avatar
Vladislav Rykov committed
18
19
20
21
22
23
24
25
26
27
28
	</div>
</div>

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

{% endblock %}