Spaces:
Sleeping
Sleeping
Update templates/menu.html
Browse files- templates/menu.html +2 -2
templates/menu.html
CHANGED
|
@@ -322,7 +322,7 @@
|
|
| 322 |
<script>
|
| 323 |
function showItemDetails(name, price, image, description, section, selectedCategory) {
|
| 324 |
document.getElementById('modal-name').innerText = name;
|
| 325 |
-
document.getElementById('modal-price').innerText =
|
| 326 |
document.getElementById('modal-img').src = image || '/static/placeholder.jpg';
|
| 327 |
document.getElementById('modal-description').innerText = description || 'No description available.';
|
| 328 |
document.getElementById('addons-list').innerHTML = 'Loading customization options...';
|
|
@@ -367,7 +367,7 @@
|
|
| 367 |
<input type="checkbox" class="form-check-input addon-option" id="${optionId}" value="${option}"
|
| 368 |
data-name="${option}" data-price="${addon.extra_charge ? addon.extra_charge_amount : 0}">
|
| 369 |
<label class="form-check-label" for="${optionId}">
|
| 370 |
-
${option} ${addon.extra_charge ? `(
|
| 371 |
</label>
|
| 372 |
`;
|
| 373 |
optionsContainer.appendChild(listItem);
|
|
|
|
| 322 |
<script>
|
| 323 |
function showItemDetails(name, price, image, description, section, selectedCategory) {
|
| 324 |
document.getElementById('modal-name').innerText = name;
|
| 325 |
+
document.getElementById('modal-price').innerText = `${price}`;
|
| 326 |
document.getElementById('modal-img').src = image || '/static/placeholder.jpg';
|
| 327 |
document.getElementById('modal-description').innerText = description || 'No description available.';
|
| 328 |
document.getElementById('addons-list').innerHTML = 'Loading customization options...';
|
|
|
|
| 367 |
<input type="checkbox" class="form-check-input addon-option" id="${optionId}" value="${option}"
|
| 368 |
data-name="${option}" data-price="${addon.extra_charge ? addon.extra_charge_amount : 0}">
|
| 369 |
<label class="form-check-label" for="${optionId}">
|
| 370 |
+
${option} ${addon.extra_charge ? `($${addon.extra_charge_amount})` : ''}
|
| 371 |
</label>
|
| 372 |
`;
|
| 373 |
optionsContainer.appendChild(listItem);
|