2020-02-17 15:52:31 +01:00
|
|
|
{% if skills.count >= 1 %}
|
|
|
|
<table class="table" id="objective_table">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th></th>
|
|
|
|
<th class="text-left">Label</th>
|
|
|
|
<th>Dif0f.</th>
|
|
|
|
<th>Level</th>
|
|
|
|
<th>Rank</th>
|
|
|
|
<th>Notation</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{% for skill in skills %}
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<div class="checkbox-inline custom-control custom-checkbox">
|
|
|
|
<label><input type="checkbox" class="select-row"><span class="custom-control-indicator"></span></label>
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
<td><a href="{% url 'skill_details' skill.id %}">{{ skill.longLabel }}</a></td>
|
|
|
|
<td>{{ skill.difficulty }}</td>
|
|
|
|
<td>{{ skill.level }}</td>
|
|
|
|
<td>{{ skill.rank }}</td>
|
|
|
|
<td>{{ skill.notation }}</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
$(document).ready(function(){
|
|
|
|
$('#objective_table').tablesorter({
|
|
|
|
headers: {
|
|
|
|
0: { sorter: false },
|
|
|
|
},
|
|
|
|
dateFormat: "uk",
|
|
|
|
sortList: [[1,1]]
|
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
|
|
|
{% else %}
|
2021-10-20 21:34:57 +02:00
|
|
|
There are no skill to display
|
2020-02-17 15:52:31 +01:00
|
|
|
{% endif %}
|