add table column templates
This commit is contained in:
parent
eaaa019b85
commit
456917499a
@ -1,4 +1,5 @@
|
||||
{% extends '_base.html' %}
|
||||
{% load render_table from django_tables2 %}
|
||||
|
||||
{% block title %}Standortliste{% endblock %}
|
||||
|
||||
@ -8,7 +9,6 @@
|
||||
|
||||
{% block content %}
|
||||
|
||||
{% if location_list %}
|
||||
<h2>Bitte Standort auswählen:</h2>
|
||||
<table class="table table-hover">
|
||||
<tr>
|
||||
@ -36,8 +36,6 @@
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
{% else %}
|
||||
<p>Keine Standorte Zugeordnet.</p>
|
||||
{% endif %}
|
||||
{% render_table table %}
|
||||
|
||||
{% endblock %}
|
||||
|
2
billard/templates/billard/tc_accounting_detail.html
Normal file
2
billard/templates/billard/tc_accounting_detail.html
Normal file
@ -0,0 +1,2 @@
|
||||
{% load static from staticfiles %}
|
||||
<a href="{% url 'billard:accounting_detail' record.id %}" class="btn btn-outline-danger btn-sm">Abrechnen</a>
|
3
billard/templates/billard/tc_location_detail.html
Normal file
3
billard/templates/billard/tc_location_detail.html
Normal file
@ -0,0 +1,3 @@
|
||||
{% load static from staticfiles %}
|
||||
<a href="{% url 'billard:location_detail' record.id %}"
|
||||
class="btn btn-outline-primary btn-sm">{{ record.code|default_if_none:"" }}</a>
|
Loading…
Reference in New Issue
Block a user