Rename page/mail.py to page/mail_page.py
Browse files
page/{mail.py → mail_page.py}
RENAMED
@@ -1,19 +1,16 @@
|
|
1 |
import streamlit as st
|
2 |
|
3 |
-
def
|
4 |
-
st.title("
|
5 |
-
st.write("Thank you for your tool request! Your
|
6 |
st.write("Here are the details of your request:")
|
7 |
|
8 |
-
# Retrieve the
|
|
|
9 |
tool = st.session_state.get('tool')
|
10 |
-
email = st.session_state.get('email')
|
11 |
|
12 |
-
if
|
|
|
13 |
st.write(f"**Tool:** {tool}")
|
14 |
-
st.write(f"**Email:** {email}")
|
15 |
else:
|
16 |
-
st.write("No request details found.")
|
17 |
-
|
18 |
-
if __name__ == "__main__":
|
19 |
-
main()
|
|
|
1 |
import streamlit as st
|
2 |
|
3 |
+
def mail_page():
|
4 |
+
st.title("Request Sent Successfully")
|
5 |
+
st.write("Thank you for your tool request! Your request has been sent.")
|
6 |
st.write("Here are the details of your request:")
|
7 |
|
8 |
+
# Retrieve the name and tool from session state
|
9 |
+
name = st.session_state.get('name')
|
10 |
tool = st.session_state.get('tool')
|
|
|
11 |
|
12 |
+
if name and tool:
|
13 |
+
st.write(f"**Name:** {name}")
|
14 |
st.write(f"**Tool:** {tool}")
|
|
|
15 |
else:
|
16 |
+
st.write("No request details found.")
|
|
|
|
|
|