2021-01-01 11:11:09 +00:00
|
|
|
{% extends "base.html" %}
|
|
|
|
|
|
|
|
{% load getconfig i18n django_tables2 %}
|
|
|
|
|
|
|
|
{% block content %}
|
2023-02-20 22:02:09 +00:00
|
|
|
<div class="card bg-body shadow">
|
2021-01-01 11:11:09 +00:00
|
|
|
<div class="card-header text-center">
|
|
|
|
<h4>{{ tournament.name }}</h4>
|
|
|
|
</div>
|
|
|
|
<div class="card-body">
|
|
|
|
<dl class="row">
|
2023-02-20 13:52:25 +00:00
|
|
|
<dt class="col-xl-6 text-end">{% trans 'organizers'|capfirst %}</dt>
|
2021-01-01 11:11:09 +00:00
|
|
|
<dd class="col-xl-6">{{ tournament.organizers.all|join:", " }}</dd>
|
|
|
|
|
2023-02-20 13:52:25 +00:00
|
|
|
<dt class="col-xl-6 text-end">{% trans 'size'|capfirst %}</dt>
|
2021-01-01 11:11:09 +00:00
|
|
|
<dd class="col-xl-6">{{ tournament.max_teams }}</dd>
|
|
|
|
|
2023-02-20 13:52:25 +00:00
|
|
|
<dt class="col-xl-6 text-end">{% trans 'place'|capfirst %}</dt>
|
2021-01-01 11:11:09 +00:00
|
|
|
<dd class="col-xl-6">{{ tournament.place }}</dd>
|
|
|
|
|
2023-02-20 13:52:25 +00:00
|
|
|
<dt class="col-xl-6 text-end">{% trans 'price'|capfirst %}</dt>
|
2021-01-01 11:11:09 +00:00
|
|
|
<dd class="col-xl-6">{% if tournament.price %}{{ tournament.price }} €{% else %}{% trans "Free" %}{% endif %}</dd>
|
|
|
|
|
2023-02-20 13:52:25 +00:00
|
|
|
<dt class="col-xl-6 text-end">{% trans 'remote'|capfirst %}</dt>
|
2021-01-23 18:57:25 +00:00
|
|
|
<dd class="col-xl-6">{{ tournament.remote|yesno }}</dd>
|
|
|
|
|
2023-02-20 13:52:25 +00:00
|
|
|
<dt class="col-xl-6 text-end">{% trans 'dates'|capfirst %}</dt>
|
2021-01-01 11:11:09 +00:00
|
|
|
<dd class="col-xl-6">{% trans "From" %} {{ tournament.date_start }} {% trans "to" %} {{ tournament.date_end }}</dd>
|
|
|
|
|
2023-02-20 13:52:25 +00:00
|
|
|
<dt class="col-xl-6 text-end">{% trans 'date of registration closing'|capfirst %}</dt>
|
2021-01-01 11:11:09 +00:00
|
|
|
<dd class="col-xl-6">{{ tournament.inscription_limit }}</dd>
|
|
|
|
|
2023-02-20 13:52:25 +00:00
|
|
|
<dt class="col-xl-6 text-end">{% trans 'date of maximal solution submission'|capfirst %}</dt>
|
2021-01-01 11:11:09 +00:00
|
|
|
<dd class="col-xl-6">{{ tournament.solution_limit }}</dd>
|
|
|
|
|
2023-02-20 13:52:25 +00:00
|
|
|
<dt class="col-xl-6 text-end">{% trans 'date of the random draw'|capfirst %}</dt>
|
2021-01-01 11:11:09 +00:00
|
|
|
<dd class="col-xl-6">{{ tournament.solutions_draw }}</dd>
|
|
|
|
|
2023-02-20 13:52:25 +00:00
|
|
|
<dt class="col-xl-6 text-end">{% trans 'date of maximal syntheses submission for the first round'|capfirst %}</dt>
|
2021-01-01 11:11:09 +00:00
|
|
|
<dd class="col-xl-6">{{ tournament.syntheses_first_phase_limit }}</dd>
|
|
|
|
|
2023-02-20 13:52:25 +00:00
|
|
|
<dt class="col-xl-6 text-end">{% trans 'date when solutions of round 2 are available'|capfirst %}</dt>
|
2021-01-01 11:11:09 +00:00
|
|
|
<dd class="col-xl-6">{{ tournament.solutions_available_second_phase }}</dd>
|
|
|
|
|
2023-02-20 13:52:25 +00:00
|
|
|
<dt class="col-xl-6 text-end">{% trans 'date of maximal syntheses submission for the second round'|capfirst %}</dt>
|
2021-01-01 11:11:09 +00:00
|
|
|
<dd class="col-xl-6">{{ tournament.syntheses_second_phase_limit }}</dd>
|
|
|
|
|
2023-02-20 13:52:25 +00:00
|
|
|
<dt class="col-xl-6 text-end">{% trans 'description'|capfirst %}</dt>
|
2021-01-01 11:11:09 +00:00
|
|
|
<dd class="col-xl-6">{{ tournament.description }}</dd>
|
2021-01-21 21:36:35 +00:00
|
|
|
|
2023-02-20 13:52:25 +00:00
|
|
|
<dt class="col-xl-6 text-end">{% trans 'To contact organizers' %}</dt>
|
2021-01-21 21:36:35 +00:00
|
|
|
<dd class="col-xl-6"><a href="mailto:{{ tournament.organizers_email }}">{{ tournament.organizers_email }}</a></dd>
|
|
|
|
|
2023-02-20 13:52:25 +00:00
|
|
|
<dt class="col-xl-6 text-end">{% trans 'To contact juries' %}</dt>
|
2021-01-21 21:36:35 +00:00
|
|
|
<dd class="col-xl-6"><a href="mailto:{{ tournament.jurys_email }}">{{ tournament.jurys_email }}</a></dd>
|
|
|
|
|
2023-02-20 13:52:25 +00:00
|
|
|
<dt class="col-xl-6 text-end">{% trans 'To contact valid teams' %}</dt>
|
2021-01-21 21:36:35 +00:00
|
|
|
<dd class="col-xl-6"><a href="mailto:{{ tournament.teams_email }}">{{ tournament.teams_email }}</a></dd>
|
2021-01-01 11:11:09 +00:00
|
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
|
2021-01-19 00:19:18 +00:00
|
|
|
{% if user.registration.is_admin or user.registration in tournament.organizers.all %}
|
2021-01-01 11:11:09 +00:00
|
|
|
<div class="card-footer text-center">
|
2024-03-31 19:36:09 +00:00
|
|
|
<a class="btn btn-secondary" href="{% url "participation:tournament_update" pk=tournament.pk %}">
|
|
|
|
<i class="fas fa-edit"></i>
|
|
|
|
{% trans "Edit tournament" %}
|
|
|
|
</a>
|
2021-01-01 11:11:09 +00:00
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
|
|
|
|
<h3>{% trans "Teams" %}</h3>
|
|
|
|
<div id="teams_table">
|
|
|
|
{% render_table teams %}
|
|
|
|
</div>
|
2024-02-23 21:58:23 +00:00
|
|
|
|
|
|
|
{% if user.registration.is_admin or user.registration in tournament.organizers.all %}
|
|
|
|
<div class="text-center">
|
|
|
|
<a href="{% url "participation:tournament_payments" pk=tournament.pk %}" class="btn btn-secondary">
|
|
|
|
<i class="fas fa-money-bill-wave"></i> {% trans "Access to payments list" %}
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2021-01-13 15:22:26 +00:00
|
|
|
|
2021-01-18 15:49:23 +00:00
|
|
|
{% if pools.data %}
|
2021-01-18 15:54:57 +00:00
|
|
|
<hr>
|
|
|
|
|
2021-01-18 15:49:23 +00:00
|
|
|
<h3>{% trans "Pools" %}</h3>
|
|
|
|
<div id="pools_table">
|
|
|
|
{% render_table pools %}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2021-01-13 15:22:26 +00:00
|
|
|
|
2021-01-18 15:54:57 +00:00
|
|
|
{% if notes %}
|
|
|
|
<hr>
|
2021-01-14 18:23:32 +00:00
|
|
|
|
2023-02-20 22:02:09 +00:00
|
|
|
<div class="card bg-body shadow">
|
2021-01-18 15:54:57 +00:00
|
|
|
<div class="card-header text-center">
|
|
|
|
<h5>{% trans "Ranking" %}</h5>
|
|
|
|
</div>
|
|
|
|
<div class="card-body">
|
|
|
|
<ul>
|
|
|
|
{% for participation, note in notes %}
|
2021-04-10 12:38:15 +00:00
|
|
|
<li><strong>{{ participation.team }} :</strong> {{ note|floatformat }}</li>
|
2021-01-18 15:54:57 +00:00
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
</div>
|
2024-03-30 19:38:13 +00:00
|
|
|
{% if user.registration.is_admin or user.registration in tournament.organizers.all %}
|
|
|
|
<div class="card-footer text-center">
|
|
|
|
{% if not available_notes_1 or not available_notes_2 %}
|
2024-03-24 17:14:43 +00:00
|
|
|
<div class="btn-group">
|
|
|
|
{% if not available_notes_1 %}
|
|
|
|
<a href="{% url 'participation:tournament_publish_notes' pk=tournament.pk round=1 %}" class="btn btn-info">
|
|
|
|
<i class="fas fa-upload"></i>
|
|
|
|
{% trans "Publish notes for first round" %}
|
|
|
|
</a>
|
|
|
|
{% endif %}
|
|
|
|
{% if not available_notes_2 %}
|
|
|
|
<a href="{% url 'participation:tournament_publish_notes' pk=tournament.pk round=2 %}" class="btn btn-info">
|
|
|
|
<i class="fas fa-upload"></i>
|
|
|
|
{% trans "Publish notes for second round" %}
|
|
|
|
</a>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
2024-03-30 19:38:13 +00:00
|
|
|
{% endif %}
|
|
|
|
<div class="btn-group">
|
|
|
|
<a href="{% url 'participation:tournament_harmonize' pk=tournament.pk round=1 %}" class="btn btn-secondary">
|
|
|
|
<i class="fas fa-ranking-star"></i>
|
|
|
|
{% trans "Harmonize" %} - {% trans "Day" %} 1
|
|
|
|
</a>
|
|
|
|
<a href="{% url 'participation:tournament_harmonize' pk=tournament.pk round=2 %}" class="btn btn-secondary">
|
|
|
|
<i class="fas fa-ranking-star"></i>
|
|
|
|
{% trans "Harmonize" %} - {% trans "Day" %} 2
|
|
|
|
</a>
|
2024-03-24 17:14:43 +00:00
|
|
|
</div>
|
2024-03-30 19:38:13 +00:00
|
|
|
</div>
|
2024-03-24 17:14:43 +00:00
|
|
|
{% endif %}
|
2021-01-14 18:23:32 +00:00
|
|
|
</div>
|
2021-01-18 15:54:57 +00:00
|
|
|
{% endif %}
|
2021-01-14 18:23:32 +00:00
|
|
|
|
2024-03-26 22:55:29 +00:00
|
|
|
{% if user.registration.is_admin or user.registration in tournament.organizers.all %}
|
|
|
|
<hr>
|
|
|
|
|
|
|
|
<h3>{% trans "Files available for download" %}</h3>
|
|
|
|
|
|
|
|
<div class="alert alert-warning fade show files-to-download-collapse" id="files-to-download-popup">
|
|
|
|
<h4>IMPORTANT</h4>
|
|
|
|
|
|
|
|
<p>
|
|
|
|
Les fichiers accessibles ci-dessous peuvent contenir des informations personnelles.
|
|
|
|
Par conformité avec le droit européen et par respect de la confidentialité des données
|
|
|
|
des participant⋅es, vous ne devez utiliser ces données que dans un cadre strictement
|
|
|
|
nécessaire en lien avec l'organisation du tournoi.
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<p>
|
|
|
|
De plus, il est de votre responsabilité de supprimer ces fichiers une fois que vous
|
|
|
|
n'en avez plus besoin, notamment à la fin du tournoi.
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<p class="text-center">
|
|
|
|
<button class="btn btn-warning" data-bs-toggle="collapse" href=".files-to-download-collapse"
|
|
|
|
role="button" aria-expanded="false" aria-controls="files-to-download files-to-download-popup">
|
|
|
|
Je m'engage à ne pas divulguer les données des participant⋅es
|
|
|
|
et de les supprimer à l'issue du tournoi
|
|
|
|
</button>
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="card bg-body shadow fade collapse files-to-download-collapse" id="files-to-download">
|
|
|
|
<div class="card-body">
|
|
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<a href="{% url "participation:tournament_csv" pk=tournament.pk %}">
|
|
|
|
Tableur de données des participant⋅es des équipes validées
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="{% url "participation:tournament_csv" pk=tournament.pk %}?all">
|
|
|
|
Tableur de données des participant⋅es de toutes les équipes
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="{% url "participation:tournament_authorizations" tournament_id=tournament.id %}">
|
|
|
|
Archive de toutes les autorisations triées par équipe et par personne
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
2024-03-26 23:49:32 +00:00
|
|
|
<a href="{% url "participation:tournament_solutions" tournament_id=tournament.id %}">
|
2024-03-26 22:55:29 +00:00
|
|
|
Archive de toutes les solutions envoyées triées par équipe
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
2024-03-26 23:49:32 +00:00
|
|
|
<a href="{% url "participation:tournament_solutions" tournament_id=tournament.id %}?sort_by=problem">
|
2024-03-26 22:55:29 +00:00
|
|
|
Archive de toutes les solutions envoyées triées par problème
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
2024-03-26 23:49:32 +00:00
|
|
|
<a href="{% url "participation:tournament_solutions" tournament_id=tournament.id %}?sort_by=pool">
|
|
|
|
Archive de toutes les solutions envoyées triées par poule
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="{% url "participation:tournament_syntheses" tournament_id=tournament.id %}?sort_by=pool">
|
2024-03-26 22:55:29 +00:00
|
|
|
Archive de toutes les notes de synthèse triées par poule et par passage
|
|
|
|
</a>
|
|
|
|
</li>
|
2024-03-30 18:15:21 +00:00
|
|
|
<li>
|
|
|
|
<a href="https://docs.google.com/spreadsheets/d/{{ tournament.notes_sheet_id }}/edit">
|
|
|
|
<i class="fas fa-table"></i>
|
|
|
|
Tableur de notes sur Google Sheets
|
|
|
|
</a>
|
|
|
|
</li>
|
2024-03-26 22:55:29 +00:00
|
|
|
<li>
|
2024-03-29 17:59:37 +00:00
|
|
|
<a href="{% url "participation:tournament_notation_sheets" tournament_id=tournament.id %}">
|
|
|
|
Archive de toutes les feuilles de notes à imprimer triées par poule
|
2024-03-26 22:55:29 +00:00
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-01-18 15:49:23 +00:00
|
|
|
{% endif %}
|
2021-01-13 16:00:50 +00:00
|
|
|
|
2021-01-01 11:11:09 +00:00
|
|
|
{% endblock %}
|