|
|
<!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> |
|
|
|