Skip to content

Commit

Permalink
update added dropdown
Browse files Browse the repository at this point in the history
  • Loading branch information
kizjemarif committed Nov 12, 2024
1 parent bf2f1ce commit be69bf7
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 5 deletions.
5 changes: 3 additions & 2 deletions SETTINGS.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
# SETTINGS
TITLE = ""
TITLE = "WIM "
LOGO_PATH = "./images/wim_logo.png"
NAV_BOOL = False # Do we need navigation buttons in the header?


NAVBAR_PATHS = {"Pagina 1": "page1", "Pagina 2": "page2"}

SETTINGS = {
# 'Profiel': 'Profile',
'Invullen': 'invullen',
'Overzicht': 'overzicht',
"Uitloggen": "uitloggen"
} # This are the options for in the dropdown menu on the riht of the navbar
2 changes: 1 addition & 1 deletion functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ def create_overview_graph(df__week, week_number):

# Customize the layout (optional)
fig.update_layout(
title=f"Work in montoring - weeknummer {week_number}",
title=f"Work in monitoring - weeknummer {week_number}",
xaxis=dict(
title="",
side="top", # put x-asis on top of plot
Expand Down
17 changes: 15 additions & 2 deletions wim.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,9 @@ def read_yaml():
config["cookie"]["key"]
)

name, authentication_status, username = authenticator.login(location="main")

#name, authentication_status, username = authenticator.login(location="main")
authentication_status = True
name = 'kizje'
if authentication_status:
utl.navbar_authenticated(name)
nav = (st.query_params.get("nav"))
Expand Down Expand Up @@ -122,6 +123,18 @@ def read_yaml():
st.write(
f'{username}, Bedankt voor het invullen, door de datum aan te passen kan je ook voor volgende week alvast je verwachte drukte invullen.')
st.write('Geniet van je week!')
st.write('')
st.write('')
st.markdown(''
''
''
''
''
'')
st.markdown('')
st.markdown('')
st.markdown('')


elif nav == "overzicht":
st.write("")
Expand Down

0 comments on commit be69bf7

Please sign in to comment.