plateforme-tfjm2/templates/tournament/pool_detail.html

77 lines
2.6 KiB
HTML

{% extends "base.html" %}
{% load getconfig i18n django_tables2 %}
{% 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">
<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>
{% if user.organizes %}
<hr>
<div class="card bg-light shadow">
<div class="card-header text-center">
<h4>{% trans "Syntheses" %}</h4>
</div>
<div class="card-body">
<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>
</div>
{% endif %}
<hr>
<div class="text-center">
<a class="btn btn-block btn-primary" href="{% url "tournament:pools" %}">{% trans "Pool list" %}</a>
</div>
{% endblock %}