DSatishchandra commited on
Commit
7b30ae3
·
verified ·
1 Parent(s): 8a987c2

Create cart.html

Browse files
Files changed (1) hide show
  1. templates/cart.html +26 -0
templates/cart.html ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Cart</title>
7
+ </head>
8
+ <body>
9
+ <h1>Your Cart</h1>
10
+ {% if cart_items %}
11
+ <ul>
12
+ {% for item in cart_items %}
13
+ <li>{{ item.name }} x {{ item.quantity }} - ${{ item.price * item.quantity }}</li>
14
+ {% endfor %}
15
+ </ul>
16
+ <p>Total Price: ${{ total_price }}</p>
17
+ <form method="POST" action="{{ url_for('proceed_to_order') }}">
18
+ <label for="table_number">Table Number:</label>
19
+ <input type="text" name="table_number" required>
20
+ <button type="submit">Proceed to Order</button>
21
+ </form>
22
+ {% else %}
23
+ <p>Your cart is empty!</p>
24
+ {% endif %}
25
+ </body>
26
+ </html>