2017-01-09 10:59:46 +01:00
|
|
|
{% extends 'billard/base.html' %}
|
|
|
|
|
2017-01-09 14:13:07 +01:00
|
|
|
{% block title %}Location Data{% endblock %}
|
|
|
|
|
2017-01-09 10:59:46 +01:00
|
|
|
{% block content %}
|
|
|
|
{% if object_list %}
|
2017-01-09 14:13:07 +01:00
|
|
|
<h1>Location Data</h1>
|
|
|
|
<table class="table table-hover">
|
|
|
|
<tr>
|
|
|
|
<th>ID</th>
|
|
|
|
<th>Location</th>
|
|
|
|
<th>Table</th>
|
|
|
|
<th>Timestamp</th>
|
|
|
|
<th>On_Off</th>
|
2017-01-09 15:37:25 +01:00
|
|
|
<th>Proc</th>
|
|
|
|
<th>Error</th>
|
2017-01-09 14:13:07 +01:00
|
|
|
</tr>
|
2017-01-09 10:59:46 +01:00
|
|
|
{% for location_data in object_list %}
|
2017-01-09 14:13:07 +01:00
|
|
|
<tr>
|
2017-01-09 20:42:59 +01:00
|
|
|
<td><a href="{% url 'detail' location_data.id %}">{{ location_data.id }}</a></td>
|
2017-01-09 14:13:07 +01:00
|
|
|
<td>{{ location_data.location_id }}</td>
|
|
|
|
<td>{{ location_data.table_no }}</td>
|
|
|
|
<td>{{ location_data.tst }}</td>
|
|
|
|
<td>{{ location_data.on_off }}</td>
|
2017-01-09 15:37:25 +01:00
|
|
|
<td>{{ location_data.processed }}</td>
|
|
|
|
<td>{{ location_data.error_msg }}</td>
|
2017-01-09 14:13:07 +01:00
|
|
|
</tr>
|
2017-01-09 10:59:46 +01:00
|
|
|
{% endfor %}
|
2017-01-09 14:13:07 +01:00
|
|
|
</table>
|
2017-01-09 10:59:46 +01:00
|
|
|
{% else %}
|
|
|
|
<p>No data available.</p>
|
|
|
|
{% endif %}
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
|