Bug fix on score_chrono
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Gregory Trullemans 2022-01-20 19:01:36 +01:00
parent e854fd9486
commit 5408d45e0a
1 changed files with 0 additions and 40 deletions

View File

@ -123,48 +123,8 @@
<div class="card-body pt-0 pb-0 pr-0 pl-0">
{% if chrono_list %}
<div>
<!-- <canvas id="chartSimpleWithGradient"></canvas> -->
<canvas id="chartjs_chrono" class="chartjs" width="400" height="200"></canvas>
</div>
<!-- <table class="table table-striped table-condensed tablesorter" id="chrono_table">
<thead>
<tr>
<th style="width: 5%">&nbsp;</th>
<th style="width: 10%" class="header">Date</th>
<th style="width: 35%" class="header text-left">Routine</th>
<th style="width: 25%" class="header">Type</th>
<th style="width: 25%" class="header text-center">Score</th>
</tr>
</thead>
<tbody>
{% for chrono in chrono_list %}
<tr>
<td>
<a href="{% url 'chrono_update' chrono.id %}">
<button type="button" rel="tooltip" class="btn btn-link btn-sm btn-icon">
<span class="tim-icons icon-pencil text-warning"></span>
</button>
</a>
</td>
<td>{{ chrono.date | date:"d-m-Y" }}</a></td>
<td class="text-left">{% if chrono.routine %}{{ chrono.routine.long_label }}{% else %}{{ chrono.get_type_display }}{% endif %}</a></td>
<td>{{ chrono.get_type_display }}</td>
<td class="text-center">{{ chrono.score }}</td>
</tr>
{% endfor %}
</tbody>
</table>
<script type="text/javascript">
$(document).ready(function() {
$('#chrono_table').tablesorter({
headers: {
0: { sorter: false },
},
dateFormat: "uk",
sortList: [[1,1],]
});
});
</script> -->
{% else %}
<p class="pl-3 text-muted">No chrono recorded for this gymnast.</p>
{% endif %}