78 lines
3.1 KiB
HTML
78 lines
3.1 KiB
HTML
{% extends "listing.html" %}
|
|
|
|
{% block datacontent %}
|
|
<div class="card mb-0">
|
|
<div class="card-header">
|
|
<h4 class=""> Skills Listing</h4>
|
|
</div>
|
|
<div class="card-body">
|
|
<div class="table-responsive">
|
|
{% if skill_list %}
|
|
<table class="table tablesorter table-striped table-condensed" data-sort="table" id="maintable">
|
|
<thead class="text-primary">
|
|
<tr>
|
|
<th class="text-left"> Long Label</th>
|
|
<th class="text-left"> Short Label</th>
|
|
<th class="text-center"> Age Girl</th>
|
|
<th class="text-center"> Age Boy</th>
|
|
<th class="text-center">Notation</th>
|
|
<th class="header text-center">Diff.</th>
|
|
<th class="header text-center">Level</th>
|
|
<th class="header text-center">Rank</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for skill in skill_list %}
|
|
<tr>
|
|
<td class="text-left"> <a href="{% url 'skill_details' skill.id %}">{{ skill.long_label }}</a></td>
|
|
<td class="text-left"><a href="{% url 'skill_details' skill.id %}">{{ skill.short_label }}</a></td>
|
|
<td class="text-right">{{ skill.age_girl }}</td>
|
|
<td class="text-right">{{ skill.age_boy }}</td>
|
|
<td class="text-center">{{ skill.notation }}</td>
|
|
<td class="text-center">{{ skill.difficulty }}</td>
|
|
<td class="text-center">{{ skill.level }}</td>
|
|
<td class="text-center">{{ skill.rank }}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
{% else %}
|
|
There are no skills corresponding to your criterias.
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|
|
|
|
{% block pagination %}
|
|
{% if skills.has_previous and skills.has_next %}
|
|
<div class="table-full">
|
|
<div class="btn-group">
|
|
{% if skills.has_previous %}
|
|
<button type="button" class="btn btn-primary-outline">
|
|
<a href="?page={{ skills.previous_page_number }}"><<</a>
|
|
</button>
|
|
{% endif %}
|
|
<button type="button" class="btn btn-primary-outline"> {{ skills.number }} </button>
|
|
{% if skills.has_next %}
|
|
<button type="button" class="btn btn-primary-outline">
|
|
<a href="?page={{ skills.next_page_number }}">>></a>
|
|
</button>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
{% endblock %}
|
|
|
|
{% block footerscript %}
|
|
<script type="text/javascript">
|
|
$(document).ready(function() {
|
|
$('#maintable').tablesorter({
|
|
headers: {
|
|
4: { sorter: false },
|
|
},
|
|
sortList: [[4,0], [0,0]]
|
|
})
|
|
});
|
|
</script>
|
|
{% endblock %} |