93 lines
3.8 KiB
HTML
93 lines
3.8 KiB
HTML
|
{% extends "listing.html" %}
|
||
|
|
||
|
<!-- {% block page_title %}.: Skill's list :.{% endblock %}
|
||
|
|
||
|
{% block title %}Skills{% endblock %}
|
||
|
|
||
|
{% block searchurl %}skill{% endblock %}
|
||
|
|
||
|
{% block search %}skill{% endblock %} -->
|
||
|
|
||
|
{% block datacontent %}
|
||
|
<div class="card mb-0">
|
||
|
<div class="card-header">
|
||
|
<h4 class="card-title"> Skills' Listing</h4>
|
||
|
</div>
|
||
|
<div class="card-body">
|
||
|
<div class="table-responsive">
|
||
|
{% if skills %}
|
||
|
<table class="table tablesorter table-striped" id="maintable">
|
||
|
<thead class="text-primary">
|
||
|
<tr>
|
||
|
<!-- <th></th> -->
|
||
|
<th class="header">Label</th>
|
||
|
<th class="header text-center">Diff.</th>
|
||
|
<th class="text-center">Competitive</th>
|
||
|
<th class="header text-center">Level</th>
|
||
|
<th class="header text-center">Rank</th>
|
||
|
<th class="header text-center">Girl</th>
|
||
|
<th class="header text-center">Boy</th>
|
||
|
<th class="text-center">Notation</th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<tbody>
|
||
|
{% for skill in skills %}
|
||
|
<tr>
|
||
|
<!-- <td class="centered"> -->
|
||
|
<!-- <a href="{% url 'skill_details' skill.id %}"> -->
|
||
|
<!-- <span class="tim-icons icon-pencil text-warning"></span> -->
|
||
|
<!-- </a> -->
|
||
|
<!-- </td> -->
|
||
|
<td><a href="{% url 'skill_details' skill.id %}">{{ skill.longLabel }}</a></td>
|
||
|
<td class="text-center">{{ skill.difficulty }}</td>
|
||
|
<td class="text-center">{% if skill.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">{{ skill.level }}</td>
|
||
|
<td class="text-center">{{ skill.rank }}</td>
|
||
|
<td class="text-center">{% if skill.ageBoy %}{{ skill.ageBoy }}{% endif %}</td>
|
||
|
<td class="text-center">{% if skill.ageGirl %}{{ skill.ageGirl }}{% endif %}</td>
|
||
|
<td class="text-center">{{ skill.notation }}</td>
|
||
|
</tr>
|
||
|
{% endfor %}
|
||
|
</tbody>
|
||
|
</table>
|
||
|
{% else %}
|
||
|
<p>There no skill 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() {
|
||
|
$('#maintable').tablesorter({
|
||
|
headers: {
|
||
|
6: { sorter: false },
|
||
|
2: { sorter: false },
|
||
|
},
|
||
|
sortList: [[4,0], [0,0]]
|
||
|
})
|
||
|
});
|
||
|
</script>
|
||
|
{% endblock %}
|