Skip to content
Snippets Groups Projects
Commit 35167d2e authored by Julian's avatar Julian
Browse files

Translate PersonalNote table correctly

parent a70ebfb5
No related branches found
No related tags found
1 merge request!232Resolve "Fix translations in person overview"
Checking pipeline status
...@@ -105,10 +105,10 @@ class PersonalNoteTable(tables.Table): ...@@ -105,10 +105,10 @@ class PersonalNoteTable(tables.Table):
order_by=A("order_teachers"), order_by=A("order_teachers"),
) )
subject = tables.Column(verbose_name=_("Subject"), accessor=A("subject")) subject = tables.Column(verbose_name=_("Subject"), accessor=A("subject"))
absent = tables.Column() absent = tables.Column(verbose_name=_("Absent"))
late = tables.Column() late = tables.Column(verbose_name=_("Tardiness"))
excused = tables.Column(verbose_name=_("Excuse")) excused = tables.Column(verbose_name=_("Excuse"))
extra_marks = tables.Column(verbose_name="Extra marks", accessor=A("extra_marks__all")) extra_marks = tables.Column(verbose_name=_("Extra marks"), accessor=A("extra_marks__all"))
def render_groups(self, value, record): def render_groups(self, value, record):
if isinstance(record.register_object, LessonPeriod): if isinstance(record.register_object, LessonPeriod):
...@@ -126,7 +126,7 @@ class PersonalNoteTable(tables.Table): ...@@ -126,7 +126,7 @@ class PersonalNoteTable(tables.Table):
return ( return (
render_to_string( render_to_string(
"components/materialize-chips.html", "components/materialize-chips.html",
dict(content="Absent", classes="red white-text"), dict(content=_("Absent"), classes="red white-text"),
) )
if value if value
else "" else ""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment