55 lines
2.0 KiB
HTML
55 lines
2.0 KiB
HTML
|
{% extends "listing.html" %}
|
||
|
|
||
|
{% block datacontent %}
|
||
|
<div class="card mb-0">
|
||
|
<div class="card-header">
|
||
|
<h4 class="card-title"> Chronos Listing</h4>
|
||
|
</div>
|
||
|
<div class="card-body pb-0">
|
||
|
<div class="table-responsive pb-0">
|
||
|
{% if chrono_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%">Jumper</th>
|
||
|
<th class="header text-left" style="width: 35%">Date</th>
|
||
|
<th class="header text-left" style="width: 15%">Score</th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<tbody>
|
||
|
{% for chrono in chrono_list %}
|
||
|
<tr>
|
||
|
<td></td>
|
||
|
<td class="text-left"><a href="{% url 'jumper_details' chrono.jumper.id %}">{{ chrono.jumper }}</a></td>
|
||
|
<td class="text-left">{{ chrono.date | date:"d F Y" }}</td>
|
||
|
<td class="text-left">{{ chrono.tof }}</td>
|
||
|
</tr>
|
||
|
{% endfor %}
|
||
|
</tbody>
|
||
|
</table>
|
||
|
{% else %}
|
||
|
<table class="table">
|
||
|
<tr>
|
||
|
<td>There are no chronos 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 %}
|