1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2024-12-29 13:42:22 +00:00
plateforme-tfjm2/templates/tournament/pool_detail.html

95 lines
3.7 KiB
HTML
Raw Normal View History

2020-05-05 02:45:38 +00:00
{% extends "base.html" %}
2020-05-06 21:51:17 +00:00
{% load getconfig i18n django_tables2 static %}
2020-05-05 02:45:38 +00:00
{% 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 %}
2020-05-05 02:45:38 +00:00
<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>
2020-05-06 16:54:54 +00:00
<hr>
2020-05-05 02:45:38 +00:00
2020-05-06 16:54:54 +00:00
<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:" %}
2020-06-02 20:07:54 +00:00
<a data-turbolinks="false" href="{% static "Fiche synthèse.pdf" %}">PDF</a><a data-turbolinks="false" href="{% static "Fiche synthèse.tex" %}">TEX</a>
2020-05-05 02:45:38 +00:00
</div>
2020-05-25 16:27:07 +00:00
{% if user.organizes or not user.is_authenticated %}
2020-05-05 02:45:38 +00:00
<ul>
{% for synthesis in pool.syntheses.all %}
<li><a data-turbolinks="false" href="{{ synthesis.file.url }}">{{ synthesis }}</a></li>
{% endfor %}
</ul>
2020-05-06 16:54:54 +00:00
<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 %}
2020-05-25 16:27:07 +00:00
</div>
2020-05-06 16:54:54 +00:00
</div>
2020-05-05 04:07:49 +00:00
<hr>
<div class="text-center">
<a class="btn btn-block btn-primary" href="{% url "tournament:pools" %}">{% trans "Pool list" %}</a>
</div>
2020-05-25 16:27:07 +00:00
{% 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 %}
2020-05-05 02:45:38 +00:00
{% endblock %}