{% extends "tournamentcontrol/competition/admin/workbook/base.html" %} {% load i18n common admin_workbook %} {% block page_title %}{% trans "Progress teams" %}{% endblock %} {% block content %} {% trans "Finals and later stages" as eyebrow %}{% trans "Progress teams" as title %} {% if date %}{% blocktrans asvar lede with date=date|date:"l j F Y" %}Choose the teams that go through to each match on {{ date }}.{% endblocktrans %}{% else %}{% blocktrans asvar lede with division=stage.division.title stage=stage.title %}Choose the teams that go through to each match of {{ stage }} in {{ division }}.{% endblocktrans %}{% endif %} {% include "tournamentcontrol/competition/admin/workbook/_page_head.html" %}
{% csrf_token %} {{ formset.management_form }}

{% trans "Matches" %}

{% trans "Cancel" %}
{% include "touchtechnology/admin/workbook/_problems.html" with form=None %}
{% for form in formset.forms %} {% with match=form.instance %}
{% if match.label %}{{ match.label }}{% else %}{% blocktrans with num=match.round %}Round {{ num }}{% endblocktrans %}{% endif %} {{ match.stage.title }} {{ form.id }}
{% trans "Home" %}: {{ match.get_home_team.title|default:match.get_home_team_plain }} {% if form.home_team %}{{ form.home_team|control }}{% endif %}
{% trans "Away" %}: {{ match.get_away_team.title|default:match.get_away_team_plain }} {% if form.away_team %}{{ form.away_team|control }}{% endif %}
{% endwith %} {% empty %}

{% trans "There are no matches that require progression." %}

{% endfor %}
{% endblock %}