{% load add_field_css debate_tags i18n %}
{{ position.name }}
{% if forloop.parentloop.parentloop.first %} {# On the first form, display the speaker selection dropdown. #} {{ position.speaker|addcss:"js-speaker form-control custom-select" }} {{ position.speaker.errors }} {% else %} {# On every other form, display a disabled field that JavaScript will populate when the selection in the first form changes. #}
{% endif %}
{% if position.srank %}
{{ position.srank|addcss:"form-control" }} {{ position.srank.errors }}
{% endif %}
{% for criterion, field in position.criteria %}
{{ criterion.name }} ({{ criterion.min_score }}–{{ criterion.max_score }}) {{ field|addcss:"form-control" }} {{ field.errors }}
{% endfor %}
{{ position.score|addcss:"form-control total" }} {{ position.score.errors }}