Spaces:
Paused
Paused
Maryam Ilka commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -515,26 +515,22 @@ def map_view():
|
|
| 515 |
|
| 516 |
show_explanation(st.session_state.scenario_type)
|
| 517 |
|
| 518 |
-
# دکمهها
|
| 519 |
-
|
| 520 |
-
|
| 521 |
-
|
| 522 |
-
|
| 523 |
-
|
| 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 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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():
|