add table column templates

This commit is contained in:
Robert Einsle 2019-02-09 21:48:58 +01:00
parent eaaa019b85
commit 456917499a
4 changed files with 34 additions and 31 deletions

View File

@ -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 %}

View 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>

View 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>