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

{% block head_title %}{{ tournament.display_name }} : Informations{% endblock %}
{% block first_title %}{{ tournament.event.display_name }}{% endblock %}
{% block second_title %}{{ tournament.display_name }}{% endblock %}

{% block content %}

{% load static %}
{% load tz %}

    {% include 'tournaments/navigation_tournament.html' %}

    <div class="grid-x">

        <div class="cell medium-6 large-6 my-block">
            <h1 class="club my-block topmargin20">{{ tournament.display_name }} {{ tournament.get_federal_age_category_display}}</h1 >

            <div class="bubble">
                <p>
                    <div class="semibold">{{ tournament.local_start_date_formatted }}</div>
                    <div>{{ tournament.day_duration_formatted }}</div>
                    <div>{{ tournament.court_count }} terrains</div>
                </p>

                <p>
                    <div class="semibold">{{ tournament.event.club.name }}</div>
                    {% if tournament.has_club_address %}
                    <div>{{ tournament.event.club.address }}</div>
                    <div>{{ tournament.event.club.city_zipcode }}</div>
                    {% endif %}
                </p>

                {% if tournament.event.creator %}
                <p>
                    <div class="semibold">Organisateur</div>
                    <div>{{ tournament.event.creator.full_name }}</div>
                </p>
                {% endif %}

            </div>
        </div>

    </div>

{% endblock %}
