set payment ramburs only

This commit is contained in:
2025-11-17 06:29:02 +02:00
parent 1281c157d7
commit 4eb465d994
2 changed files with 17 additions and 7 deletions

View File

@@ -144,6 +144,16 @@ class ProductPage:
)
]
)
self.add_co_card_placeholder = ft.Column()
if self.product['aviability'] == 'in_stock':
self.add_co_card_placeholder.controls.append(
ft.FilledButton(
"Adauga in cos",
icon=ft.Icons.SHOPPING_CART,
width=150,
on_click= lambda e, i=self.product: self.on_add_to_cart_btn_click(i)
)
)
self.product_content_details = ft.Column(
[
@@ -173,12 +183,7 @@ class ProductPage:
ft.Row(
[
self.quantify_group,
ft.FilledButton(
"Adauga in cos",
icon=ft.Icons.SHOPPING_CART,
width=150,
on_click= lambda e, i=self.product: self.on_add_to_cart_btn_click(i)
)
self.add_co_card_placeholder
]
)
],