{% extends "touchtechnology/admin/explorer/form_page.html" %} {% load i18n tz common admin admin_explorer %} {% block page_title %}{{ match }}{% endblock %} {% block page_kind %}{% with tz=match.play_at.timezone|default:match.stage.division.season.timezone %}{{ match.stage.division }} – {{ match.datetime|timezone:tz|date:"l j F Y, g:i a" }}{% endwith %}{% endblock %} {% block page_icon %}{% icon "chart" %}{% endblock %} {% block cancel-url %}{{ match.urls.edit }}{% endblock %} {% block form-body %}

{% trans "Who played, who scored, and the most valuable player votes." %}

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

{% icon "team" %}{{ team.title }}

{% if not formset.is_valid and formset.non_form_errors %} {% endif %}
{% for form in formset %} {% with player=form.instance.player %} {% endwith %} {% empty %} {% endfor %}
# {% trans "Player" %} {% trans "Played" %} {% trans "Points" %} {% trans "MVP" %}
{{ form.number|widget }} {{ player.first_name }} {{ player.last_name }} {% if form.errors %}
    {% for field, errors in form.errors.items %}{% for msg in errors %}
  • {{ msg }}
  • {% endfor %}{% endfor %}
{% endif %}
{{ form.played|widget }} {{ form.points|widget }} {{ form.id }}{% if form.mvp %}{{ form.mvp|widget }}{% else %}–{% endif %}
{% trans "No player is registered in this team." %}
{% endwith %} {% endfor %}
{% endblock %}