{% extends 'tournaments/broadcast/broadcast_base.html' %}

{% load static %}

{% block head_title %}Broadcast{% endblock %}
{% block first_title %}{{ club.name }}{% endblock %}
{% block second_title %}Broadcast{% endblock %}

{% block content %}
<div class="grid-x">
    <div class="cell topblock my-block">
        <div class="bubble">

                {% for tournament in tournaments %}

                <div class="table-row-6-colums-club-tournament {% cycle 'even-row' 'odd-row' %}">
                    <div class="table-cell mybox center">{{ tournament.formatted_start_date }}</div>

                    <div class="tight table-cell">
                        <div class="large">{{ tournament.level }}</div>
                        <div class="small">{{ tournament.category }}</div>
                        {% if tournament.age %}
                        <div class="small">{{ tournament.age }}</div>
                        {% endif %}
                    </div>
                    <div class="tight table-cell">
                        <span>{{ tournament.creator }}</span>
                    </div>
                    <div class="tight table-cell">
                        <span>{{ tournament.private_label }}</span>
                    </div>
                    <div class="table-cell">
                        <span><a href="{% url 'automatic-broadcast' tournament.id %}">Automatic</a></span> |
                        <span><a href="{% url 'broadcasted-bracket' tournament.id %}">(beta) Tableau</a></span> |
                        <span><a href="{% url 'broadcasted-prog' tournament.id %}">(beta) Programmation</a></span> |
                        <span><a href="{% url 'broadcasted-matches' tournament.id %}">Matchs</a></span> |
                        <span><a href="{% url 'broadcasted-group-stages' tournament.id %}">Poules</a></span> |
                        <span><a href="{% url 'broadcasted-summons' tournament.id %}">Convocations</a></span> |
                        <span><a href="{% url 'broadcasted-rankings' tournament.id %}">Classement</a></span>
                    </div>

                    <div class="table-cell horizontal-padding semibold">
                        {% if tournament.name_and_event %}
                        <span>{{ tournament.name_and_event }}</span>
                        {% endif %}
                    </div>
                </div>

                {% endfor %}
        </div>
    </div>
</div>

{% endblock %}
