{% extends "tournamentcontrol/competition/season.html" %} {% load i18n tz %} {% load common %} {% block content %}

{{ competition }} ‐ {{ season }}

{{ match.stage.division }}: {{ match }}

{{ match.datetime|timezone:match.play_at.timezone|date:"l jS F Y, g:i a e" }}

{% csrf_token %} {% for formset in formsets %} {{ formset.management_form }} {% with team=formset.queryset.team %}

{{ team.title }}

{% if not formset.is_valid and formset.non_form_errors %} {% endif %} {% for form in formset %} {% with player=form.instance.player errors=form.errors.items %} {% endwith %} {% empty %} {% endfor %}
# {% trans "Player" %} {% trans "Played" %} {% trans "Points" %} {% trans "MVP" %}
{{ form.number }} {{ player.first_name }} {{ player.last_name }} {% if errors %}
    {% for field, error_list in errors %} {% for msg in error_list %}
  • {{ msg }}
  • {% endfor %} {% endfor %}
{% endif %}
{{ form.played }} {{ form.points }} {{ form.id }}{% if form.mvp %}{{ form.mvp }}{% else %}-{% endif %}
{% trans "There are no registered players in this team." %}
{% endwith %} {% endfor %}

{% trans "Cancel" %}

{% endblock %}