87 lines
3.6 KiB
HTML
87 lines
3.6 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" data-sort="table" id="skill_table">
|
||
|
<thead class="text-primary">
|
||
|
<tr>
|
||
|
<th class="text-left" style="width: 35%"> Long Label</th>
|
||
|
<th class="text-left" style="width: 20%"> Short Label</th>
|
||
|
<th class="text-center">Notation</th>
|
||
|
<th class="text-center"><i class="far fa-venus"></i></th>
|
||
|
<th class="text-center"><i class="far fa-mars"></i></th>
|
||
|
<th class="header text-center" style="width: 7%">Diff.</th>
|
||
|
<th class="header text-center" style="width: 7%">Level</th>
|
||
|
<th class="header text-center" style="width: 7%">Rank</th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<tbody>
|
||
|
{% for skill in skill_list %}
|
||
|
<tr role="row" class="{% cycle 'odd' 'even' %}">
|
||
|
<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-center">{{ skill.notation }}</td>
|
||
|
<td class="text-center">{{ skill.age_girl_without_help }}</td>
|
||
|
<td class="text-center">{{ skill.age_boy_without_help }}</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 %}
|
||
|
<p class="muted-text">There are no skills corresponding to your criterias.</p>
|
||
|
{% 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() {
|
||
|
$('#skill_table').tablesorter({
|
||
|
headers: {
|
||
|
2: { sorter: false },
|
||
|
},
|
||
|
sortList: [[0,0], [1,0]]
|
||
|
})
|
||
|
|
||
|
$('#skill_table').DataTable({
|
||
|
scrollY: 500,
|
||
|
scrollCollapse: true,
|
||
|
paging: false,
|
||
|
searching: false,
|
||
|
ordering: false,
|
||
|
// "bInfo" : false,
|
||
|
});
|
||
|
});
|
||
|
</script>
|
||
|
{% endblock %}
|