{% extends "draw_base.html" %} {% load humanize static debate_tags i18n %} {% block page-alerts %}
{% include "draw_alerts_teams.html" %}
{% endblock %} {% block content %}
{% trans "Adjudicator Allocations" %}
{% with no_chair=round.num_debates_without_chair even_panel=round.num_debates_with_even_panel %} {% if active_adjs < debates_in_round %} {% trans "There are currently fewer adjudicators checked in than there are rooms." as message %} {% include "components/item-info.html" with nopad=True type="danger" text=message %} {% else %} {% include "draw_alerts_adjudicators.html" %} {% endif %} {# active_adjs < debates_in_round #} {% if round.is_break_round %} {% roundurl 'edit-debate-adjudicators-multi' as url %} {% trans "Edit adjudicator allocations for all current rounds" as title %} {% include "components/item-action.html" with text=title type="primary" %} {% elif tournament.current_rounds|length > 1 %} {% roundurl 'edit-debate-adjudicators-multi' as url %} {% trans "Edit adjudicator allocations for all panels in this schedule slot" as title %} {% include "components/item-action.html" with text=title type="primary" %} {% endif %} {% roundurl 'edit-debate-adjudicators' as url %} {% if active_adjs < debates_in_round or no_chair > 0 or round.ballots_per_debate == 'per-adj' and even_panel > 0 %} {% trans "Allocate adjudicators" as title %} {% include "components/item-action.html" with text=title type="success" to_complete=True %} {% else %} {% trans "Edit adjudicator allocation" as title %} {% include "components/item-action.html" with text=title type="primary" %} {% endif %} {% endwith %}
{% trans "Room Allocations" %}
{% include "draw_alerts_venues.html" %} {% if round.is_break_round %} {% roundurl 'edit-debate-venues-multi' round as url %} {% trans "Edit room allocation for all current rounds" as title %} {% include "components/item-action.html" with text=title type="primary" %} {% endif %} {% roundurl 'edit-debate-venues' round as url %} {% if round.num_debates_without_venue > 0 %} {% trans "Allocate rooms" as title %} {% include "components/item-action.html" with text=title type="success" to_complete=True %} {% else %} {% trans "Edit room allocation" as title %} {% include "components/item-action.html" with text=title type="primary" %} {% endif %}
{% with sides_unconfirmed=round.num_debates_with_sides_unconfirmed %} {% if sides_unconfirmed > 0 and pref.draw_side_allocations != 'manual-ballot' %}
{% trans "Side Allocations" %}
{% blocktrans trimmed asvar text count ndebates=sides_unconfirmed %} 1 debate does not have its sides confirmed. {% plural %} {{ ndebates }} debates do not have their sides confirmed. {% endblocktrans %} {% include "components/item-info.html" with nopad=True type="danger" %} {% roundurl 'edit-debate-teams' as url %} {% include "components/item-action.html" with text=_("Allocate Sides") type="success" to_complete=True %}
{% endif %} {% endwith %}
{{ block.super }} {% endblock %}