Spaces:
Runtime error
Runtime error
Update templates/menu.html
Browse files- templates/menu.html +5 -15
templates/menu.html
CHANGED
|
@@ -2,14 +2,15 @@
|
|
| 2 |
<html>
|
| 3 |
<head>
|
| 4 |
<title>Menu</title>
|
|
|
|
| 5 |
</head>
|
| 6 |
<body>
|
| 7 |
<h1>Biryani Hub - Menu</h1>
|
| 8 |
<a href="/cart">View Cart</a>
|
| 9 |
-
<div>
|
| 10 |
{% for item in menu_items %}
|
| 11 |
-
<div>
|
| 12 |
-
<img src="{{ item.Image1__c }}" alt="Food Image"
|
| 13 |
<h3>{{ item.Name }}</h3>
|
| 14 |
<p>{{ item.Description__c }}</p>
|
| 15 |
<p>${{ item.Price__c }}</p>
|
|
@@ -17,17 +18,6 @@
|
|
| 17 |
</div>
|
| 18 |
{% endfor %}
|
| 19 |
</div>
|
| 20 |
-
<script>
|
| 21 |
-
function addToCart(name, price) {
|
| 22 |
-
fetch("/add_to_cart", {
|
| 23 |
-
method: "POST",
|
| 24 |
-
headers: { "Content-Type": "application/json" },
|
| 25 |
-
body: JSON.stringify({ name: name, price: price })
|
| 26 |
-
})
|
| 27 |
-
.then(response => response.json())
|
| 28 |
-
.then(data => alert(data.message))
|
| 29 |
-
.catch(error => console.error("Error:", error));
|
| 30 |
-
}
|
| 31 |
-
</script>
|
| 32 |
</body>
|
| 33 |
</html>
|
|
|
|
| 2 |
<html>
|
| 3 |
<head>
|
| 4 |
<title>Menu</title>
|
| 5 |
+
<link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}">
|
| 6 |
</head>
|
| 7 |
<body>
|
| 8 |
<h1>Biryani Hub - Menu</h1>
|
| 9 |
<a href="/cart">View Cart</a>
|
| 10 |
+
<div class="menu">
|
| 11 |
{% for item in menu_items %}
|
| 12 |
+
<div class="menu-item">
|
| 13 |
+
<img src="{{ item.Image1__c }}" alt="Food Image">
|
| 14 |
<h3>{{ item.Name }}</h3>
|
| 15 |
<p>{{ item.Description__c }}</p>
|
| 16 |
<p>${{ item.Price__c }}</p>
|
|
|
|
| 18 |
</div>
|
| 19 |
{% endfor %}
|
| 20 |
</div>
|
| 21 |
+
<script src="{{ url_for('static', filename='js/app.js') }}"></script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
</body>
|
| 23 |
</html>
|