mirror of
https://codeberg.org/Mo8it/AdvLabDB.git
synced 2024-09-19 18:31:16 +00:00
16 lines
537 B
Python
16 lines
537 B
Python
def navbarItems(activePage):
|
|
pages = ["Students", "Assistants", "Experiments", "Appointments", "Groups", "Users"]
|
|
items = ""
|
|
for page in pages:
|
|
active = ""
|
|
lowerPage = page.lower().replace(" ", "_")
|
|
if lowerPage == activePage:
|
|
active = " active"
|
|
items += '<a class="nav-link' + active + '" href="' + lowerPage + '">' + page + '</a>'
|
|
return items
|
|
|
|
def td(cell):
|
|
return "<td>" + str(cell) + "</td>"
|
|
|
|
def th(cell):
|
|
return '<th data-sortable="true">' + str(cell) + '</th>'
|