Update app.py
Browse files
app.py
CHANGED
|
@@ -339,7 +339,7 @@ st.markdown("### Project Details")
|
|
| 339 |
col1, col2 = st.columns([1, 1]) # Equal width columns for better alignment
|
| 340 |
|
| 341 |
with col1:
|
| 342 |
-
|
| 343 |
phase = st.selectbox(
|
| 344 |
"Phase",
|
| 345 |
[""] + ["Planning", "Design", "Construction"],
|
|
@@ -353,9 +353,7 @@ with col1:
|
|
| 353 |
st.session_state.phase = phase
|
| 354 |
st.session_state.task = "" # Reset task when phase changes
|
| 355 |
logger.info(f"Phase changed to {phase}, resetting task")
|
| 356 |
-
|
| 357 |
-
with col2:
|
| 358 |
-
# Task selection
|
| 359 |
task_options_list = [""] + task_options.get(phase, []) if phase else [""]
|
| 360 |
logger.info(f"Task options for phase '{phase}': {task_options_list}")
|
| 361 |
task = st.selectbox(
|
|
@@ -366,11 +364,6 @@ with col2:
|
|
| 366 |
help="Select the task corresponding to the phase"
|
| 367 |
)
|
| 368 |
st.session_state.task = task
|
| 369 |
-
|
| 370 |
-
# Other inputs
|
| 371 |
-
col1, col2 = st.columns([1, 1])
|
| 372 |
-
with col1:
|
| 373 |
-
project_name = st.text_input("Project Name", help="Enter the name of the project")
|
| 374 |
current_progress = st.number_input("Current Progress (%)", min_value=0.0, max_value=100.0, step=1.0, value=0.0, help="Enter the current progress percentage")
|
| 375 |
task_expected_duration = st.number_input("Task Expected Duration (days)", min_value=0, step=1, value=0, help="Enter the expected duration in days")
|
| 376 |
task_actual_duration = st.number_input("Task Actual Duration (days)", min_value=0, step=1, value=0, help="Enter the actual duration in days")
|
|
|
|
| 339 |
col1, col2 = st.columns([1, 1]) # Equal width columns for better alignment
|
| 340 |
|
| 341 |
with col1:
|
| 342 |
+
project_name = st.text_input("Project Name", help="Enter the name of the project")
|
| 343 |
phase = st.selectbox(
|
| 344 |
"Phase",
|
| 345 |
[""] + ["Planning", "Design", "Construction"],
|
|
|
|
| 353 |
st.session_state.phase = phase
|
| 354 |
st.session_state.task = "" # Reset task when phase changes
|
| 355 |
logger.info(f"Phase changed to {phase}, resetting task")
|
| 356 |
+
|
|
|
|
|
|
|
| 357 |
task_options_list = [""] + task_options.get(phase, []) if phase else [""]
|
| 358 |
logger.info(f"Task options for phase '{phase}': {task_options_list}")
|
| 359 |
task = st.selectbox(
|
|
|
|
| 364 |
help="Select the task corresponding to the phase"
|
| 365 |
)
|
| 366 |
st.session_state.task = task
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 367 |
current_progress = st.number_input("Current Progress (%)", min_value=0.0, max_value=100.0, step=1.0, value=0.0, help="Enter the current progress percentage")
|
| 368 |
task_expected_duration = st.number_input("Task Expected Duration (days)", min_value=0, step=1, value=0, help="Enter the expected duration in days")
|
| 369 |
task_actual_duration = st.number_input("Task Actual Duration (days)", min_value=0, step=1, value=0, help="Enter the actual duration in days")
|