activating tabs

This commit is contained in:
2021-12-10 08:50:19 -06:00
parent f6e0acf9d2
commit 11948d35d9
7 changed files with 36 additions and 16 deletions

View File

@@ -21,6 +21,7 @@ class BenchcoachListView(TemplateView):
title_strf = "{item}"
subtitle_strf = ""
body_strf = ""
active_tabs = []
def get_context_data(self):
items = self.Model.objects.all()
@@ -42,6 +43,8 @@ class BenchcoachListView(TemplateView):
for item in items
]
}
for tab in self.active_tabs:
context[tab] = 'active'
return context
class BenchcoachEditView(TemplateView):