77 lines
3.4 KiB
HTML
77 lines
3.4 KiB
HTML
{% extends "listing.html" %}
|
|
|
|
{% block datacontent %}
|
|
<div class="card mb-0">
|
|
<div class="card-header">
|
|
<div class="row">
|
|
<div class="col-4">
|
|
<h4 class=""> Routines' Listing</h4>
|
|
</div>
|
|
<div class="col-1 ml-auto">
|
|
<div class="text-right">
|
|
<a href="{% url 'routine_create' %}">
|
|
<button type="submit" value="add" class="btn btn-icon btn-warning ">
|
|
<i class="tim-icons icon-simple-add"></i>
|
|
</button>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="card-body">
|
|
<div class="table-responsive">
|
|
{% if routine_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: 62%">Label</th>
|
|
<th class="header text-center" style="width: 10%">Compétitive ?</th>
|
|
<th class="header ext-center" style="width: 5%">Diff.</th>
|
|
<th class="header text-center" style="width: 5%">Level</th>
|
|
<th class="header text-center" style="width: 5%">Rank</th>
|
|
<th class="header text-center" style="width: 5%">Girl</th>
|
|
<th class="header text-center" style="width: 5%">Boy</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for routine in routine_list %}
|
|
<tr>
|
|
<td>
|
|
<a href="{% url 'routine_update' routine.id %}">
|
|
<button type="button" rel="tooltip" class="btn btn-link btn-sm btn-icon">
|
|
<span class="tim-icons icon-pencil text-warning"></span>
|
|
</button>
|
|
</a>
|
|
</td>
|
|
<td class="text-left"><a href="{% url 'routine_details' routine.id %}">{{ routine.long_label }}</a></td>
|
|
<td class="text-center">{% if routine.is_competitive %}<i class="fa fa-check text-success" aria-hidden="true"></i>{% else %}<i class="fa fa-times text-danger" aria-hidden="true"></i>{% endif %}</td>
|
|
<td class="text-center">{{ routine.difficulty }}</td>
|
|
<td class="text-center">{{ routine.level }}</td>
|
|
<td class="text-center">{{ routine.rank }}</td>
|
|
<td class="text-center">{{ routine.age_girl }}</td>
|
|
<td class="text-center">{{ routine.age_boy }}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
{% else %}
|
|
There are no routine 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
|
|
},
|
|
sortList: [[1,0]]
|
|
})
|
|
});
|
|
</script>
|
|
{% endblock %} |