dev-data.html 607 Bytes
Newer Older
Vladislav Rykov's avatar
Vladislav Rykov committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{% extends 'layout.html' %}

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

{% block content %}

<div class="row">
	<div class="col-md-6 col-md-offset-3">
		<p>Last 5 messages:</p>
		
		<table>
			{% for data %}
			<tr>
				<th> {{ data[1] }} </th>
				<th> {{ data[2] }} </th>
			</tr>
			{% endfor %}
		</table>

		<p>Total {{ total }} messages.</p>

		<a href="/data-csv"><button type="submit" class="btn btn-primary">Download CSV</button></a>
	</div>
</div>

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

{% endblock %}