diff --git a/billard/templates/billard/location_detail_ajax.html b/billard/templates/billard/location_detail_ajax.html
index f5c7668..259cd89 100644
--- a/billard/templates/billard/location_detail_ajax.html
+++ b/billard/templates/billard/location_detail_ajax.html
@@ -10,8 +10,8 @@
-
- {{ location|display_daily_sale }}
-
+
+
+ {{ location|display_daily_sale }}
+
diff --git a/billard/templates/billard/location_index.html b/billard/templates/billard/location_index.html
index 3627284..2eaf49c 100644
--- a/billard/templates/billard/location_index.html
+++ b/billard/templates/billard/location_index.html
@@ -1,4 +1,5 @@
{% extends '_base.html' %}
+{% load render_table from django_tables2 %}
{% block title %}Standortliste{% endblock %}
@@ -8,36 +9,33 @@
{% block content %}
- {% if location_list %}
-
Bitte Standort auswählen:
-
+ Bitte Standort auswählen:
+
+
+ Code |
+ Name |
+ Strasse |
+ Plz |
+ Ort |
+ {% if perms.billard.change_accounting %}
+ Accounting |
+ {% endif %}
+
+ {% for loc in location_list %}
- Code |
- Name |
- Strasse |
- Plz |
- Ort |
+ {{ loc.code|default_if_none:"" }} |
+ {{ loc.name|default_if_none:"" }} |
+ {{ loc.street|default_if_none:"" }} |
+ {{ loc.plz|default_if_none:"" }} |
+ {{ loc.city|default_if_none:"" }} |
{% if perms.billard.change_accounting %}
- Accounting |
+ Abrechnen |
{% endif %}
- {% for loc in location_list %}
-
- {{ loc.code|default_if_none:"" }} |
- {{ loc.name|default_if_none:"" }} |
- {{ loc.street|default_if_none:"" }} |
- {{ loc.plz|default_if_none:"" }} |
- {{ loc.city|default_if_none:"" }} |
- {% if perms.billard.change_accounting %}
- Abrechnen |
- {% endif %}
-
- {% endfor %}
-
- {% else %}
- Keine Standorte Zugeordnet.
- {% endif %}
+ {% endfor %}
+
+ {% render_table table %}
{% endblock %}
diff --git a/billard/templates/billard/tc_accounting_detail.html b/billard/templates/billard/tc_accounting_detail.html
new file mode 100644
index 0000000..c84d55d
--- /dev/null
+++ b/billard/templates/billard/tc_accounting_detail.html
@@ -0,0 +1,2 @@
+{% load static from staticfiles %}
+
Abrechnen
\ No newline at end of file
diff --git a/billard/templates/billard/tc_location_detail.html b/billard/templates/billard/tc_location_detail.html
new file mode 100644
index 0000000..8cfec3c
--- /dev/null
+++ b/billard/templates/billard/tc_location_detail.html
@@ -0,0 +1,3 @@
+{% load static from staticfiles %}
+
{{ record.code|default_if_none:"" }}
\ No newline at end of file