Spaces:
Build error
Build error
Update templates/menu.html
Browse files- templates/menu.html +2 -1
templates/menu.html
CHANGED
|
@@ -187,7 +187,8 @@
|
|
| 187 |
data.addons.forEach(addon => {
|
| 188 |
const listItem = document.createElement('div');
|
| 189 |
listItem.innerHTML = `
|
| 190 |
-
<input type="checkbox" id="addon-${addon.Id}" value="${addon.Id}"
|
|
|
|
| 191 |
<label for="addon-${addon.Id}">${addon.Name} - $${addon.Price__c}</label>
|
| 192 |
`;
|
| 193 |
addonsList.appendChild(listItem);
|
|
|
|
| 187 |
data.addons.forEach(addon => {
|
| 188 |
const listItem = document.createElement('div');
|
| 189 |
listItem.innerHTML = `
|
| 190 |
+
<input type="checkbox" id="addon-${addon.Id}" value="${addon.Id}"
|
| 191 |
+
data-name="${addon.Name}" data-price="${addon.Price__c}">
|
| 192 |
<label for="addon-${addon.Id}">${addon.Name} - $${addon.Price__c}</label>
|
| 193 |
`;
|
| 194 |
addonsList.appendChild(listItem);
|