carom-server/billard/templates/billard/locationdata_list.html

43 lines
1.2 KiB
HTML
Raw Normal View History

{% extends 'billard/base.html' %}
2017-01-09 14:13:07 +01:00
{% block title %}Location Data{% endblock %}
{% block content %}
2017-02-01 18:57:29 +01:00
<div id="location-selector" class="alert">
<select class="form-control">
<option value="1">Casino 1</option>
<option value="2">Casino 2</option>
</select>
</div>
{% 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>
{% 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>
{% endfor %}
2017-01-09 14:13:07 +01:00
</table>
{% else %}
<p>No data available.</p>
{% endif %}
{% endblock %}