VeTools / tool_request_page.py
Felguk's picture
Create tool_request_page.py
1274df3 verified
raw
history blame contribute delete
845 Bytes
import streamlit as st
def tool_request_page():
st.title("Tool Request Form")
# Input fields
name = st.text_input("Your Name", placeholder="Enter your name")
tool = st.text_input("Tool Name", placeholder="Enter the tool you need")
# Send button
if st.button("Send"):
if name and tool:
send_request(name, tool)
else:
st.error("Please fill in both your name and the tool name.")
# Function to simulate sending an email
def send_request(name, tool):
# Here you can add your request sending logic
st.write(f"Name: {name}")
st.write(f"Tool: {tool}")
st.success("Your request has been sent successfully!")
# Store the name and tool in session state
st.session_state['name'] = name
st.session_state['tool'] = tool
st.session_state['page'] = 'mail'