Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -954,9 +954,9 @@ elif st.session_state.current_index < len(st.session_state.data):
|
|
| 954 |
|
| 955 |
show_fields(STEPS[step])
|
| 956 |
|
| 957 |
-
c1, c2, c3 = st.columns([
|
| 958 |
with c1:
|
| 959 |
-
if st.button("Previous"):
|
| 960 |
if step > 0:
|
| 961 |
st.session_state.step -= 1
|
| 962 |
st.rerun()
|
|
@@ -965,7 +965,7 @@ elif st.session_state.current_index < len(st.session_state.data):
|
|
| 965 |
st.session_state.step = total_steps - 1
|
| 966 |
st.rerun()
|
| 967 |
with c2:
|
| 968 |
-
label = "**
|
| 969 |
if st.button(label):
|
| 970 |
if validate_current_page(STEPS[step], st.session_state.current_index):
|
| 971 |
is_last_page = (step == total_steps - 1)
|
|
|
|
| 954 |
|
| 955 |
show_fields(STEPS[step])
|
| 956 |
|
| 957 |
+
c1, c2, c3 = st.columns([1,5,2])
|
| 958 |
with c1:
|
| 959 |
+
if st.button("<< Previous"):
|
| 960 |
if step > 0:
|
| 961 |
st.session_state.step -= 1
|
| 962 |
st.rerun()
|
|
|
|
| 965 |
st.session_state.step = total_steps - 1
|
| 966 |
st.rerun()
|
| 967 |
with c2:
|
| 968 |
+
label = " **Submit >>**" if step < total_steps - 1 else "**Submit & next session**"
|
| 969 |
if st.button(label):
|
| 970 |
if validate_current_page(STEPS[step], st.session_state.current_index):
|
| 971 |
is_last_page = (step == total_steps - 1)
|