mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2024-12-26 05:02:23 +00:00
95 lines
3.7 KiB
HTML
95 lines
3.7 KiB
HTML
{% extends "base.html" %}
|
|
|
|
{% load getconfig i18n django_tables2 static %}
|
|
|
|
{% block content %}
|
|
<div class="card bg-light shadow">
|
|
<div class="card-header text-center">
|
|
<h4>{{ title }}</h4>
|
|
</div>
|
|
<div class="card-body">
|
|
<dl class="row">
|
|
<dt class="col-xl-6 text-right">{% trans 'juries'|capfirst %}</dt>
|
|
<dd class="col-xl-6">{{ pool.juries.all|join:", " }}</dd>
|
|
|
|
<dt class="col-xl-6 text-right">{% trans 'teams'|capfirst %}</dt>
|
|
<dd class="col-xl-6">{{ pool.teams.all|join:", " }}</dd>
|
|
|
|
<dt class="col-xl-6 text-right">{% trans 'round'|capfirst %}</dt>
|
|
<dd class="col-xl-6">{{ pool.round }}</dd>
|
|
|
|
<dt class="col-xl-6 text-right">{% trans 'tournament'|capfirst %}</dt>
|
|
<dd class="col-xl-6">{{ pool.tournament }}</dd>
|
|
</dl>
|
|
</div>
|
|
</div>
|
|
|
|
<hr>
|
|
|
|
<div class="card bg-light shadow">
|
|
<div class="card-header text-center">
|
|
<h4>{% trans "Solutions" %}</h4>
|
|
</div>
|
|
<div class="card-body">
|
|
{% if pool.round == 2 %}
|
|
<div class="alert alert-warning">
|
|
{% trans "Solutions will be available here for teams from:" %} {{ pool.tournament.date_solutions_2 }}
|
|
</div>
|
|
{% endif %}
|
|
|
|
<ul>
|
|
{% for solution in pool.solutions.all %}
|
|
<li><a data-turbolinks="false" href="{{ solution.file.url }}">{{ solution }}</a></li>
|
|
{% endfor %}
|
|
</ul>
|
|
</div>
|
|
<div class="card-footer text-center">
|
|
<form method="post">
|
|
{% csrf_token %}
|
|
<button class="btn btn-success" name="solutions_zip">{% trans "Download ZIP archive" %}</button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
<hr>
|
|
|
|
<div class="card bg-light shadow">
|
|
<div class="card-header text-center">
|
|
<h4>{% trans "Syntheses" %}</h4>
|
|
</div>
|
|
<div class="card-body">
|
|
<div class="alert alert-warning">
|
|
{% trans "Templates for syntheses are available here:" %}
|
|
<a data-turbolinks="false" href="{% static "Fiche synthèse.pdf" %}">PDF</a> -- <a data-turbolinks="false" href="{% static "Fiche synthèse.tex" %}">TEX</a>
|
|
</div>
|
|
{% if user.organizes or not user.is_authenticated %}
|
|
<ul>
|
|
{% for synthesis in pool.syntheses.all %}
|
|
<li><a data-turbolinks="false" href="{{ synthesis.file.url }}">{{ synthesis }}</a></li>
|
|
{% endfor %}
|
|
</ul>
|
|
<div class="card-footer text-center">
|
|
<form method="post">
|
|
{% csrf_token %}
|
|
<button class="btn btn-success" name="syntheses_zip">{% trans "Download ZIP archive" %}</button>
|
|
</form>
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
|
|
<hr>
|
|
|
|
<div class="text-center">
|
|
<a class="btn btn-block btn-primary" href="{% url "tournament:pools" %}">{% trans "Pool list" %}</a>
|
|
</div>
|
|
|
|
{% if user.organizes or not user.is_authenticated %}
|
|
<hr>
|
|
<div class="alert alert-warning">
|
|
{% trans "Give this link to juries to access this page (warning: should stay confidential and only given to juries of this pool):" %}<br>
|
|
<a href="{% url "tournament:pool_detail" pk=pool.pk %}?extra_access_token={{ pool.extra_access_token }}">
|
|
https://{{ request.get_host }}{% url "tournament:pool_detail" pk=pool.pk %}?extra_access_token={{ pool.extra_access_token }}</a>
|
|
</div>
|
|
{% endif %}
|
|
{% endblock %}
|