Spaces:
Build error
Build error
Upload 2 files
Browse files- app.py +4 -7
- plan_2.png +0 -0
app.py
CHANGED
|
@@ -140,10 +140,8 @@ st.set_page_config(
|
|
| 140 |
|
| 141 |
|
| 142 |
# Section 1: Plan Info
|
| 143 |
-
st.sidebar.image('Fynd_logo2.png', width=300)
|
| 144 |
-
st.sidebar.title(":blue[Plan maker]")
|
| 145 |
user_name = st.sidebar.text_input("Enter your name:")
|
| 146 |
-
st.sidebar.title("Section 1: Plan Info")
|
| 147 |
v1 = ["Commerce India", "Reliance", "Commerce Global", "Government Projects", "Individual BH"]
|
| 148 |
business_head = st.sidebar.selectbox("Business Head", [""] + v1, help="Enter the name of Business head")
|
| 149 |
company_id = st.sidebar.text_input("Company ID", help="Enter the company ID")
|
|
@@ -160,7 +158,7 @@ plan_start_date = st.sidebar.date_input("Plan Start Date", value=datetime.now(),
|
|
| 160 |
|
| 161 |
|
| 162 |
# Section 2: Company Info
|
| 163 |
-
st.sidebar.title("Section 2: Rule Info")
|
| 164 |
a1 = ["GoFynd", "Uniket", "B2B", "Marketplaces", "StoreOS", "Storefronts", "ONDC", "Fynd OMS", "Fynd TMS", "Fynd WMS",
|
| 165 |
"GMC", "Catalog Cloud", "Fynd Commerce Platform", "Logistics", "PixelBin", "Boltic", "CoPilot"]
|
| 166 |
ordering_channels = st.sidebar.selectbox("Product lines", [""] + a1, help="Select the ordering channels")
|
|
@@ -246,8 +244,7 @@ char_config = {
|
|
| 246 |
|
| 247 |
|
| 248 |
# 2nd layer: Mapping of Ordering channels with fee types
|
| 249 |
-
st.
|
| 250 |
-
st.write("")
|
| 251 |
st.write("")
|
| 252 |
st.write("")
|
| 253 |
fee_type_mapping = fee_config['fee_type_mapping']
|
|
@@ -358,7 +355,7 @@ selected_plan_validity = st.selectbox("Plan Validity", [""] + plan_validity_opti
|
|
| 358 |
selected_payment_method = st.selectbox("Payment Method", [""] + payment_method_options, help="Select the payment method", key="py_vd_2")
|
| 359 |
|
| 360 |
# Submit button
|
| 361 |
-
if st.button("Submit"):
|
| 362 |
# Save user data
|
| 363 |
user_data = {
|
| 364 |
"Plan Name": plan_name,
|
|
|
|
| 140 |
|
| 141 |
|
| 142 |
# Section 1: Plan Info
|
|
|
|
|
|
|
| 143 |
user_name = st.sidebar.text_input("Enter your name:")
|
| 144 |
+
st.sidebar.title(":blue[Section 1: Plan Info]")
|
| 145 |
v1 = ["Commerce India", "Reliance", "Commerce Global", "Government Projects", "Individual BH"]
|
| 146 |
business_head = st.sidebar.selectbox("Business Head", [""] + v1, help="Enter the name of Business head")
|
| 147 |
company_id = st.sidebar.text_input("Company ID", help="Enter the company ID")
|
|
|
|
| 158 |
|
| 159 |
|
| 160 |
# Section 2: Company Info
|
| 161 |
+
st.sidebar.title(":blue[Section 2: Rule Info]")
|
| 162 |
a1 = ["GoFynd", "Uniket", "B2B", "Marketplaces", "StoreOS", "Storefronts", "ONDC", "Fynd OMS", "Fynd TMS", "Fynd WMS",
|
| 163 |
"GMC", "Catalog Cloud", "Fynd Commerce Platform", "Logistics", "PixelBin", "Boltic", "CoPilot"]
|
| 164 |
ordering_channels = st.sidebar.selectbox("Product lines", [""] + a1, help="Select the ordering channels")
|
|
|
|
| 244 |
|
| 245 |
|
| 246 |
# 2nd layer: Mapping of Ordering channels with fee types
|
| 247 |
+
st.image('plan_2.png', width=300)
|
|
|
|
| 248 |
st.write("")
|
| 249 |
st.write("")
|
| 250 |
fee_type_mapping = fee_config['fee_type_mapping']
|
|
|
|
| 355 |
selected_payment_method = st.selectbox("Payment Method", [""] + payment_method_options, help="Select the payment method", key="py_vd_2")
|
| 356 |
|
| 357 |
# Submit button
|
| 358 |
+
if st.button(":blue[Submit]"):
|
| 359 |
# Save user data
|
| 360 |
user_data = {
|
| 361 |
"Plan Name": plan_name,
|
plan_2.png
ADDED
|