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.
224 lines
10 KiB
224 lines
10 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 title_link %}{% url 'tournament' tournament.id %}{% 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 team and team.needs_confirmation %}
|
|
<div class="alert {% if team.get_confirmation_deadline %}alert-warning{% else %}alert-info{% endif %}">
|
|
<h4 class="semibold">Confirmation requise</h4>
|
|
<p>Votre place dans le tournoi a été libérée suite à une désinscription.</p>
|
|
|
|
{% if team.get_confirmation_deadline %}
|
|
{% timezone tournament.timezone %}
|
|
{% with time_to_confirm=team.get_confirmation_deadline %}
|
|
{% now "Y-m-d H:i:s" as current_time_str %}
|
|
{% if time_to_confirm %}
|
|
{% if time_to_confirm|date:"Y-m-d H:i:s" > current_time_str %}
|
|
<p>Vous devez confirmer votre participation avant le:</p>
|
|
<p class="semibold highlight">{{ time_to_confirm|date:"d/m/Y à H:i" }}</p>
|
|
|
|
<p>Temps restant: <span class="countdown-timer">{{ time_to_confirm|timeuntil }}</span></p>
|
|
{% else %}
|
|
<p class="alert alert-danger">
|
|
Le délai de confirmation est expiré. Votre place a été proposée à une autre équipe.
|
|
</p>
|
|
{% endif %}
|
|
{% endif %}
|
|
{% endwith %}
|
|
{% endtimezone %}
|
|
{% endif %}
|
|
|
|
<form method="post" action="{% url 'confirm_tournament_registration' tournament.id %}">
|
|
{% csrf_token %}
|
|
<button type="submit" class="rounded-button positive-button">
|
|
Confirmer ma participation
|
|
</button>
|
|
</form>
|
|
</div>
|
|
{% endif %}
|
|
|
|
{% 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>
|
|
|
|
<p>
|
|
{% if tournament.umpire_contact %}
|
|
<div class="semibold">Organisateur</div>
|
|
<div>{{ tournament.umpire_contact }}</div>
|
|
{% endif %}
|
|
{% if tournament.umpire_mail and tournament.hide_umpire_mail is False %}
|
|
<div><a href="mailto:{{ tournament.umpire_mail }}" class="styled-link">{{ tournament.umpire_mail }}</a></div>
|
|
{% endif %}
|
|
{% if tournament.umpire_phone and tournament.hide_umpire_phone is False %}
|
|
<div><a href="tel:{{ tournament.umpire_phone }}" class="styled-link">{{ tournament.umpire_phone }}</a></div>
|
|
{% endif %}
|
|
</p>
|
|
|
|
{% 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.
|
|
</div>
|
|
<div>
|
|
<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 %}
|
|
|