File size: 740 Bytes
3631a7f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
28
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Cart</title>
    <link rel="stylesheet" href="/static/style.css">
</head>
<body>
    <header>
        <h1>Your Cart</h1>
        <a href="/" class="cart-link">Back to Menu</a>
    </header>
    <div id="cart-container">
        {% if cart %}
        <ul>
            {% for item in cart %}
            <li>{{ item['name'] }} (x{{ item['quantity'] }}) - ${{ item['price'] * item['quantity'] }}</li>
            {% endfor %}
        </ul>
        <h3>Total Price: ${{ total_price }}</h3>
        {% else %}
        <p>Your cart is empty!</p>
        {% endif %}
    </div>
</body>
</html>