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

{% if score_id %}Edit{% else %}Add{% endif %} score

{% 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.event }} {{ form.event_related }} {% if form.event.errors %} {% endif %}
{{ form.routine_type }} {% if form.routine_type.errors %} {% for error in form.routine_type.errors %}{{ error }}{% endfor %}{% endif %}
{{ form.point_difficulty }} {% if form.point_difficulty.errors %} {% endif %}
{{ form.point_time_of_flight }} {% if form.point_time_of_flight.errors %} {% endif %}
{{ form.add_to_chrono }}   
{{ form.point_execution }} {% if form.point_execution.errors %} {% endif %}
{{ form.point_horizontal_displacement }} {% if form.point_horizontal_displacement.errors %} {% endif %}
{{ form.penality }} {% if form.penality.errors %} {% endif %}
{{ form.total }} {% if form.total.errors %} {% endif %}
{% endblock %} {% block footerscript %} {% if request.session.template == 0 %} {% else %} {% endif %} {% endblock %}