bhaskarhhp commited on
Commit
1241160
Β·
verified Β·
1 Parent(s): 5d428e5

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +6 -4
src/streamlit_app.py CHANGED
@@ -9,13 +9,14 @@ if not firebase_admin._apps:
9
 
10
  db = firestore.client()
11
 
 
12
  # -------------------------------
13
  # πŸ” LOGIN SECTION
14
  # -------------------------------
15
  def login():
16
  st.title("πŸ” Login")
17
  with st.form("login_form"):
18
- username = st.text_input("Username")
19
  password = st.text_input("Password", type="password")
20
  submitted = st.form_submit_button("Login")
21
  if submitted:
@@ -124,14 +125,15 @@ def users_page():
124
  options.append("Add User")
125
  if user_role == "Admin":
126
  options.extend(["Delete User", "Update User"])
127
-
128
- user_option = st.radio("Choose action", options, horizontal=True)
 
129
 
130
  # Add User
131
  if user_option == "Add User":
132
  st.subheader("Add New User")
133
  with st.form("add_user_form"):
134
- name = st.text_input("Name")
135
  user_type = st.selectbox("Type", ["Admin", "Back Office","Standard", "Guest"])
136
  password = st.text_input("Password", type="password")
137
  submitted = st.form_submit_button("Submit")
 
9
 
10
  db = firestore.client()
11
 
12
+ st.Page.title="Swiftcom DMS"
13
  # -------------------------------
14
  # πŸ” LOGIN SECTION
15
  # -------------------------------
16
  def login():
17
  st.title("πŸ” Login")
18
  with st.form("login_form"):
19
+ username = st.text_input("Username").strip().upper()
20
  password = st.text_input("Password", type="password")
21
  submitted = st.form_submit_button("Login")
22
  if submitted:
 
125
  options.append("Add User")
126
  if user_role == "Admin":
127
  options.extend(["Delete User", "Update User"])
128
+ st.divider()
129
+ user_option = st.radio("Choose action", options, horizontal=True)
130
+ st.divider()
131
 
132
  # Add User
133
  if user_option == "Add User":
134
  st.subheader("Add New User")
135
  with st.form("add_user_form"):
136
+ name = st.text_input("Name").strip().upper()
137
  user_type = st.selectbox("Type", ["Admin", "Back Office","Standard", "Guest"])
138
  password = st.text_input("Password", type="password")
139
  submitted = st.form_submit_button("Submit")