Bug fix (format file)
This commit is contained in:
parent
7b5fd6b220
commit
55b9c37423
|
@ -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>
|
||||
|
|
|
@ -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: {
|
||||
|
|
Loading…
Reference in New Issue