{% load add_field_css debate_tags i18n static %}
{% if form.errors %} {% trans "There are some problems with this scoresheet. Please review and correct them." as message %} {% include "components/form-errors.html" with errors=form.non_field_errors %} {% endif %} {% include "ballot/ballot_debate_info.html" %} {% for sheet in form.scoresheets %}
{% if sheet.adjudicator %} {% person_display_name sheet.adjudicator as adjudicator_name %} {% if sheet.adjudicator.institution %} {% blocktrans trimmed with name=adjudicator_name institution=sheet.adjudicator.institution.code asvar title %} Ballot from {{ name }} ({{ institution }}) {% endblocktrans %} {% else %} {% blocktrans trimmed with name=adjudicator_name asvar title %} Ballot from {{ name }} {% endblocktrans %} {% endif %} {% include "components/form-title.html" %} {% else %}

{% trans "Scoresheet" %}

{% for da in debate.adjudicators.voting_with_positions reversed %}

{{ da.0.name }} ({% if da.1 == "o" %}{% trans "Solo Chair" %}{% elif da.1 == "c" %}{% trans "Chair" %}{% elif da.1 == "p" %}{% trans "Panellist" %}{% elif da.1 == "t" %}{% trans "Trainee" %}{% endif %})

{% endfor %}
{% endif %} {% if form.choosing_sides %}
{% trans "Assign sides before entering scores" %}
{% endif %}
{% if form.has_scores %} {% for team in sheet.teams %} {% include "ballot/ballot_scoresheet.html" %} {% endfor %} {% else %} {% for checkbox in sheet.advancing %}
{{ checkbox|addboundwidgetcss:"form-check-input" }}
{% endfor %} {% endif %} {% if sheet.advancing.errors %}
{{ sheet.advancing.errors }}
{% endif %} {% if form.has_scores and pref.teams_in_debate == 2 %}
Pendebat terbaik pada borang ini

Lengkapkan nama dan markah ucapan utama.

{% endif %}
{% if form.using_declared_winner and form.has_scores %}
{% include "components/form-field.html" with field=sheet.declared_winner %}
{% endif %} {% if sheet.self_split %}
{% include "components/form-check.html" with field=sheet.self_split %}
{% endif %}
{% endfor %}