Ultron/templates/jumpers/list.html

57 lines
2.2 KiB
HTML
Raw Normal View History

2021-11-02 14:05:32 +01:00
{% extends "listing.html" %}
{% block datacontent %}
<div class="card mb-0">
<div class="card-header">
<h4 class="card-title"> Jumpers Listing</h4>
</div>
<div class="card-body pb-0">
<div class="table-responsive pb-0">
{% if jumper_list %}
<table class="table tablesorter table-striped table-condensed" data-sort="table" id="maintable">
<thead>
<tr>
<th style="width: 3%"></th>
<th class="header text-left" style="width: 25%">Lastname</th>
<th class="header text-left" style="width: 35%">Firstname</th>
<th class="header text-left" style="width: 15%">Age</th>
<th class="header text-left" style="width: 15%">Club</th>
</tr>
</thead>
<tbody>
{% for jumper in jumper_list %}
<tr>
<td></td>
<td class="text-left"><a href="{% url 'jumper_details' jumper.id %}">{{ jumper.last_name }}</a></td>
<td class="text-left"><a href="{% url 'jumper_details' jumper.id %}">{{ jumper.first_name }}</a></td>
<td class="text-left">{{ jumper.age }}</td>
<td class="text-left">{{ jumper.club.acronym }} ({{ jumper.club.city }})</td>
</tr>
{% endfor %}
</tbody>
</table>
{% else %}
<table class="table">
<tr>
<td>There are no places corresponding to your criterias</td>
</tr>
</table>
{% endif %}
</div>
</div>
</div>
{% endblock %}
{% block footerscript %}
<script type="text/javascript">
$(document).ready(function() {
$('[data-sort="table"]').tablesorter({
headers: {
0: { sorter: false }, // disable first column
},
dateFormat: "uk",
sortList: [[3,0], [1,0]]
})
});
</script>
{% endblock %}