QRCodeMenu / templates /cart.html
DSatishchandra's picture
Create cart.html
7b30ae3 verified
raw
history blame contribute delete
818 Bytes
<!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>