diff --git a/templates/followup/heightweight/create.html b/templates/followup/heightweight/create.html index 7093412fe8..67be8782c7 100644 --- a/templates/followup/heightweight/create.html +++ b/templates/followup/heightweight/create.html @@ -10,6 +10,11 @@

{% if heightweight_id %}Edit{% else %}Add{% endif %} height/weight couple

+ {% if form.errors %} +
+ {{ form.errors }} +
+ {% endif %}
{% csrf_token %}
diff --git a/templates/followup/heightweight/list.html b/templates/followup/heightweight/list.html index a6bcb45e61..08b8b22a09 100644 --- a/templates/followup/heightweight/list.html +++ b/templates/followup/heightweight/list.html @@ -7,7 +7,7 @@
-

Height/Weight list {% if gymnast %}for {{ gymnast }}{% endif %}

+

Height/Weight list {% if gymnast %}for {{ gymnast }}{% endif %}

diff --git a/templates/followup/mindstates/list.html b/templates/followup/mindstates/list.html index 5e4abdc22c..d07f080388 100644 --- a/templates/followup/mindstates/list.html +++ b/templates/followup/mindstates/list.html @@ -7,7 +7,7 @@
-

Mind State list {% if gymnast %}for {{ gymnast }}{% endif %}

+

Mind State list {% if gymnast %}for {{ gymnast }}{% endif %}

@@ -41,7 +41,7 @@ {{ state.date | date:"d-m-Y" }} - {{ state.gymnast }} + {{ state.gymnast }} {{ state.score }} {% endfor %} diff --git a/templates/followup/scores/list.html b/templates/followup/scores/list.html index 802e7b9225..03696827c5 100644 --- a/templates/followup/scores/list.html +++ b/templates/followup/scores/list.html @@ -7,7 +7,7 @@
-

Scores listing {% if gymnast %}for {{ gymnast }}{% endif %}

+

Scores listing {% if gymnast %}for {{ gymnast }}{% endif %}

diff --git a/templates/people/gymnasts/tab_skill.html b/templates/people/gymnasts/tab_skill.html index 0ae59df225..fcfb703aad 100644 --- a/templates/people/gymnasts/tab_skill.html +++ b/templates/people/gymnasts/tab_skill.html @@ -296,7 +296,7 @@ {% if user_is_trainer %} - Actions + Actions {% endif %} Notation Label @@ -399,7 +399,7 @@ {% if user_is_trainer %} - Actions + Actions {% endif %} Notation Label diff --git a/ultron/followup/views.py b/ultron/followup/views.py index 1f19af1a02..69cbeddfe4 100644 --- a/ultron/followup/views.py +++ b/ultron/followup/views.py @@ -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)