{% extends "touchtechnology/admin/workbook/print.html" %} {% load i18n common %} {% block title %}{% block page_title %}{{ competition.title }} - {{ season.title }} • {{ date|date }}{% endblock %}{% endblock %} {% block extracss %} {% block customcss %}{% endblock %} {% endblock %} {% block back %}{% if season.urls.edit %}{% trans "Back to the season" %}{% endif %}{% endblock %} {% block content %}

{% trans "Match grid" %}

{{ competition.title }} · {{ season.title }}

{% for venue in season.venues.all %} {% for date, matrix in matrices.items %}

{{ date|date:"l j F Y" }} · {{ venue }}

{% for place in columns %} {% if place.ground.venue == venue %} {% endif %} {% endfor %} {% for time, data in matrix.items %} {% for place, matches in data.items %} {% if place.ground.venue == venue %} {% endif %} {% endfor %} {% endfor %}
{% trans "Kick-off" %}{% with title=place.abbreviation|default:place.title %}{% trans title %}{% endwith %}
{{ time|time:"H:i" }} {% for match in matches %} {% with division=match.stage.division stage=match.stage home=match.get_home_team away=match.get_away_team %}

{% block division %}{{ division.title|htmlentities }} {{ stage.title|htmlentities }}{% endblock %}

{% if match.label %}

{% trans match.label %}

{% endif %}

{% block teams %}{{ home.title|htmlentities }}
{{ away.title|htmlentities }}{% endblock %}

{% endwith %} {% endfor %}
{% endfor %} {% endfor %} {% endblock %}