lokesh341 commited on
Commit
e2f57b7
·
verified ·
1 Parent(s): 34e95e1

Create all_menu_items.html

Browse files
Files changed (1) hide show
  1. templates/all_menu_items.html +76 -0
templates/all_menu_items.html ADDED
@@ -0,0 +1,76 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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>All Menu Items</title>
7
+ <link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
8
+ <style>
9
+ body {
10
+ font-family: Arial, sans-serif;
11
+ background-color: #fdf4e3;
12
+ padding: 20px;
13
+ }
14
+ .container {
15
+ max-width: 900px;
16
+ }
17
+ .menu-card {
18
+ max-width: 300px;
19
+ border-radius: 10px;
20
+ background-color: #fff;
21
+ margin: 10px auto;
22
+ padding: 10px;
23
+ box-shadow: 0 2px 5px rgba(0,0,0,0.1);
24
+ }
25
+ .menu-image {
26
+ width: 100%;
27
+ height: 150px;
28
+ object-fit: cover;
29
+ border-radius: 10px 10px 0 0;
30
+ }
31
+ .card-title {
32
+ font-size: 1.1rem;
33
+ font-weight: 600;
34
+ color: #333;
35
+ margin: 5px 0;
36
+ }
37
+ .card-price {
38
+ font-size: 1rem;
39
+ color: #000;
40
+ }
41
+ </style>
42
+ </head>
43
+ <body>
44
+ <div class="container">
45
+ <h2>All Menu Items</h2>
46
+ <div class="row">
47
+ {% for section, items in ordered_menu.items() %}
48
+ {% for item in items %}
49
+ {% if item.Name in menu_items_list %}
50
+ <div class="col-md-4 mb-3">
51
+ <div class="menu-card">
52
+ <img src="{{ item.Image2__c | default('/static/placeholder.jpg') }}" alt="{{ item.Name | default('Unnamed Item') }}" class="menu-image">
53
+ <div class="card-body">
54
+ <h5 class="card-title">{{ item.Name | default('Unnamed Item') }}</h5>
55
+ <p class="card-price">${{ item.Price__c | default('0.00') }}</p>
56
+ </div>
57
+ </div>
58
+ </div>
59
+ {% endif %}
60
+ {% endfor %}
61
+ {% endfor %}
62
+ </div>
63
+ </div>
64
+
65
+ <script>
66
+ // Assuming menu_items_list is passed from the backend or derived from menu.html
67
+ const menu_items_list = [
68
+ {% for section, items in ordered_menu.items() %}
69
+ {% for item in items %}
70
+ "{{ item.Name | default('Unnamed Item') | e }}",
71
+ {% endfor %}
72
+ {% endfor %}
73
+ ];
74
+ </script>
75
+ </body>
76
+ </html>