mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2024-11-27 01:27:09 +00:00
86 lines
3.2 KiB
HTML
86 lines
3.2 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 %}
|
|
<ul>
|
|
{% for synthesis in pool.syntheses.all %}
|
|
<li><a data-turbolinks="false" href="{{ synthesis.file.url }}">{{ synthesis }}</a></li>
|
|
{% endfor %}
|
|
</ul>
|
|
</div>
|
|
<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>
|
|
|
|
<hr>
|
|
|
|
<div class="text-center">
|
|
<a class="btn btn-block btn-primary" href="{% url "tournament:pools" %}">{% trans "Pool list" %}</a>
|
|
</div>
|
|
{% endblock %}
|