44 lines
1.5 KiB
HTML
44 lines
1.5 KiB
HTML
{% extends '_base.html' %}
|
|
|
|
{% block title %}Standortliste{% endblock %}
|
|
|
|
{% block breadcrumb %}
|
|
<li class="breadcrumb-item active">Standorte</li>
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
|
|
{% if location_list %}
|
|
<h2>Bitte Standort auswählen:</h2>
|
|
<table class="table table-hover">
|
|
<tr>
|
|
<th>Code</th>
|
|
<th>Name</th>
|
|
<th>Strasse</th>
|
|
<th>Plz</th>
|
|
<th>Ort</th>
|
|
{% if perms.billard.change_accounting %}
|
|
<th>Accounting</th>
|
|
{% endif %}
|
|
</tr>
|
|
{% for loc in location_list %}
|
|
<tr>
|
|
<td><a href="{% url 'billard:location_detail' loc.id %}"
|
|
class="btn btn-outline-primary btn-sm">{{ loc.code|default_if_none:"" }}</a></td>
|
|
<td>{{ loc.name|default_if_none:"" }}</td>
|
|
<td>{{ loc.street|default_if_none:"" }}</td>
|
|
<td>{{ loc.plz|default_if_none:"" }}</td>
|
|
<td>{{ loc.city|default_if_none:"" }}</td>
|
|
{% if perms.billard.change_accounting %}
|
|
<td><a href="{% url 'billard:accounting_detail' loc.id %}"
|
|
class="btn btn-outline-danger btn-sm">Abrechnen</a></td>
|
|
{% endif %}
|
|
</tr>
|
|
{% endfor %}
|
|
</table>
|
|
{% else %}
|
|
<p>Keine Standorte Zugeordnet.</p>
|
|
{% endif %}
|
|
|
|
{% endblock %}
|