Change age color if student under 17 y.o.
This commit is contained in:
parent
976a559cca
commit
ee28d8edc5
3 changed files with 4 additions and 1 deletions
|
|
@ -177,6 +177,7 @@ class StudentSummaryView(DetailView):
|
|||
pass
|
||||
else:
|
||||
context['age_for_stage'] = self.object.age_at(period.start_date)
|
||||
context['age_style'] = 'under_17' if (int(context['age_for_stage'].split()[0]) < 17) else ''
|
||||
return context
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue