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