{% extends "tournamentcontrol/competition/admin/workbook/base.html" %} {% load i18n tz common admin_workbook %} {% block page_title %}{% trans "Detailed result" %} · {{ match }}{% endblock %} {% block content %}

{% icon "chart-bar" %}{% trans "Detailed result" %} · {{ match.stage.division }}

{{ match }}

{% with tz=match.play_at.timezone|default:match.stage.division.season.timezone %}

{{ match.datetime|timezone:tz|date:"l j F Y, H:i" }}{% if match.play_at %} · {{ match.play_at.title }}{% endif %}

{% endwith %}
{% csrf_token %}

{% trans "Who played, who scored" %}

{% trans "Cancel" %}
{% 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|control }} {{ player.first_name }} {{ player.last_name }} {% for field, error_list in errors %}{% for msg in error_list %}{{ msg }}{% endfor %}{% endfor %} {{ form.played|control }} {{ form.points|control }} {{ form.id }}{% if form.mvp %}{{ form.mvp|control }}{% else %}–{% endif %}
{% trans "There are no registered players in this team." %}
{% endwith %} {% endfor %}
{% endblock %}