1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2025-08-14 01:46:38 +02:00

Translation for family

This commit is contained in:
ikea
2025-08-12 22:39:11 +02:00
parent 4a9b7c1312
commit 0c259155a8
3 changed files with 799 additions and 272 deletions

View File

@@ -16,6 +16,9 @@ class FamilyTable(tables.Table):
"""
List all families
"""
description = tables.Column(verbose_name=_("Description"))
class Meta:
attrs = {
'class': 'table table-condensed table-striped table-hover'
@@ -35,6 +38,11 @@ class ChallengeTable(tables.Table):
"""
List all challenges
"""
name = tables.Column(verbose_name=_("Name"))
description = tables.Column(verbose_name=_("Description"))
points = tables.Column(verbose_name=_("Points"))
class Meta:
attrs = {
'class': 'table table-condensed table-striped table-hover'
@@ -77,6 +85,9 @@ class AchievementTable(tables.Table):
"""
List recent achievements.
"""
challenge = tables.Column(verbose_name=_("Challenge"))
validate = tables.LinkColumn(
'family:achievement_validate',
args=[A('id')],
@@ -125,6 +136,9 @@ class FamilyAchievementTable(tables.Table):
"""
Table des défis réalisés par une famille spécifique.
"""
challenge = tables.Column(verbose_name=_("Challenge"))
class Meta:
model = Achievement
template_name = 'django_tables2/bootstrap4.html'