53 lines
1.8 KiB
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">
|
|
<div class="table-responsive pb-0">
|
|
{% if club_list %}
|
|
<table class="table tablesorter table-striped table-condensed" data-sort="table" id="maintable">
|
|
<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 %}
|
|
<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 %} |