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

Click on pool table

This commit is contained in:
Yohann D'ANELLO
2020-05-05 06:07:49 +02:00
parent ac9591c320
commit b7c62741a8
3 changed files with 24 additions and 1 deletions

View File

@ -1,4 +1,5 @@
import django_tables2 as tables
from django.urls import reverse_lazy
from django.utils.translation import gettext as _
from django_tables2 import A
@ -119,7 +120,12 @@ class PoolTable(tables.Table):
class Meta:
model = Pool
fields = ("teams", "problems", "round", "juries", )
fields = ("teams", "tournament", "problems", "round", "juries", )
attrs = {
'class': 'table table-condensed table-striped table-hover'
}
row_attrs = {
'style': 'cursor: pointer;',
'class': 'row-control',
'data-href': lambda record: reverse_lazy('tournament:pool_detail', args=(record.pk,)),
}