Update ChartJS to 3.9.1

This commit is contained in:
Gregory Trullemans 2022-10-13 12:20:05 +02:00
parent 5bd3dc47a8
commit aafaeaa499
6 changed files with 12 additions and 6 deletions

View File

@ -10,6 +10,11 @@
<h4 class="">{% if heightweight_id %}Edit{% else %}Add{% endif %} height/weight couple</h4>
</div>
<div class="card-body">
{% if form.errors %}
<div class="alert alert-danger">
{{ form.errors }}
</div>
{% endif %}
<form action="{% if heightweight_id %}{% url 'heightweight_update' heightweight_id %}{% else %}{% url 'heightweight_create' %}{% endif %}" method="post" class="form-horizontal" id="formulaire" name="formulaire">
{% csrf_token %}
<div class="form-group row ">

View File

@ -7,7 +7,7 @@
<div class="card">
<div class="card-header row">
<div class="col-8">
<h4 class="">Height/Weight list {% if gymnast %}for <i>{{ gymnast }}</i>{% endif %}</h4>
<h4 class="">Height/Weight 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">

View File

@ -7,7 +7,7 @@
<div class="card">
<div class="card-header row">
<div class="col-8">
<h4 class="">Mind State list {% if gymnast %}for <i>{{ gymnast }}</i>{% 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">
@ -41,7 +41,7 @@
</a>
</td>
<td class="text-left">{{ state.date | date:"d-m-Y" }}</td>
<td class="text-left"><a href="{% url 'gymnast_details' state.gymnast.id %}">{{ state.gymnast }}</a></td>
<td class="text-left"><a href="{% url 'gymnast_details_tab' state.gymnast.id 'physiological' %}">{{ state.gymnast }}</a></td>
<td>{{ state.score }}</td>
</tr>
{% endfor %}

View File

@ -7,7 +7,7 @@
<div class="card">
<div class="card-header row">
<div class="col-8">
<h4 class="">Scores listing {% if gymnast %}for <i>{{ gymnast }}</i>{% endif %}</h4>
<h4 class="">Scores listing {% if gymnast %}for <a href="{% url 'gymnast_details_tab' gymnast.id 'scores' %}"><i>{{ gymnast }}</i></a>{% endif %}</h4>
</div>
<div class="col-1 ml-auto">
<div class="text-right">

View File

@ -296,7 +296,7 @@
<thead>
<tr>
{% if user_is_trainer %}
<th style="width: 13%">Actions</th>
<th style="width: 15%">Actions</th>
{% endif %}
<th style="width: 10%">Notation</th>
<th class="header text-left" style="width: 50%">Label</th>
@ -399,7 +399,7 @@
<thead>
<tr>
{% if user_is_trainer %}
<th style="width: 13%">Actions</th>
<th style="width: 15%">Actions</th>
{% endif %}
<th style="width: 10%">Notation</th>
<th class="header text-left" style="width: 50%">Label</th>

View File

@ -531,6 +531,7 @@ def heightweight_create_or_update(request, heightweight_id=None, gymnast_id=None
reverse("gymnast_details_tab", args=(form.cleaned_data["gymnast"].id, 'physiological'))
)
else:
print(form.errors)
return render(request, "followup/heightweight/create.html", {"form": form})
form = HeightWeightForm(instance=heightweight, initial=data)