{% extends "base.html" %} {% load debate_tags i18n humanize %} {% block page-subnav-sections %}
{% if round.is_break_round %}
{% csrf_token %}
{% else %}
{% csrf_token %}
{% if round.prev %}
{% csrf_token %}
{% endif %} {% endif %}
{% endblock %} {% block page-subnav-actions %} {% if round.draw_status != round.Status.NONE %} {% trans "View Draw" %} {% else %}
{% csrf_token %} {% if previous_unconfirmed %} {% elif availability_info.teams.in_now == 0 %} {% elif availability_info.adjs.in_now == 0 %} {% elif availability_info.venues.in_now == 0 %} {% elif min_venues > availability_info.venues.in_now %} {% elif min_adjudicators > availability_info.adjs.in_now %} {% elif pref.teams_in_debate == 2 and not availability_info.teams.in_now|divisibleby:2 %} {% elif pref.teams_in_debate == 4 and not availability_info.teams.in_now|divisibleby:4 %} {% else %} {% endif %}
{% endif %} {% endblock %} {% block page-alerts %} {% if previous_unconfirmed > 0 and round.prev and round.draw_type != round.DrawType.RANDOM and round.draw_type != round.DrawType.SEEDED and round.draw_type != round.DrawType.ROUNDROBIN %}
{% roundurl 'results-round-list' round=round.prev as prev_round_results_url %} {% blocktrans trimmed with prev_round=round.prev.name count previous_unconfirmed=previous_unconfirmed %} One debate from {{ prev_round }} does not have a completed ballot. This may lead to a draw that fails or is incorrect, depending on your draw rules. Enter results from {{ prev_round }}. {% plural %} {{ previous_unconfirmed }} debates from {{ prev_round }} do not have a completed ballot. This may lead to a draw that fails or is incorrect, depending on your draw rules. Enter results from {{ prev_round }}. {% endblocktrans %}
{% endif %} {% if not round.completed and round.prev and not round.prev.completed and not round.is_break_round %}
{% roundurl 'tournament-complete-round-check' round.prev as complete_prev_round_url %} {% blocktrans trimmed with round=round.name prev_round=round.prev.name %} This is a page for {{ round }}, but the previous round is still not marked as completed. Did you forget to mark {{ prev_round }} as completed? {% endblocktrans %}
{% endif %} {% url 'admin:tournaments_round_change' round.id as change_round_url %} {% tournamenturl 'breakqual-teams' round.break_category.slug as breakqual_teams_url %} {% if not round.prev and round.draw_type == round.DrawType.POWERPAIRED %}
{% blocktrans trimmed %} This is the first round, but its draw type is {{ draw_type }}. Did you intend for it to be Random or Seeded instead? You can edit this round's draw type in the Edit Database area. {% endblocktrans %}
{% endif %} {% if error_type == 'no_break_category' %}
{% blocktrans trimmed with draw_type=round.get_draw_type_display|lower %} This is an elimination round, but it doesn't have a break category. Elimination rounds must be associated with a break category. Please set this round's break category in the Edit Database area. {% endblocktrans %}
{% endif %} {% if round.is_break_round and round.draw_type != round.DrawType.ELIMINATION %}
{% blocktrans trimmed with draw_type=round.get_draw_type_display|lower %} This is an elimination round, but its draw type is {{ draw_type }}. The draw type of all elimination rounds must be "Elimination". Please change this round's draw type in the Edit Database area. {% endblocktrans %}
{% endif %} {% if round.is_break_round and not round.prev.is_break_round and availability_info.teams.total == 0 %}
{% blocktrans trimmed with break_category=round.break_category.name %} There don't appear to be any teams breaking in the {{ break_category }} Break. Have you generated the break for the {{ break_category }} Break yet? {% endblocktrans %}
{% endif %} {% if round.is_break_round and availability_info.teams.total == 1 %}
{% blocktrans trimmed with break_category=round.break_category.name %} There's only one team breaking in the {{ break_category }} Break. You can't generate an elimination round draw with only one team — you might like to review the break for the {{ break_category }} Break. {% endblocktrans %}
{% endif %} {% if has_seeds and round.draw_type == round.DrawType.RANDOM %}
{% blocktrans trimmed %} One or more teams have a seed assigned, but this round's draw type is not Seeded. {% endblocktrans %}
{% endif %} {% if pref.team_standings_precedence|length == 0 %} {% tournamenturl 'options-tournament-section' section='standings' as standings_config_url %} {% blocktrans trimmed asvar message %} The team standings precedence is empty. This means that teams aren't ranked according to any metrics, so all teams will be in a single bracket containing everyone. If this isn't what you intended, set the team standings precedence in the Standings section of this tournament's configuration before creating the draw. In most tournaments, the first metric should be points or wins. {% endblocktrans %} {% include "components/alert.html" with type="warning" icon="alert-circle" %} {% endif %} {% endblock %} {% block content %}
{% for type, info in availability_info.items %}
{% include 'checkin_progress.html' %}
{% endfor %}
{% endblock content %} {% block js %} {{ block.super }} {% if has_seeds and round.draw_type != round.DrawType.SEEDED %} {% endif %} {% endblock js %}