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 %}
|