From 7ff74c743b9edce58f86be999250cc85b52a44da Mon Sep 17 00:00:00 2001 From: Gregory Trullemans Date: Wed, 22 Dec 2021 14:47:00 +0100 Subject: [PATCH] Adding Hips Height in followup --- templates/followup/heightweight/create.html | 11 +++++++-- templates/followup/heightweight/list.html | 2 ++ templates/peoples/gymnasts/list_routine.html | 2 +- .../peoples/gymnasts/list_scores_chronos.html | 6 ++--- .../gymnasts/physiological_followup.html | 4 ++-- ultron/followup/admin.py | 2 +- ultron/followup/forms.py | 5 +++- .../migrations/0009_auto_20211222_1318.py | 24 +++++++++++++++++++ ultron/followup/models.py | 4 +++- ultron/followup/views.py | 3 ++- 10 files changed, 50 insertions(+), 13 deletions(-) create mode 100644 ultron/followup/migrations/0009_auto_20211222_1318.py diff --git a/templates/followup/heightweight/create.html b/templates/followup/heightweight/create.html index f2daa512df..14bc9d842f 100644 --- a/templates/followup/heightweight/create.html +++ b/templates/followup/heightweight/create.html @@ -30,11 +30,18 @@
{{ form.height }} - {% if form.height.errors %} {% for error in form.skill.errors %}{{error}}{% endfor %}{% endif %} + {% if form.height.errors %} {% for error in form.height.errors %}{{error}}{% endfor %}{% endif %}
- + +
+ {{ form.hips_height }} + {% if form.hips_height.errors %} {% for error in form.hips_height.errors %}{{error}}{% endfor %}{% endif %} +
+
+
+
{{ form.weight }} {% if form.weight.errors %} {% for error in form.weight.errors %}{{error}}{% endfor %}{% endif %} diff --git a/templates/followup/heightweight/list.html b/templates/followup/heightweight/list.html index 0ae7f155db..6d5c9df260 100644 --- a/templates/followup/heightweight/list.html +++ b/templates/followup/heightweight/list.html @@ -16,6 +16,7 @@ Date Gymnast Height + Hips height Weight @@ -30,6 +31,7 @@ {{ heightweight.date | date:"d-m-Y" }} {{ heightweight.gymnast }} {{ heightweight.height }} + {{ heightweight.hips_height }} {{ heightweight.weight }} {% endfor %} diff --git a/templates/peoples/gymnasts/list_routine.html b/templates/peoples/gymnasts/list_routine.html index 79c7768a9b..a790271daf 100644 --- a/templates/peoples/gymnasts/list_routine.html +++ b/templates/peoples/gymnasts/list_routine.html @@ -41,7 +41,7 @@ {% else %} -

There are no routines corresponding to your criterias

+

There are no routines associated to this gymnast.

{% endif %}
{% else %} -
-

No score recorded for this gymnast.

-
+

No score recorded for this gymnast.

{% endif %} {% else %} -

No height/weight recorded for this gymnast.

+

No height/weight recorded for this gymnast.

{% endif %}
{% else %} -

No mindstate recorded for this gymnast.

+

No mindstate recorded for this gymnast.

{% endif %}