mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2024-11-26 17:27:09 +00:00
24 lines
552 B
HTML
24 lines
552 B
HTML
{% extends "base.html" %}
|
|
|
|
{% load i18n django_tables2 %}
|
|
|
|
{% block content %}
|
|
{% render_table table %}
|
|
|
|
{% if user.admin %}
|
|
<hr>
|
|
<a href="{% url "tournament:create_pool" %}"><button class="btn btn-secondary btn-block">{% trans "Add pool" %}</button></a>
|
|
{% endif %}
|
|
{% endblock %}
|
|
|
|
|
|
{% block extrajavascript %}
|
|
<script>
|
|
$(document).ready(function() {
|
|
$(".row-control").click(function() {
|
|
location.href = $(this).data("href");
|
|
});
|
|
});
|
|
</script>
|
|
{% endblock %}
|