Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -821,17 +821,17 @@ elif st.session_state.current_index < len(st.session_state.data):
|
|
| 821 |
|
| 822 |
show_fields(STEPS[step])
|
| 823 |
|
| 824 |
-
c1, c2, c3 = st.columns([
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 825 |
with c1:
|
| 826 |
-
if st.button("<< Previous"):
|
| 827 |
-
if step > 0:
|
| 828 |
-
st.session_state.step -= 1
|
| 829 |
-
st.rerun()
|
| 830 |
-
else:
|
| 831 |
-
st.session_state.current_index -= 1
|
| 832 |
-
st.session_state.step = total_steps - 1
|
| 833 |
-
st.rerun()
|
| 834 |
-
with c2:
|
| 835 |
label = " **Submit >>**" if step < total_steps - 1 else "**Submit & next session**"
|
| 836 |
if st.button(label):
|
| 837 |
if validate_current_page(STEPS[step], st.session_state.current_index):
|
|
|
|
| 821 |
|
| 822 |
show_fields(STEPS[step])
|
| 823 |
|
| 824 |
+
c1, c2, c3 = st.columns([5,5,2])
|
| 825 |
+
# with c1:
|
| 826 |
+
# if st.button("<< Previous"):
|
| 827 |
+
# if step > 0:
|
| 828 |
+
# st.session_state.step -= 1
|
| 829 |
+
# st.rerun()
|
| 830 |
+
# else:
|
| 831 |
+
# st.session_state.current_index -= 1
|
| 832 |
+
# st.session_state.step = total_steps - 1
|
| 833 |
+
# st.rerun()
|
| 834 |
with c1:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 835 |
label = " **Submit >>**" if step < total_steps - 1 else "**Submit & next session**"
|
| 836 |
if st.button(label):
|
| 837 |
if validate_current_page(STEPS[step], st.session_state.current_index):
|