update view, show location info

This commit is contained in:
2017-02-01 18:57:29 +01:00
parent 48a912f04b
commit 90974ea783
6 changed files with 86 additions and 10353 deletions

View File

@@ -41,7 +41,8 @@
{% endblock %}
</div>
</div><!-- /.container -->
<script src="{% static 'billard/js/jquery-1.11.3.js' %}"></script>
<script src="{% static 'billard/js/jquery-1.12.4.min.js' %}"></script>
<script src="{% static 'billard/js/bootstrap.min.js' %}"></script>
<script src="{% static 'billard/js/carom.js' %}"></script>
</body>
</html>

View File

@@ -0,0 +1,57 @@
{% extends 'billard/base.html' %}
{% block title %}Location Data{% endblock %}
{% block content %}
<form action="." method="post" id="location-form">{% csrf_token %}
<div id="location-selector" class="alert">
<select class="form-control" form="location-form" name="location-selector">
{% for loc in locations %}
<option value="{{ loc.id }}"{% if loc.id == location_id %} selected{% endif %}>{{ loc.code }} - {{ loc.name }}</option>
{% endfor %}
</select>
</div>
</form>
{% if clients %}
{% for cli in clients %}
{% if cli.desk1_enable %}
<div class="alert alert-success">
<h4 style="text-align: center">(1) {{ cli.desk1_name }}</h4>
<table class="table">
<tr>
<td>01.02.2017 10:00</td>
<td>01.02.2017 11:58</td>
<td>6,10</td>
</tr>
<tr>
<td>01.02.2017 10:00</td>
<td>01.02.2017 11:58</td>
<td>6,10</td>
</tr>
</table>
</div>
{% endif %}
{% if cli.desk2_enable %}
<div class="alert alert-info">
<h4 style="text-align: center">(2) {{ cli.desk2_name }}</h4>
<table class="table">
<tr>
<td>01.02.2017 10:00</td>
<td>01.02.2017 11:58</td>
<td>6,10</td>
</tr>
<tr>
<td>01.02.2017 10:00</td>
<td></td>
<td>6,10</td>
</tr>
</table>
</div>
{% endif %}
{% endfor %}
{% else %}
<div class="alert alert-danger">Keine Tische angelegt!</div>
{% endif %}
{% endblock %}

View File

@@ -3,6 +3,13 @@
{% block title %}Location Data{% endblock %}
{% block content %}
<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 %}
<h1>Location Data</h1>
<table class="table table-hover">