mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2024-11-26 16:07:09 +00:00
53302db56a
Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
262 lines
13 KiB
HTML
262 lines
13 KiB
HTML
{% extends "base.html" %}
|
|
|
|
{% load getconfig i18n django_tables2 %}
|
|
|
|
{% block content %}
|
|
<div class="card bg-body shadow">
|
|
<div class="card-header text-center">
|
|
<h4>{{ tournament.name }}</h4>
|
|
</div>
|
|
<div class="card-body">
|
|
<dl class="row">
|
|
<dt class="col-xl-6 text-end">{% trans 'organizers'|capfirst %}</dt>
|
|
<dd class="col-xl-6">{{ tournament.organizers.all|join:", " }}</dd>
|
|
|
|
<dt class="col-xl-6 text-end">{% trans 'size'|capfirst %}</dt>
|
|
<dd class="col-xl-6">{{ tournament.max_teams }}</dd>
|
|
|
|
<dt class="col-xl-6 text-end">{% trans 'place'|capfirst %}</dt>
|
|
<dd class="col-xl-6">{{ tournament.place }}</dd>
|
|
|
|
<dt class="col-xl-6 text-end">{% trans 'price'|capfirst %}</dt>
|
|
<dd class="col-xl-6">{% if tournament.price %}{{ tournament.price }} €{% else %}{% trans "Free" %}{% endif %}</dd>
|
|
|
|
<dt class="col-xl-6 text-end">{% trans 'remote'|capfirst %}</dt>
|
|
<dd class="col-xl-6">{{ tournament.remote|yesno }}</dd>
|
|
|
|
<dt class="col-xl-6 text-end">{% trans 'dates'|capfirst %}</dt>
|
|
<dd class="col-xl-6">{% trans "From" %} {{ tournament.date_start }} {% trans "to" %} {{ tournament.date_end }}</dd>
|
|
|
|
<dt class="col-xl-6 text-end">{% trans 'date of registration closing'|capfirst %}</dt>
|
|
<dd class="col-xl-6">{{ tournament.inscription_limit }}</dd>
|
|
|
|
<dt class="col-xl-6 text-end">{% trans 'date of maximal solution submission'|capfirst %}</dt>
|
|
<dd class="col-xl-6">{{ tournament.solution_limit }}</dd>
|
|
|
|
<dt class="col-xl-6 text-end">{% trans 'date of the random draw'|capfirst %}</dt>
|
|
<dd class="col-xl-6">{{ tournament.solutions_draw }}</dd>
|
|
|
|
<dt class="col-xl-6 text-end">{% trans 'date of maximal syntheses submission for the first round'|capfirst %}</dt>
|
|
<dd class="col-xl-6">{{ tournament.syntheses_first_phase_limit }}</dd>
|
|
|
|
<dt class="col-xl-6 text-end">{% trans 'date when solutions of round 2 are available'|capfirst %}</dt>
|
|
<dd class="col-xl-6">{{ tournament.solutions_available_second_phase }}</dd>
|
|
|
|
<dt class="col-xl-6 text-end">{% trans 'date of maximal syntheses submission for the second round'|capfirst %}</dt>
|
|
<dd class="col-xl-6">{{ tournament.syntheses_second_phase_limit }}</dd>
|
|
|
|
<dt class="col-xl-6 text-end">{% trans 'description'|capfirst %}</dt>
|
|
<dd class="col-xl-6">{{ tournament.description }}</dd>
|
|
|
|
<dt class="col-xl-6 text-end">{% trans 'To contact organizers' %}</dt>
|
|
<dd class="col-xl-6"><a href="mailto:{{ tournament.organizers_email }}">{{ tournament.organizers_email }}</a></dd>
|
|
|
|
<dt class="col-xl-6 text-end">{% trans 'To contact juries' %}</dt>
|
|
<dd class="col-xl-6"><a href="mailto:{{ tournament.jurys_email }}">{{ tournament.jurys_email }}</a></dd>
|
|
|
|
<dt class="col-xl-6 text-end">{% trans 'To contact valid teams' %}</dt>
|
|
<dd class="col-xl-6"><a href="mailto:{{ tournament.teams_email }}">{{ tournament.teams_email }}</a></dd>
|
|
</dl>
|
|
</div>
|
|
|
|
{% if user.registration.is_admin or user.registration in tournament.organizers.all %}
|
|
<div class="card-footer text-center">
|
|
<a class="btn btn-secondary" href="{% url "participation:tournament_update" pk=tournament.pk %}">
|
|
<i class="fas fa-edit"></i>
|
|
{% trans "Edit tournament" %}
|
|
</a>
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
|
|
<hr>
|
|
|
|
<h3>{% trans "Teams" %}</h3>
|
|
<div id="teams_table">
|
|
{% render_table teams %}
|
|
</div>
|
|
|
|
{% 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 %}
|
|
|
|
{% if pools.data %}
|
|
<hr>
|
|
|
|
<h3>{% trans "Pools" %}</h3>
|
|
<div id="pools_table">
|
|
{% render_table pools %}
|
|
</div>
|
|
{% endif %}
|
|
|
|
{% if notes %}
|
|
<hr>
|
|
|
|
<div class="card bg-body shadow">
|
|
<div class="card-header text-center">
|
|
<h5>{% trans "Ranking" %}</h5>
|
|
</div>
|
|
<div class="card-body">
|
|
<ul>
|
|
{% for participation, note in notes %}
|
|
<li>
|
|
<strong>{{ participation.team }} :</strong> {{ note|floatformat }}
|
|
{% if available_notes_2 %}
|
|
{% if not tournament.final and participation.mention %}
|
|
— {{ participation.mention }}
|
|
{% endif %}
|
|
{% if tournament.final and participation.mention_final %}
|
|
— {{ participation.mention_final }}
|
|
{% endif %}
|
|
{% endif %}
|
|
{% if participation.final %}
|
|
<span class="badge badge-sm text-bg-warning">
|
|
<i class="fas fa-medal"></i>
|
|
{% trans "Selected for final tournament" %}
|
|
</span>
|
|
{% endif %}
|
|
{% if user.registration.is_admin or user.registration in tournament.organizers.all %}
|
|
{% if team_selectable_for_final == participation %}
|
|
<a href="{% url 'participation:select_team_final' pk=tournament.pk participation_id=participation.pk %}"
|
|
class="badge badge-sm text-bg-success">
|
|
<i class="fas fa-medal"></i>
|
|
{% trans "Select for final tournament" %}
|
|
</a>
|
|
{% endif %}
|
|
{% endif %}
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
</div>
|
|
{% if user.registration.is_admin or user.registration in tournament.organizers.all %}
|
|
<div class="card-footer text-center">
|
|
<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>
|
|
</div>
|
|
</div>
|
|
<div class="card-footer text-center">
|
|
<div class="btn-group">
|
|
{% if not available_notes_1 %}
|
|
<a href="{% url 'participation:tournament_publish_notes' pk=tournament.pk round=1 %}" class="btn btn-sm btn-info">
|
|
<i class="fas fa-eye"></i>
|
|
{% trans "Publish notes for first round" %}
|
|
</a>
|
|
{% else %}
|
|
<a href="{% url 'participation:tournament_publish_notes' pk=tournament.pk round=1 %}?hide" class="btn btn-sm btn-danger">
|
|
<i class="fas fa-eye-slash"></i>
|
|
{% trans "Unpublish 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-sm btn-info">
|
|
<i class="fas fa-eye"></i>
|
|
{% trans "Publish notes for second round" %}
|
|
</a>
|
|
{% else %}
|
|
<a href="{% url 'participation:tournament_publish_notes' pk=tournament.pk round=2 %}?hide" class="btn btn-sm btn-danger">
|
|
<i class="fas fa-eye-slash"></i>
|
|
{% trans "Unpublish notes for second round" %}
|
|
</a>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
{% endif %}
|
|
|
|
{% 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>
|
|
<a href="{% url "participation:tournament_solutions" tournament_id=tournament.id %}">
|
|
Archive de toutes les solutions envoyées triées par équipe
|
|
</a>
|
|
</li>
|
|
<li>
|
|
<a href="{% url "participation:tournament_solutions" tournament_id=tournament.id %}?sort_by=problem">
|
|
Archive de toutes les solutions envoyées triées par problème
|
|
</a>
|
|
</li>
|
|
<li>
|
|
<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">
|
|
Archive de toutes les notes de synthèse triées par poule et par passage
|
|
</a>
|
|
</li>
|
|
<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>
|
|
<li>
|
|
<a href="{% url "participation:tournament_notation_sheets" tournament_id=tournament.id %}">
|
|
Archive de toutes les feuilles de notes à imprimer triées par poule
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
|
|
{% endblock %}
|