1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2025-06-21 11:18:27 +02:00

Display pools table

This commit is contained in:
Yohann D'ANELLO
2021-01-13 16:22:26 +01:00
parent 170326d503
commit 4faec03efb
5 changed files with 48 additions and 3 deletions

View File

@ -24,6 +24,15 @@
{% trans "No solution was uploaded yet." %}
{% endfor %}
</dd>
{% if participation.pools.all %}
<dt class="col-sm-2">{% trans "Pools:" %}</dt>
<dd class="col-sm-10">
{% for pool in participation.pools.all %}
<a href="{{ pool.get_absolute_url }}" data-turbolinks="false">{{ pool }}{% if not forloop.last %}, {% endif %}</a>
{% endfor %}
</dd>
{% endif %}
</dl>
</div>
<div class="card-footer text-center">

View File

@ -60,4 +60,15 @@
<div id="teams_table">
{% render_table teams %}
</div>
<hr>
<h3>{% trans "Pools" %}</h3>
<div id="pools_table">
{% render_table pools %}
</div>
{% if user.registration.is_admin %}
<a class="btn btn-block btn-success" href="#">{% trans "Add new pool" %}</a>
{% endif %}
{% endblock %}