Skip to content
Snippets Groups Projects
Commit 52138ddb authored by Bouchaira Neirouz's avatar Bouchaira Neirouz
Browse files

Update streamlit_app.py

parent fc4a23fb
No related branches found
No related tags found
No related merge requests found
...@@ -272,12 +272,17 @@ if 'logged_in' in st.session_state and st.session_state.logged_in: ...@@ -272,12 +272,17 @@ if 'logged_in' in st.session_state and st.session_state.logged_in:
# Conditional fields based on employee type # Conditional fields based on employee type
if TYPE == 2: if TYPE == 2:
CS_PRODUCTION = st.number_input("Code salarial de production (1-6)", min_value=1,max_value=6, step=1, value=None) #CS_PRODUCTION = st.number_input("Code salarial de production (1-9)", min_value=1, step=1, value=1, max_value=6)
prod_options = [1, 2, 3, 4, 5, 6, 7, 8, 9]
CS_PRODUCTION = st.selectbox("Code salarial de production (1-9)", index=0,
options=prod_options)
CS_JOURNEE = None CS_JOURNEE = None
else: else:
CS_JOURNEE = st.number_input("Code salarial journalier (1-9)", min_value=1,max_value=9, step=1, value=1) #CS_JOURNEE = st.number_input("Code salarial journalier (1-6)", min_value=1, step=1, value=1, max_value=9)
journalier_options = [1, 2, 3, 4, 5, 6]
CS_JOURNEE = st.selectbox("Code salarial de journalier (1-6)", index=0,
options=journalier_options)
CS_PRODUCTION = None CS_PRODUCTION = None
# Start date # Start date
date_debut = st.date_input("date de début", value=date(2024, 11, 13)) date_debut = st.date_input("date de début", value=date(2024, 11, 13))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment