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.
181 lines
7.5 KiB
181 lines
7.5 KiB
{% 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">
|
|
{% if tournament.enable_online_registration and team %}
|
|
<h1 class="club my-block topmargin20">Votre équipe</h1 >
|
|
|
|
<div class="bubble">
|
|
<div class="alert">
|
|
{% if team.is_in_waiting_list >= 0 %}
|
|
Tournoi complet, vous êtes en liste d'attente.
|
|
<div>
|
|
{% if team.is_in_waiting_list == 1 %}
|
|
{{ team.is_in_waiting_list }} équipe en liste d'attente devant vous
|
|
{% elif team.is_in_waiting_list > 1 %}
|
|
{{ team.is_in_waiting_list }} équipes en liste d'attente devant vous
|
|
{% elif team.is_in_waiting_list == 0 %}
|
|
vous êtes la première équipe en liste d'attente.
|
|
{% endif %}
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
|
|
<div class="semibold topmargin20">
|
|
{% for player in team.players %}
|
|
<div>{{ player.name }}</div>
|
|
{% endfor %}
|
|
</div>
|
|
</p>
|
|
<p>
|
|
<div>Inscrits le {{ team.local_registration_date }}</div>
|
|
</p>
|
|
|
|
{% if tournament.is_unregistration_possible %}
|
|
<p>
|
|
|
|
<div class="margin10">
|
|
{% for message in messages %}
|
|
<div class="alert alert-{{ message.tags }}">{{ message }}</div>
|
|
{% endfor %}
|
|
</div>
|
|
|
|
<a href="{% url 'unregister_tournament' tournament.id %}"
|
|
class="rounded-button destructive-button"
|
|
onclick="return confirm('Êtes-vous sûr de vouloir vous désinscrire ?');">
|
|
{% if team.is_in_waiting_list >= 0 %}
|
|
Se retirer de la liste d'attente
|
|
{% else %}
|
|
Se désinscrire
|
|
{% endif %}
|
|
</a>
|
|
</p>
|
|
|
|
<!-- {% if is_captain %}
|
|
{% else %}
|
|
<p>
|
|
<div>Vous n'êtes pas le capitaine de l'équipe, la désinscription en ligne n'est pas disponible. Veuillez contacter le JAP ou votre partenaire.</div>
|
|
</p>
|
|
{% endif %}
|
|
-->
|
|
{% endif %}
|
|
</div>
|
|
{% endif %}
|
|
<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 %}
|
|
|
|
{% if tournament.information %}
|
|
<p>
|
|
<div class="semibold">Infos</div>
|
|
<div class="tournament-info">
|
|
{{ tournament.information|linebreaksbr|urlize }}</div>
|
|
</p>
|
|
{% endif %}
|
|
|
|
{% if tournament.enable_online_registration %}
|
|
|
|
<p>
|
|
<div class="semibold">Inscription en ligne</div>
|
|
|
|
{% if tournament.options_online_registration %}
|
|
<ul>
|
|
{% for option in tournament.options_online_registration %}
|
|
<li>{{ option }}</li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% endif %}
|
|
</p>
|
|
|
|
<p>
|
|
<div class="semibold">
|
|
{% if tournament.registration_count_display %}
|
|
<div>{{ tournament.registration_count_display }}</div>
|
|
{% else %}
|
|
<div>Aucune équipe inscrite</div>
|
|
{% endif %}
|
|
</div>
|
|
</p>
|
|
|
|
<p>
|
|
<div class="semibold">
|
|
{{ tournament.get_online_registration_status.status_localized }}
|
|
</div>
|
|
</p>
|
|
|
|
{% endif %}
|
|
|
|
{% if tournament.online_register_is_enabled and team is None %}
|
|
{% if tournament.account_is_required is False or user.is_authenticated and user.is_active %}
|
|
{% if player_register_check is None %}
|
|
<p>
|
|
<div>
|
|
<a href="{% url 'register_tournament' tournament.id %}" class="rounded-button">S'inscrire</a>
|
|
</div>
|
|
</p>
|
|
{% else %}
|
|
<p>
|
|
<div class="semibold">
|
|
Vous ne pouvez pas vous inscrire à ce tournoi.
|
|
</div>
|
|
<div class="alert">
|
|
{% for reason in player_register_check %}
|
|
<div>{{ reason }}</div>
|
|
{% endfor %}
|
|
</div>
|
|
</p>
|
|
{% endif %}
|
|
{% else %}
|
|
{% for message in messages %}
|
|
<div class="alert alert-{{ message.tags }}">{{ message }}</div>
|
|
{% endfor %}
|
|
<p>
|
|
<div>
|
|
<a href="{% url 'login' %}?next={{ request.path }}" class="styled-link">Connectez-vous !</a>
|
|
</div>
|
|
</p>
|
|
|
|
<p>
|
|
<div>
|
|
Vous avez besoin d'un compte Padel Club pour pouvoir vous inscrire en ligne.
|
|
<a href="{% url 'signup' %}?next={{ request.path }}" class="styled-link">Créer le tout de suite !</a>
|
|
</div>
|
|
</p>
|
|
{% endif %}
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
{% endblock %}
|
|
|