Bug fix (format file)

This commit is contained in:
Gregory Trullemans 2022-11-02 17:27:48 +01:00
parent 7b5fd6b220
commit 55b9c37423
2 changed files with 15 additions and 17 deletions

View File

@ -7,9 +7,7 @@
<div class="card">
<div class="card-header row">
<div class="col-8">
<h4 class="">Mind State list {% if gymnast %}for <a
href="{% url 'gymnast_details_tab' gymnast.id 'physiological' %}"><i>{{ gymnast }}</i></a>{%
endif %}</h4>
<h4 class="">Mind State list {% if gymnast %}for <a href="{% url 'gymnast_details_tab' gymnast.id 'physiological' %}"><i>{{ gymnast }}</i></a>{% endif %}</h4>
</div>
<div class="col-1 ml-auto">
<div class="text-right">
@ -50,7 +48,7 @@
</tbody>
</table>
{% else %}
<p class="text-muted">There are no scores corresponding to your criterias</p>
<p class="text-muted">There are no mindstates corresponding to your criterias</p>
{% endif %}
</div>
</div>

View File

@ -54,7 +54,7 @@
});
</script>
{% else %}
<p class="text-muted">No mindstate recorded for this gymnast.</p>
<p class="text-muted">No mindstate recorded for this gymnast.</p>
{% endif %}
</div>
<div class="card-footer text-right text-muted pt-0">
@ -77,20 +77,20 @@
datasets: [
{% if mindstate_list %}
{
label: 'Mindstate',
backgroundColor: 'rgb(255, 99, 132, 0.25)',
borderColor: 'rgb(255, 99, 132)',
fill: true,
data: [
{% for state in mindstate_list %}
{
x: '{{ state.date | date:"d-m-Y" }}',
y: '{{ state.score }}'
},
{% endfor %}
label: 'Mindstate',
backgroundColor: 'rgb(255, 99, 132, 0.25)',
borderColor: 'rgb(255, 99, 132)',
fill: true,
data: [
{% for state in mindstate_list %}
{
x: '{{ state.date | date:"d-m-Y" }}',
y: '{{ state.score }}'
},
{% endfor %}
]
},
{% endif %}
{% endif %}
],
},
options: {