1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2024-12-24 08:22:22 +00:00
nk20/templates/wei/bus_tables.html

51 lines
1.4 KiB
HTML
Raw Normal View History

2020-04-13 04:01:27 +00:00
{% load render_table from django_tables2 %}
{% load i18n %}
<div class="card">
<div class="card-header text-center">
<h4>{{ object.name }}</h4>
</div>
<div class="card-body">
{{ object.description }}
</div>
<div class="card-footer text-center">
<a class="btn btn-primary btn-sm my-1" href="{% url 'wei:update_bus' pk=object.pk %}" data-turbolinks="false">{% trans "Edit" %}</a>
<a class="btn btn-primary btn-sm my-1" href="{% url 'wei:add_team' pk=object.pk %}" data-turbolinks="false">{% trans "Add team" %}</a>
2020-04-13 04:01:27 +00:00
</div>
</div>
<hr>
2020-04-13 19:16:52 +00:00
{% if teams.data %}
2020-04-13 04:01:27 +00:00
<div class="card">
<div class="card-header position-relative" id="clubListHeading">
<a class="font-weight-bold">
2020-04-13 04:01:27 +00:00
<i class="fa fa-bus"></i> {% trans "Teams" %}
</a>
</div>
{% render_table teams %}
</div>
<hr>
{% endif %}
2020-04-13 19:16:52 +00:00
{% if memberships.data %}
<div class="card">
<div class="card-header position-relative" id="clubListHeading">
<a class="font-weight-bold">
2020-04-13 19:16:52 +00:00
<i class="fa fa-bus"></i> {% trans "Members" %}
</a>
</div>
{% render_table memberships %}
</div>
2020-04-23 16:28:16 +00:00
<hr>
<a href="{% url 'wei:wei_memberships_bus_pdf' wei_pk=club.pk bus_pk=object.pk %}" data-turbolinks="false">
<button class="btn btn-block btn-danger"><i class="fa fa-file-pdf-o"></i> {% trans "View as PDF" %}</button>
</a>
2020-04-13 19:16:52 +00:00
{% endif %}