geethareddy commited on
Commit
cc0bc0e
·
verified ·
1 Parent(s): 5385636

Update templates/menu.html

Browse files
Files changed (1) hide show
  1. templates/menu.html +33 -28
templates/menu.html CHANGED
@@ -46,7 +46,7 @@
46
  .customisable-text {
47
  font-size: 0.8rem;
48
  color: #6c757d;
49
- text-align: right; /* Align the text to the right */
50
  margin-top: 5px;
51
  }
52
  .btn-primary {
@@ -59,7 +59,7 @@
59
  text-transform: uppercase;
60
  margin-top: 10px;
61
  margin-left: auto;
62
- margin-right: 0; /* Align the button to the right */
63
  display: block;
64
  }
65
  .btn-primary:hover, .btn-primary:active, .btn-primary:focus {
@@ -90,19 +90,6 @@
90
  background-color: #109835;
91
  text-decoration: none;
92
  }
93
- .fixed-search-container {
94
- position: absolute;
95
- top: 90px;
96
- left: 50%;
97
- transform: translateX(-50%);
98
- width: 80%;
99
- max-width: 600px;
100
- z-index: 999;
101
- background-color: white;
102
- padding: 10px;
103
- border-radius: 25px;
104
- box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
105
- }
106
  .container {
107
  margin-top: 10px;
108
  }
@@ -281,20 +268,38 @@
281
  <h3>{{ section }}</h3>
282
  <div class="row">
283
  {% for item in items %}
284
- <div class="col-md-6 mb-4">
285
- <div class="card menu-card">
286
- <img src="{{ item.Image1__c }}" class="card-img-top menu-image" alt="{{ item.Name }}" onerror="this.src='/static/placeholder.jpg';">
287
- <div class="card-body">
288
- <h5 class="card-title">{{ item.Name }}</h5>
289
- <p class="card-text">${{ item.Price__c }}</p>
290
- <button class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#itemModal"
291
- onclick="showItemDetails('{{ item.Name }}', '{{ item.Price__c }}', '{{ item.Image2__c }}', '{{ item.Description__c }}', '{{ item.Section__c }}','{{ selected_category }}')">
292
- ADD
293
- </button>
294
- <div class="customisable-text">Customisable</div>
 
 
 
295
  </div>
296
  </div>
297
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
298
  {% endfor %}
299
  </div>
300
  {% endfor %}
@@ -398,4 +403,4 @@
398
  <!-- Bootstrap JS -->
399
  <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
400
  </body>
401
- </html>
 
46
  .customisable-text {
47
  font-size: 0.8rem;
48
  color: #6c757d;
49
+ text-align: right;
50
  margin-top: 5px;
51
  }
52
  .btn-primary {
 
59
  text-transform: uppercase;
60
  margin-top: 10px;
61
  margin-left: auto;
62
+ margin-right: 0;
63
  display: block;
64
  }
65
  .btn-primary:hover, .btn-primary:active, .btn-primary:focus {
 
90
  background-color: #109835;
91
  text-decoration: none;
92
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
93
  .container {
94
  margin-top: 10px;
95
  }
 
268
  <h3>{{ section }}</h3>
269
  <div class="row">
270
  {% for item in items %}
271
+ <!-- Check if the item belongs to 'Appetizer' or 'Customized Dish' category -->
272
+ {% if section != 'Appetizer' and section != 'Customized Dish' %}
273
+ <div class="col-md-6 mb-4">
274
+ <div class="card menu-card">
275
+ <img src="{{ item.Image1__c }}" class="card-img-top menu-image" alt="{{ item.Name }}" onerror="this.src='/static/placeholder.jpg';">
276
+ <div class="card-body">
277
+ <h5 class="card-title">{{ item.Name }}</h5>
278
+ <p class="card-text">${{ item.Price__c }}</p>
279
+ <button class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#itemModal"
280
+ onclick="showItemDetails('{{ item.Name }}', '{{ item.Price__c }}', '{{ item.Image2__c }}', '{{ item.Description__c }}', '{{ item.Section__c }}','{{ selected_category }}')">
281
+ ADD
282
+ </button>
283
+ <div class="customisable-text">Customisable</div>
284
+ </div>
285
  </div>
286
  </div>
287
+ {% else %}
288
+ <!-- For Appetizer or Customized Dish, show only "ADD" button, no "Customisable" text -->
289
+ <div class="col-md-6 mb-4">
290
+ <div class="card menu-card">
291
+ <img src="{{ item.Image1__c }}" class="card-img-top menu-image" alt="{{ item.Name }}" onerror="this.src='/static/placeholder.jpg';">
292
+ <div class="card-body">
293
+ <h5 class="card-title">{{ item.Name }}</h5>
294
+ <p class="card-text">${{ item.Price__c }}</p>
295
+ <button class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#itemModal"
296
+ onclick="showItemDetails('{{ item.Name }}', '{{ item.Price__c }}', '{{ item.Image2__c }}', '{{ item.Description__c }}', '{{ item.Section__c }}','{{ selected_category }}')">
297
+ ADD
298
+ </button>
299
+ </div>
300
+ </div>
301
+ </div>
302
+ {% endif %}
303
  {% endfor %}
304
  </div>
305
  {% endfor %}
 
403
  <!-- Bootstrap JS -->
404
  <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
405
  </body>
406
+ </html>