Fancy training level list layout

This commit is contained in:
2021-09-12 18:08:13 +01:00
parent cddb76bf7e
commit 13b1cea28b
4 changed files with 45 additions and 9 deletions

View File

@@ -138,6 +138,8 @@ class TrainingLevel(models.Model, RevisionMixin):
elif self.department == 2:
return "danger"
elif self.department == 3:
return "warning"
elif self.department == 4:
return "light"
else:
return "primary"