You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
101 lines
3.4 KiB
101 lines
3.4 KiB
{% extends 'tournaments/base.html' %}
|
|
|
|
{% block head_title %}Tournois{% if club %} {{ club.name }}{% endif %}{% endblock %}
|
|
{% block first_title %}{% if club %}{{ club.name }}{% else %}Padel Club{% endif %}{% endblock %}
|
|
{% block second_title %}{% if club %}Les Tournois du Club{% else %}Tournois{% endif %}{% endblock %}
|
|
|
|
{% block right_header %}
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
|
|
{% include 'tournaments/navigation_base.html' %}
|
|
|
|
<div class="grid-x">
|
|
|
|
{% if live or future %}
|
|
<div class="cell medium-12 large-6 topblock padding10">
|
|
|
|
<div>
|
|
|
|
{% if live %}
|
|
|
|
<div class="table-row-5-colums-tournament header">
|
|
<label class="title">En cours</label>
|
|
</div>
|
|
|
|
|
|
{% for tournament in live %}
|
|
{% include 'tournaments/tournament_row.html' %}
|
|
{% endfor %}
|
|
|
|
<div class="table-row-5-colums-tournament footer">
|
|
{% if live|length >= 10 %}
|
|
<div class="small">
|
|
{% if club %}
|
|
<a href="{% url 'tournaments' %}?filter=1&club={{ club.id }}">voir tous les tournois en cours</a>
|
|
{% else %}
|
|
<a href="{% url 'tournaments' %}?filter=1">voir tous les tournois en cours</a>
|
|
{% endif %}
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
{% if future %}
|
|
|
|
<div class="table-row-5-colums-tournament header">
|
|
<label class="title">À venir</label>
|
|
</div>
|
|
|
|
{% for tournament in future %}
|
|
{% include 'tournaments/tournament_row.html' %}
|
|
{% endfor %}
|
|
<div class="table-row-5-colums-tournament footer">
|
|
{% if future|length >= 10 %}
|
|
<div class="small">
|
|
{% if club %}
|
|
<a href="{% url 'tournaments' %}?filter=0&club={{ club.id }}">voir tous les tournois à venir</a>
|
|
{% else %}
|
|
<a href="{% url 'tournaments' %}?filter=0">voir tous les tournois à venir</a>
|
|
{% endif %}
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
{% if ended %}
|
|
<div class="cell medium-12 large-6 topblock padding10">
|
|
<div>
|
|
|
|
<div class="table-row-5-colums-tournament header">
|
|
<label class="title">Terminés</label>
|
|
</div>
|
|
{% for tournament in ended %}
|
|
{% include 'tournaments/tournament_row.html' %}
|
|
{% endfor %}
|
|
<div class="table-row-5-colums-tournament footer">
|
|
{% if ended|length >= 10 %}
|
|
<div class="small">
|
|
{% if club %}
|
|
<a href="{% url 'tournaments' %}?filter=2&club={{ club.id }}">voir tous les tournois terminés</a>
|
|
{% else %}
|
|
<a href="{% url 'tournaments' %}?filter=2">voir tous les tournois terminés</a>
|
|
{% endif %}
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|
|
|