Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -590,15 +590,11 @@ elif st.session_state.current_index == len(st.session_state.data):
|
|
590 |
else:
|
591 |
st.write(f"Thank you for taking part in this study!")
|
592 |
|
593 |
-
col1, col2, col3 = st.columns([1, 1, 3])
|
594 |
-
|
595 |
# Navigation buttons
|
596 |
-
|
597 |
-
if st.session_state.current_index > 0:
|
598 |
if st.button("Previous"):
|
599 |
navigate(-1)
|
600 |
-
|
601 |
-
if st.button("Last edited instance"):
|
602 |
go_to_index = get_start_index()
|
603 |
navigate_to_row(go_to_index)
|
604 |
|
@@ -618,7 +614,7 @@ def navigate_to_index():
|
|
618 |
st.error("The page number must be an integer.")
|
619 |
|
620 |
col1, col2, col3 = st.columns([2, 2, 2])
|
621 |
-
with
|
622 |
with st.form(key="nav_form"):
|
623 |
st.number_input("Go to Page: ", key="go_to", format="%.0f")
|
624 |
st.form_submit_button("Go", on_click=navigate_to_index)
|
|
|
590 |
else:
|
591 |
st.write(f"Thank you for taking part in this study!")
|
592 |
|
|
|
|
|
593 |
# Navigation buttons
|
594 |
+
if st.session_state.current_index > 0:
|
|
|
595 |
if st.button("Previous"):
|
596 |
navigate(-1)
|
597 |
+
if st.button("Last edited instance"):
|
|
|
598 |
go_to_index = get_start_index()
|
599 |
navigate_to_row(go_to_index)
|
600 |
|
|
|
614 |
st.error("The page number must be an integer.")
|
615 |
|
616 |
col1, col2, col3 = st.columns([2, 2, 2])
|
617 |
+
with col1:
|
618 |
with st.form(key="nav_form"):
|
619 |
st.number_input("Go to Page: ", key="go_to", format="%.0f")
|
620 |
st.form_submit_button("Go", on_click=navigate_to_index)
|