From ab6d1fa07ec91c6b545e6254471913f527d673d8 Mon Sep 17 00:00:00 2001 From: Robert Einsle Date: Sat, 11 Mar 2017 20:20:25 +0100 Subject: [PATCH] add dialog to show accounting data --- billard/templates/billard/accounting.html | 48 +++++++++++++++++++++++ billard/templates/billard/base.html | 1 + billard/urls.py | 1 + billard/views.py | 47 +++++++++++++++++++++- 4 files changed, 96 insertions(+), 1 deletion(-) create mode 100644 billard/templates/billard/accounting.html diff --git a/billard/templates/billard/accounting.html b/billard/templates/billard/accounting.html new file mode 100644 index 0000000..112beae --- /dev/null +++ b/billard/templates/billard/accounting.html @@ -0,0 +1,48 @@ +{% extends 'billard/base.html' %} +{% load display_client %} + +{% block title %}Accounting Data{% endblock %} + +{% block content %} +{% if not locations|length_is:"1" %} +
+{% csrf_token %} +
+ +
+
+{% endif %} + + + + + + + + + + + +{% for acc in accounting %} + + + + + + + +{% endfor %} +
Start-Datum:Stop-Datum:Preis Normal:Preis Happy Hour:Preis gesamt:
{{ acc.time_from }}{{ acc.time_to }}{{ acc.prize_normal }}{{ acc.prize_hh }}{{ acc.prize }}
+ +
+{% csrf_token %} + + + +
+ +{% endblock %} diff --git a/billard/templates/billard/base.html b/billard/templates/billard/base.html index 0665e45..efe6f2d 100644 --- a/billard/templates/billard/base.html +++ b/billard/templates/billard/base.html @@ -29,6 +29,7 @@