import streamlit as st from src.forms.change_request import change_request_form from src.forms.database_check import database_check_form from src.forms.deviation_occurrence_report import deviation_occurrence_report_form from src.forms.deviation_report import deviation_report_form pages = { "変更申請書": change_request_form, "逸脱発生報告書": deviation_occurrence_report_form, "逸脱報告書": deviation_report_form, "申請履歴": database_check_form, } selected_page = st.sidebar.selectbox( "作成する文書を選択してください。", list(pages.keys()) ) match selected_page: case "変更申請書": pages["変更申請書"]() case "逸脱発生報告書": pages["逸脱発生報告書"]() case "逸脱報告書": pages["逸脱報告書"]() case "申請履歴": pages["申請履歴"]()