{% extends "touchtechnology/admin/explorer/print.html" %} {% load i18n static common mathfilters %} {% block title %}{{ node|default:"Model draw generator" }}{% endblock %} {% block heading %}{{ node|default:"Model draw generator" }}{% endblock %} {% block subheading %}{% trans "A fair model draw to start from; adjust it to suit." %}{% endblock %} {% block extracss %} {% endblock %} {% block content %}
{% with field_template="touchtechnology/admin/explorer/templatetags/field.html" %}
{% for f in form %}{% field f %}{% endfor %}
{% endwith %}

{% block switch %}{% trans "Use a real division" %}{% endblock %}

{% if data %}

{% trans "Pools" %}

{% for pool in data.pools %}

{% blocktrans with n=forloop.counter %}Pool {{ n }}{% endblocktrans %}

    {% for team in pool %}
  1. {{ team }}{% if team.order %} ({{ team.order }}){% endif %}
  2. {% endfor %}
{% endfor %}
{% if form.get_absolute_url %}

{% blocktrans with url=form.get_absolute_url %}This is a real division: see how it was played.{% endblocktrans %}

{% endif %}

{% trans "Draw formats" %}

{% for format in data.draw_formats %}

{{ format.label }}

{% if forloop.last %}
{% for round in format.format %}{{ round|stringformat:"s" }}
{% endfor %}
{% else %}
{{ format.format }}
{% endif %}
{% endfor %}
{% endif %} {% endblock %}