{% extends 'tournaments/base.html' %}

{% block head_title %}Équipes du {{ tournament.display_name }}{% endblock %}
{% block first_title %}{{ tournament.event.display_name }}{% endblock %}
{% block second_title %}{{ tournament.display_name }}{% endblock %}
{% block title_link %}{% url 'tournament' tournament.id %}{% endblock %}

{% block content %}
{% load static %}

{% if tournament.display_teams %}
    {% include 'tournaments/navigation_tournament.html' %}
    <div class="grid-x padding-bottom">
        <div class="cell medium-6 large-6 my-block">
            {% if selected_teams|length > 0 %}
                <label class="title topmargin20">Équipes sélectionnées : {{ selected_teams|length }}</label>

                <div class="bubble">

                    {% for team in selected_teams %}
                        {% include 'tournaments/team_row.html' %}
                    {% endfor %}

                </div>
            {% endif %}

            {% if waiting_teams|length > 0 %}
                <label class="title topmargin20">Équipes en attente : {{ waiting_teams|length }}</label>

                <div class="bubble">
                    {% for team in waiting_teams %}
                        {% include 'tournaments/team_row.html' %}
                    {% endfor %}
                </div>
            {% endif %}
        </div>
    </div>
{% endif %}
{% endblock %}
