{% load i18n %}
{# Displayed only if the tournament has started #}

{% trans "Last dices" %}

{# Display last dices of all teams #} {% for td in tournament.draw.current_round.team_draws %}
{{ td.participation.team.trigram }} 🎲 {{ td.last_dice|default:'??' }}
{% endfor %}
Recap {% if user.registration.is_volunteer %} {% endif %}
{% for round in tournament.draw.round_set.all %} {# For each round, add a recap of drawn problems #}
{{ round }}
    {% for pool in round.pool_set.all %} {# Add one item per pool #}
  • {{ pool }}
      {% for td in pool.team_draws.all %} {# Add teams of the pool #}
    • {# Add the accepted problem, if existing #}
      {{ td.participation.team.trigram }} 📃 {{ td.accepted|default:'?' }}
      {# Add the rejected problems #}
      🗑️ {{ td.rejected|join:', ' }}
      {% if td.penalty %} {# If needed, add the penalty of the team #}
      ❌ {{ td.penalty }} %
      {% endif %}
    • {% endfor %}
  • {% endfor %}
{% endfor %}
{# Display the insctructions of the draw to the teams #} {{ tournament.draw.information|safe }}
{# Display the dice interface if this is the time for it #} {# ie. if we are in the state where teams must launch a dice to choose the passage order or the choice order and we are in a team in the good pool, or a volunteer #}

{% trans "Launch dice" %}

{# Display the box only if needed #}

{% trans "Draw a problem" %}

{# Display buttons if a problem has been drawn and we are waiting for its acceptation or reject #}
{% if user.registration.is_volunteer %} {# Volunteers can export the draw if possible #} {% if tournament.final %} {# Volunteers can continue the second round for the final tournament #} {% endif %} {% endif %}
{% if user.registration.is_admin %}
{% trans "Draw dice for" %} {% regroup tournament.draw.current_round.team_draws by last_dice as td_dices %} {% for group in td_dices %} {% if group.grouper is None %} {{ group }} {% with group.list|first as td %} {{ td.participation.team.trigram }} {% endwith %} {% endif %} {% endfor %}
{% for i in range_100 %} {% endfor %}
{% for i in range_10 %} {% endfor %}
{% trans "Draw problem for" %} {{ tournament.draw.current_round.current_pool.current_team.participation.team.trigram }}
{% for problem in problems %} {% endfor %}
{% endif %}
{# Display tables with the advancement of the draw below #} {% for round in tournament.draw.round_set.all %}

{{ round }}

{% for pool in round.pool_set.all %} {# Draw one table per pool #} {% if pool.teamdraw_set.count %}

{{ pool }}

{# One column per phase #} {% if pool.size == 4 %} {% endif %} {% if pool.size == 5 %} {% endif %} {% for td in pool.team_draws.all %} {% endfor %} {# Draw the order regarding the pool size #} {% for td in pool.team_draws %} {% if pool.size == 3 %} {% if forloop.counter == 1 %} {% elif forloop.counter == 2 %} {% elif forloop.counter == 3 %} {% endif %} {% elif pool.size == 4 %} {% if forloop.counter == 1 %} {% elif forloop.counter == 2 %} {% elif forloop.counter == 3 %} {% elif forloop.counter == 4 %} {% endif %} {% elif pool.size == 5 %} {% if forloop.counter == 1 %} {% elif forloop.counter == 2 %} {% elif forloop.counter == 3 %} {% elif forloop.counter == 4 %} {% elif forloop.counter == 5 %} {% endif %} {% endif %} {% endfor %}
{% trans "team"|capfirst %} Phase 1 Phase 2 Phase 3Phase 4
{% trans "Room" %} 1 {% trans "Room" %} 2 {% trans "Room" %} 1 {% trans "Room" %} 2 {% trans "Room" %} 1
Pb. {{ td.accepted|default:"?" }}
{{ td.participation.team.trigram }}{% trans "Rep" context "Role abbreviation" %} {% trans "Rev" context "Role abbreviation" %} {% trans "Opp" context "Role abbreviation" %}{% trans "Opp" context "Role abbreviation" %} {% trans "Rep" context "Role abbreviation" %} {% trans "Rev" context "Role abbreviation" %}{% trans "Rev" context "Role abbreviation" %} {% trans "Opp" context "Role abbreviation" %} {% trans "Rep" context "Role abbreviation" %}{% trans "Rep" context "Role abbreviation" %} {% if TFJM.APP == "ETEAM" %}{% trans "Obs" context "Role abbreviation" %}{% endif %} {% trans "Rev" context "Role abbreviation" %} {% trans "Opp" context "Role abbreviation" %}{% trans "Opp" context "Role abbreviation" %} {% trans "Rep" context "Role abbreviation" %} {% if TFJM.APP == "ETEAM" %}{% trans "Obs" context "Role abbreviation" %}{% endif %} {% trans "Rev" context "Role abbreviation" %}{% trans "Rev" context "Role abbreviation" %} {% trans "Opp" context "Role abbreviation" %} {% trans "Rep" context "Role abbreviation" %} {% if TFJM.APP == "ETEAM" %}{% trans "Obs" context "Role abbreviation" %}{% endif %}{% if TFJM.APP == "ETEAM" %}{% trans "Obs" context "Role abbreviation" %}{% endif %} {% trans "Rev" context "Role abbreviation" %} {% trans "Opp" context "Role abbreviation" %} {% trans "Rep" context "Role abbreviation" %}{% trans "Rep" context "Role abbreviation" %} {% trans "Rev" context "Role abbreviation" %} {% trans "Opp" context "Role abbreviation" %} {% if TFJM.APP == "ETEAM" %}{% trans "Obs" context "Role abbreviation" %}{% endif %}{% if TFJM.APP == "ETEAM" %}{% trans "Obs" context "Role abbreviation" %}{% endif %} {% trans "Rep" context "Role abbreviation" %} {% trans "Rev" context "Role abbreviation" %} {% trans "Opp" context "Role abbreviation" %}{% trans "Opp" context "Role abbreviation" %} {% if TFJM.APP == "ETEAM" %}{% trans "Obs" context "Role abbreviation" %}{% endif %} {% trans "Rep" context "Role abbreviation" %} {% trans "Rev" context "Role abbreviation" %}{% trans "Rev" context "Role abbreviation" %} {% trans "Opp" context "Role abbreviation" %} {% if TFJM.APP == "ETEAM" %}{% trans "Obs" context "Role abbreviation" %}{% endif %} {% trans "Rep" context "Role abbreviation" %} {% trans "Rev" context "Role abbreviation" %} {% trans "Opp" context "Role abbreviation" %} {% if TFJM.APP == "ETEAM" %}{% trans "Obs" context "Role abbreviation" %}{% endif %} {% trans "Rep" context "Role abbreviation" %}
{% endif %} {% endfor %}
{% endfor %}
{% if user.registration.is_volunteer %} {# Volunteers can click on this button to abort the draw #}
{% endif %}