{% extends "base.html" %} {% load debate_tags add_field_css i18n %} {% block page-title %}Debate Team Error{% endblock %} {% block head-title %} ‼️{% trans "Debate Team Missing" %} {% endblock %} {% block content %}

{% blocktrans trimmed %} TAB DEBAT MALAYSIA always requires that, in every debate, one and only one team is assigned to each side. When that is not the case, this error occurs. Usually, this is the result of debates having been manually edited. {% endblocktrans %}

{% blocktrans trimmed %} A list of offending debates is presented below. To fix them, you'll need to do the following: {% endblocktrans %}

  1. {# Translators: This is in a list of instructions. #} {% blocktrans trimmed %} Click the Fix this debate button for that debate. {% endblocktrans %}
  2. {# Translators: This is in a list of instructions. #} {% blocktrans trimmed %} Ensure that every side that should be present in the debate is present and has a team assigned. If a team is missing, find an empty row and use the magnifying glass to select a team. Then set the new team's side accordingly. {% endblocktrans %}
  3. {# Translators: This is in a list of instructions. #} {% blocktrans trimmed %} Ensure that no side appears more than once in the debate. {% endblocktrans %}
  4. {# Translators: This is in a list of instructions. #} {% blocktrans trimmed %} Save the changes. {% endblocktrans %}

{% blocktrans trimmed %} Once you've fixed all the debates, you should then be able to return to whatever page you were originally on without the error reoccurring. {% endblocktrans %} {% url 'admin:draw_debate_changelist' as edit_debates_url %} {% blocktrans trimmed %} You can also see all the debates in the Debates section of the Edit Database Area. {% endblocktrans %}

{% for side in side_names %} {% endfor %} {% for debate in incomplete_debates %} {% for teams_on_side in debate.teams_on_each_side.values %} {% with nteams=teams_on_side|length %} {% if nteams == 0 %} {% elif nteams == 1 %} {% else %} {% endif %} {% endwith %} {% endfor %} {% empty %} {% endfor %}
{% trans "Debate ID" %} {% blocktrans trimmed %} Teams on {{ side }} {% endblocktrans %} {% trans "Link to fix this debate" %}
{{ debate.id }} {% trans "No teams" %} {{ teams_on_side.0.short_name }} {% trans "Multiple teams" %}
{% for team in teams_on_side %} {{ team.short_name }}
{% endfor %}
{% trans "Fix this debate" context "button label" %}

{% trans "It looks like all debates are in good shape!" %}

{% trans "If you keep getting redirected to this page and you're not sure why, please contact the developers of TAB DEBAT MALAYSIA." %}

{% endblock %}