Jarvis/jarvis/location/templates/clubs/list.html

53 lines
1.8 KiB
HTML

{% extends "listing.html" %}
{% block datacontent %}
<div class="card mb-0">
<div class="card-header">
<h4 class="">Club Listing</h4>
</div>
<div class="card-body pb-0 pt-0">
<div class="table-responsive pb-0">
{% if club_list %}
<table class="table tablesorter table-striped table-condensed" data-sort="table" id="club_table">
<thead>
<tr>
<th class="header text-left" style="width: 35%">Name</th>
<th class="header text-left" style="width: 10%">Acronym</th>
<th class="header text-left" style="width: 35%">City</th>
</tr>
</thead>
<tbody>
{% for club in club_list %}
<tr>
<td class="text-left"> {{ club.name }}</td>
<td class="text-left">{{ club.acronym }}</td>
<td class="text-left">{{ club.city }}</td>
</tr>
{% endfor %}
</tbody>
</table>
{% else %}
There are no places corresponding to your criterias.
{% 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]]
});
$('#club_table').DataTable({
"bInfo": false,
});
});
</script>
{% endblock %}