Spaces:
Sleeping
Sleeping
Update templates/menu.html
Browse files- templates/menu.html +3 -3
templates/menu.html
CHANGED
@@ -268,7 +268,7 @@
|
|
268 |
<h3>{{ section }}</h3>
|
269 |
<div class="row">
|
270 |
{% for item in items %}
|
271 |
-
<!--
|
272 |
{% if section == 'Appetizer' or section == 'Customized Dish' or section == 'Soft Drinks' %}
|
273 |
<div class="col-md-6 mb-4">
|
274 |
<div class="card menu-card">
|
@@ -284,6 +284,7 @@
|
|
284 |
</div>
|
285 |
</div>
|
286 |
{% else %}
|
|
|
287 |
<div class="col-md-6 mb-4">
|
288 |
<div class="card menu-card">
|
289 |
<img src="{{ item.Image1__c }}" class="card-img-top menu-image" alt="{{ item.Name }}" onerror="this.src='/static/placeholder.jpg';">
|
@@ -380,9 +381,8 @@
|
|
380 |
const listItem = document.createElement('div');
|
381 |
listItem.classList.add('form-check');
|
382 |
listItem.innerHTML = `
|
383 |
-
|
384 |
<input type="checkbox" class="form-check-input addon-option" id="${optionId}" value="${option}"
|
385 |
-
|
386 |
<label class="form-check-label" for="${optionId}">
|
387 |
${option} ${addon.extra_charge ? `($${addon.extra_charge_amount})` : ''}
|
388 |
</label>
|
|
|
268 |
<h3>{{ section }}</h3>
|
269 |
<div class="row">
|
270 |
{% for item in items %}
|
271 |
+
<!-- For 'Appetizer', 'Customized Dish', and 'Soft Drinks', remove 'Customisable' text and only show 'ADD' button -->
|
272 |
{% if section == 'Appetizer' or section == 'Customized Dish' or section == 'Soft Drinks' %}
|
273 |
<div class="col-md-6 mb-4">
|
274 |
<div class="card menu-card">
|
|
|
284 |
</div>
|
285 |
</div>
|
286 |
{% else %}
|
287 |
+
<!-- For other sections, display 'ADD' button and 'Customisable' text -->
|
288 |
<div class="col-md-6 mb-4">
|
289 |
<div class="card menu-card">
|
290 |
<img src="{{ item.Image1__c }}" class="card-img-top menu-image" alt="{{ item.Name }}" onerror="this.src='/static/placeholder.jpg';">
|
|
|
381 |
const listItem = document.createElement('div');
|
382 |
listItem.classList.add('form-check');
|
383 |
listItem.innerHTML = `
|
|
|
384 |
<input type="checkbox" class="form-check-input addon-option" id="${optionId}" value="${option}"
|
385 |
+
data-name="${option}" data-group="${addon.name}" data-price="${addon.extra_charge ? addon.extra_charge_amount : 0}">
|
386 |
<label class="form-check-label" for="${optionId}">
|
387 |
${option} ${addon.extra_charge ? `($${addon.extra_charge_amount})` : ''}
|
388 |
</label>
|