{% extends "base.html" %} {% load static %} {% load has_group %} {% block content %}

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

{% if form.errors %}
{{ form.errors }}
{% endif %}
{% csrf_token %}
{% if request.user|has_group:"trainer" %} {{ form.gymnast }} {{ form.gymnast_related }} {% if form.gymnast.errors %} {% for error in form.gymnast.errors %}{{ error }}{% endfor %}{% endif %} {% else %} {% endif %}
{{ form.date }} {% if form.date.errors %}{% for error in form.date.errors %}{{ error }}{% endfor %}{% endif %}
{{ form.height }} {% 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 %}
{% endblock %} {% block footerscript %} {% if request.session.template == 0 %} {% else %} {% endif %} {% endblock %}