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