2021-11-02 14:05:32 +01:00
|
|
|
{% extends "listing.html" %}
|
|
|
|
|
|
|
|
{% block datacontent %}
|
|
|
|
<div class="card mb-0">
|
|
|
|
<div class="card-header">
|
2021-11-13 07:55:26 +01:00
|
|
|
<div class="row">
|
2021-12-16 08:27:06 +01:00
|
|
|
<div class="col-4">
|
2021-11-30 18:45:03 +01:00
|
|
|
<h4 class=""> Gymnast Listing</h4>
|
2021-11-13 07:55:26 +01:00
|
|
|
</div>
|
|
|
|
<div class="col-1 ml-auto">
|
2021-11-30 18:46:17 +01:00
|
|
|
<div class="text-right">
|
|
|
|
<a href="{% url 'gymnast_create' %}">
|
|
|
|
<button type="submit" value="add" class="btn btn-icon btn-warning ">
|
|
|
|
<i class="tim-icons icon-simple-add"></i>
|
|
|
|
</button>
|
|
|
|
</a>
|
|
|
|
</div>
|
2021-11-13 07:55:26 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2021-11-02 14:05:32 +01:00
|
|
|
</div>
|
2021-12-29 22:26:40 +01:00
|
|
|
<div class="card-body pt-0">
|
2021-11-19 13:11:25 +01:00
|
|
|
<div class="table-responsive">
|
2021-11-17 10:39:16 +01:00
|
|
|
{% if gymnast_list %}
|
2021-12-29 22:26:40 +01:00
|
|
|
<table class="table tablesorter table-striped" data-sort="table" id="gymnast_table">
|
2021-11-02 14:05:32 +01:00
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th style="width: 3%"></th>
|
2021-11-12 16:15:32 +01:00
|
|
|
<th class="header text-left" style="width: 20%">Lastname</th>
|
|
|
|
<th class="header text-left" style="width: 20%">Firstname</th>
|
2021-11-30 18:45:03 +01:00
|
|
|
<th class="header text-left" style="width: 10%">Gender</th>
|
|
|
|
<th class="header text-left" style="width: 10%">Age</th>
|
|
|
|
<th class="header text-left" style="width: 25%">Club</th>
|
2021-11-02 14:05:32 +01:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
2021-11-17 10:39:16 +01:00
|
|
|
{% for gymnast in gymnast_list %}
|
2021-12-29 22:26:40 +01:00
|
|
|
<tr role="row" class="{% cycle 'odd' 'even' %}">
|
2021-11-12 15:32:24 +01:00
|
|
|
<td>
|
2021-11-17 10:39:16 +01:00
|
|
|
<a href="{% url 'gymnast_update' gymnast.id %}">
|
2021-12-29 22:26:40 +01:00
|
|
|
<span class="tim-icons icon-pencil text-warning"></span>
|
2021-11-12 15:32:24 +01:00
|
|
|
</a>
|
|
|
|
</td>
|
2021-11-17 10:39:16 +01:00
|
|
|
<td class="text-left"><a href="{% url 'gymnast_details' gymnast.id %}">{{ gymnast.last_name }}</a></td>
|
|
|
|
<td class="text-left"><a href="{% url 'gymnast_details' gymnast.id %}">{{ gymnast.first_name }}</a></td>
|
|
|
|
<td class="text-left">{{ gymnast.get_gender_display }}</td>
|
|
|
|
<td class="text-left">{{ gymnast.age }}</td>
|
|
|
|
<td class="text-left">{{ gymnast.club.acronym }} ({{ gymnast.club.place.city }})</td>
|
2021-11-02 14:05:32 +01:00
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
{% else %}
|
2021-11-19 13:11:25 +01:00
|
|
|
There are no gymnast corresponding to your criterias.
|
2021-11-02 14:05:32 +01:00
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block footerscript %}
|
|
|
|
<script type="text/javascript">
|
|
|
|
$(document).ready(function() {
|
2021-12-29 22:26:40 +01:00
|
|
|
$('#gymnast_table').tablesorter({
|
2021-11-02 14:05:32 +01:00
|
|
|
headers: {
|
|
|
|
0: { sorter: false }, // disable first column
|
|
|
|
},
|
|
|
|
dateFormat: "uk",
|
2021-11-30 18:45:03 +01:00
|
|
|
sortList: [[1,0], [2,0]]
|
2021-11-02 14:05:32 +01:00
|
|
|
})
|
2021-12-29 22:26:40 +01:00
|
|
|
|
|
|
|
$('#gymnast_table').DataTable({
|
|
|
|
paging: false,
|
|
|
|
searching: false,
|
|
|
|
ordering: false,
|
|
|
|
"bInfo" : false,
|
|
|
|
});
|
2021-11-02 14:05:32 +01:00
|
|
|
});
|
|
|
|
</script>
|
|
|
|
{% endblock %}
|