Maryam Ilka commited on
Commit
2ed7812
·
verified ·
1 Parent(s): b503394

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -17
app.py CHANGED
@@ -515,26 +515,22 @@ def map_view():
515
 
516
  show_explanation(st.session_state.scenario_type)
517
 
518
- # دکمه‌ها با چیدمان بهینه برای دسکتاپ
519
- if st.session_state.is_desktop:
520
- cols = st.columns(2)
521
- with cols[0]:
522
- if st.button("درخواست راهیار", key="accept_btn_desktop",
523
- type="primary", use_container_width=True):
524
- st.session_state.price_accepted = 1
525
- st.rerun()
526
- with cols[1]:
527
- if st.button("رد قیمت", key="reject_btn_desktop",
528
- type="secondary", use_container_width=True):
529
- st.session_state.price_accepted = 0
530
- st.rerun()
531
- else:
532
- # نسخه موبایل
533
- if st.button("درخواست راهیار", key="accept_btn_mobile"):
534
  st.session_state.price_accepted = 1
 
535
  st.rerun()
536
- if st.button("رد قیمت", key="reject_btn_mobile"):
 
 
 
 
537
  st.session_state.price_accepted = 0
 
538
  st.rerun()
539
 
540
  def transparency_questions():
 
515
 
516
  show_explanation(st.session_state.scenario_type)
517
 
518
+ # دکمه‌های جدید با استایل‌های سفارشی
519
+ col1, col2 = st.columns(2)
520
+ with col1:
521
+ if st.button("درخواست راهیار", key="accept_btn",
522
+ help="برای تایید قیمت و درخواست سفر کلیک کنید",
523
+ use_container_width=True):
 
 
 
 
 
 
 
 
 
 
524
  st.session_state.price_accepted = 1
525
+ st.session_state.current_page = "transparency_questions"
526
  st.rerun()
527
+
528
+ with col2:
529
+ if st.button("رد قیمت", key="reject_btn",
530
+ help="برای رد قیمت و ادامه به سوالات کلیک کنید",
531
+ use_container_width=True):
532
  st.session_state.price_accepted = 0
533
+ st.session_state.current_page = "transparency_questions"
534
  st.rerun()
535
 
536
  def transparency_questions():