Ultron/templates/objectives/skills/list.html

87 lines
3.5 KiB
HTML
Raw Normal View History

2021-11-11 15:21:48 +01:00
{% extends "listing.html" %}
{% block datacontent %}
<div class="card mb-0">
<div class="card-header">
2021-11-30 18:45:03 +01:00
<h4 class=""> Skills Listing</h4>
2021-11-11 15:21:48 +01:00
</div>
2021-12-30 07:26:34 +01:00
<div class="card-body pt-0">
2021-11-11 15:21:48 +01:00
<div class="table-responsive">
{% if skill_list %}
<table class="table tablesorter table-striped" data-sort="table" id="skill_table">
2021-11-11 15:21:48 +01:00
<thead class="text-primary">
<tr>
2021-12-09 18:17:30 +01:00
<th class="text-left">&nbsp;Long Label</th>
<th class="text-left">&nbsp;Short Label</th>
2021-12-13 11:26:44 +01:00
<th class="text-center">&nbsp;Age Girl</th>
<th class="text-center">&nbsp;Age Boy</th>
2021-11-11 15:21:48 +01:00
<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 role="row" class="{% cycle 'odd' 'even' %}">
2021-12-09 18:17:30 +01:00
<td class="text-left">&nbsp;<a href="{% url 'skill_details' skill.id %}">{{ skill.long_label }}</a></td>
2021-12-13 11:26:44 +01:00
<td class="text-left"><a href="{% url 'skill_details' skill.id %}">{{ skill.short_label }}</a></td>
2022-01-08 11:40:10 +01:00
<td class="text-right">{{ skill.age_girl_without_help }}</td>
<td class="text-right">{{ skill.age_boy_without_help }}</td>
<td class="text-center">{{ skill.notation }}</td>
2021-11-11 15:21:48 +01:00
<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>
2021-11-11 15:21:48 +01:00
{% 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">&nbsp;{{ skills.number }}&nbsp;</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({
2021-11-11 15:21:48 +01:00
headers: {
2021-12-13 11:26:44 +01:00
4: { sorter: false },
2021-11-11 15:21:48 +01:00
},
sortList: [[0,0], [1,0]]
2021-11-11 15:21:48 +01:00
})
$('#skill_table').DataTable({
2021-12-30 08:28:31 +01:00
scrollY: 500,
2021-12-30 07:15:07 +01:00
scrollCollapse: true,
paging: false,
searching: false,
ordering: false,
"bInfo" : false,
});
2021-11-11 15:21:48 +01:00
});
</script>
{% endblock %}