Rammohan0504 commited on
Commit
35ed9ca
·
verified ·
1 Parent(s): 9f0f3fc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -19,7 +19,7 @@ def update_cart(cart):
19
  html_content = "<h3>Cart Items</h3><ul>"
20
  for item in cart:
21
  html_content += f"<li>{item}</li>"
22
- html_content += "</ul><button onclick='alert("Order placed!")' style='padding: 10px 20px; background-color: #007bff; color: white; border: none; border-radius: 5px;'>Place Order</button>"
23
  return html_content
24
 
25
  # Function to filter dishes by category
@@ -39,7 +39,7 @@ def display_dishes(category="ALL"):
39
  <h4>{dish['name']}</h4>
40
  <p>{dish['description']}</p>
41
  <p><strong>Price:</strong> {dish['price']}</p>
42
- <button onclick=\"showMenuPopup('{dish['name']}', '{dish['description']}', '{dish['price']}', '{dish['image']}')\" style='padding: 5px 10px; background-color: #28a745; color: white; border: none; border-radius: 3px;'>Add to Cart</button>
43
  </div>
44
  """
45
  html_content += "</div>"
 
19
  html_content = "<h3>Cart Items</h3><ul>"
20
  for item in cart:
21
  html_content += f"<li>{item}</li>"
22
+ html_content += "</ul><button onclick=\'alert(\"Order placed!\")\' style=\'padding: 10px 20px; background-color: #007bff; color: white; border: none; border-radius: 5px;\'>Place Order</button>"
23
  return html_content
24
 
25
  # Function to filter dishes by category
 
39
  <h4>{dish['name']}</h4>
40
  <p>{dish['description']}</p>
41
  <p><strong>Price:</strong> {dish['price']}</p>
42
+ <button onclick="showMenuPopup('{dish['name']}', '{dish['description']}', '{dish['price']}', '{dish['image']}')" style='padding: 5px 10px; background-color: #28a745; color: white; border: none; border-radius: 3px;'>Add to Cart</button>
43
  </div>
44
  """
45
  html_content += "</div>"