File size: 745 Bytes
dad761f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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>
<head>
    <title>Cart</title>
</head>
<body>
    <h1>Biryani Hub - Cart</h1>
    <form method="POST" action="/place_order">
        <ul>
            {% for item in cart %}
                <li>{{ item.Name }} - ${{ item.Price }} x {{ item.Quantity }}</li>
            {% endfor %}
        </ul>
        <p>Total: ${{ total }}</p>
        {% if error %}
            <p style="color: red;">{{ error }}</p>
        {% endif %}
        {% if success %}
            <p style="color: green;">{{ success }}</p>
        {% endif %}
        <input type="email" name="email" placeholder="Enter your email" required>
        <button type="submit">Place Order</button>
    </form>
    <a href="/menu">Back to Menu</a>
</body>
</html>