Spaces:
Sleeping
Sleeping
File size: 715 Bytes
8a987c2 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Menu</title>
</head>
<body>
<h1>Welcome, {{ session['customer_name'] }}</h1>
<h2>Menu</h2>
<form method="POST">
{% for item in menu %}
<div>
<span>{{ item.name }} - ${{ item.price }}</span>
<input type="number" name="quantity" value="1" min="1">
<input type="hidden" name="item_id" value="{{ item.id }}">
<button type="submit">Add to Cart</button>
</div>
{% endfor %}
</form>
<a href="{{ url_for('cart') }}">View Cart</a>
</body>
</html>
|