2024-02-25 10:28:58 +01:00
|
|
|
{% extends "listing.html" %}
|
|
|
|
|
|
|
|
{% block datacontent %}
|
|
|
|
<div class="card mb-0">
|
|
|
|
<div class="card-header">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-8">
|
2024-02-25 20:02:20 +01:00
|
|
|
<h4 class=""> Passes Listing</h4>
|
2024-02-25 10:28:58 +01:00
|
|
|
</div>
|
|
|
|
<div class="col-1 ml-auto">
|
2024-02-25 20:02:20 +01:00
|
|
|
|
2024-02-25 10:28:58 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="card-body">
|
|
|
|
<div class="table-responsive">
|
2024-02-25 20:02:20 +01:00
|
|
|
{% if passes_list %}
|
|
|
|
<table class="table tablesorter table-striped" data-sort="table" id="routine_table">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th class="text-center" style="width: 10%">label</th>
|
|
|
|
<th class="header text-center" style="width: 7%">educative</th>
|
|
|
|
<th class="header text-center" style="width: 7%">repetition</th>
|
|
|
|
<th class="header text-center" style="width: 7%">regexp</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{% for passe in passes_list %}
|
|
|
|
<tr role="row" class="{% cycle 'odd' 'even' %}">
|
|
|
|
<td class="text-center">{{ passe.label }}</td>
|
|
|
|
<td class="text-center">{{ passe.educative }}</td>
|
|
|
|
<td class="text-center">{{ passe.repetition }}</td>
|
|
|
|
<td class="text-center">{{ passe.regexp }}</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2024-02-25 10:28:58 +01:00
|
|
|
{% else %}
|
2024-02-25 20:02:20 +01:00
|
|
|
<p class="muted-text">There are no passe corresponding to your criterias.</p>
|
2024-02-25 10:28:58 +01:00
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block footerscript %}
|
|
|
|
<script type="text/javascript">
|
2024-02-25 20:02:20 +01:00
|
|
|
// $(document).ready(function () {
|
|
|
|
// $('routine_table').tablesorter({
|
|
|
|
// {% if request.user|has_group:"trainer" %}
|
|
|
|
// headers: {
|
|
|
|
// 0: { sorter: false },
|
|
|
|
// },
|
|
|
|
// sortList: [[1, 0]],
|
|
|
|
// {% else %}
|
|
|
|
// sortList: [[0, 0]],
|
|
|
|
// {% endif %}
|
|
|
|
// });
|
2024-02-25 10:28:58 +01:00
|
|
|
|
2024-02-25 20:02:20 +01:00
|
|
|
// $('#routine_table').DataTable({
|
|
|
|
// scrollY: '50vh',
|
|
|
|
// scrollCollapse: true,
|
|
|
|
// paging: false,
|
|
|
|
// searching: false,
|
|
|
|
// ordering: false,
|
|
|
|
// "bInfo": false,
|
|
|
|
// });
|
|
|
|
// });
|
2024-02-25 10:28:58 +01:00
|
|
|
</script>
|
|
|
|
{% endblock %}
|