Spaces:
Running
Running
Update templates/menu.html
Browse files- templates/menu.html +2 -2
templates/menu.html
CHANGED
@@ -344,7 +344,7 @@
|
|
344 |
<script>
|
345 |
function showItemDetails(name, price, image, description, section, selectedCategory) {
|
346 |
document.getElementById('modal-name').innerText = name;
|
347 |
-
document.getElementById('modal-price').innerText =
|
348 |
document.getElementById('modal-img').src = image || '/static/placeholder.jpg';
|
349 |
document.getElementById('modal-description').innerText = description || 'No description available.';
|
350 |
document.getElementById('addons-list').innerHTML = 'Loading customization options...';
|
@@ -389,7 +389,7 @@
|
|
389 |
<input type="checkbox" class="form-check-input addon-option" id="${optionId}" value="${option}"
|
390 |
data-name="${option}" data-price="${addon.extra_charge ? addon.extra_charge_amount : 0}">
|
391 |
<label class="form-check-label" for="${optionId}">
|
392 |
-
${option} ${addon.extra_charge ? `(
|
393 |
</label>
|
394 |
`;
|
395 |
optionsContainer.appendChild(listItem);
|
|
|
344 |
<script>
|
345 |
function showItemDetails(name, price, image, description, section, selectedCategory) {
|
346 |
document.getElementById('modal-name').innerText = name;
|
347 |
+
document.getElementById('modal-price').innerText = `${price}`;
|
348 |
document.getElementById('modal-img').src = image || '/static/placeholder.jpg';
|
349 |
document.getElementById('modal-description').innerText = description || 'No description available.';
|
350 |
document.getElementById('addons-list').innerHTML = 'Loading customization options...';
|
|
|
389 |
<input type="checkbox" class="form-check-input addon-option" id="${optionId}" value="${option}"
|
390 |
data-name="${option}" data-price="${addon.extra_charge ? addon.extra_charge_amount : 0}">
|
391 |
<label class="form-check-label" for="${optionId}">
|
392 |
+
${option} ${addon.extra_charge ? `(${addon.extra_charge_amount})` : ''}
|
393 |
</label>
|
394 |
`;
|
395 |
optionsContainer.appendChild(listItem);
|