refactor(menu): remover etiquetas verdes MEP Saludable de todas las tarjetas de menú
This commit is contained in:
+2
-6
@@ -1338,13 +1338,9 @@
|
|||||||
<!-- Se llena dinámicamente -->
|
<!-- Se llena dinámicamente -->
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- TÍTULO DE SECCIÓN Y FILTRO MEP -->
|
<!-- TÍTULO DE SECCIÓN -->
|
||||||
<div class="section-title">
|
<div class="section-title">
|
||||||
<span id="catalogTitle">Menú del Recreo</span>
|
<span id="catalogTitle">Menú del Recreo</span>
|
||||||
<label style="font-size: 0.75rem; font-weight: 600; color: #166534; display: flex; align-items: center; gap: 4px; cursor: pointer;">
|
|
||||||
<input type="checkbox" id="chkFilterMep" onchange="renderProducts()">
|
|
||||||
<span>Solo Saludables MEP</span>
|
|
||||||
</label>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- GRILLA DE PRODUCTOS -->
|
<!-- GRILLA DE PRODUCTOS -->
|
||||||
@@ -2289,6 +2285,6 @@
|
|||||||
<script src="/js/sounds.js?v=9.6"></script>
|
<script src="/js/sounds.js?v=9.6"></script>
|
||||||
<script src="/js/jsQR.js"></script>
|
<script src="/js/jsQR.js"></script>
|
||||||
<script src="/js/food-icons.js?v=1.1"></script>
|
<script src="/js/food-icons.js?v=1.1"></script>
|
||||||
<script src="/js/app.js?v=9.9"></script>
|
<script src="/js/app.js?v=10.0"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
+1
-4
@@ -809,10 +809,7 @@ function renderProducts() {
|
|||||||
<div class="product-card ${isOutOfStock ? 'out-of-stock' : ''}">
|
<div class="product-card ${isOutOfStock ? 'out-of-stock' : ''}">
|
||||||
${mediaHtml}
|
${mediaHtml}
|
||||||
<div>
|
<div>
|
||||||
<div style="display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 4px;">
|
${stockBadge ? `<div style="display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 4px;">${stockBadge}</div>` : ''}
|
||||||
${prod.cumple_mep ? '<span class="badge-mep">MEP Saludable</span>' : ''}
|
|
||||||
${stockBadge}
|
|
||||||
</div>
|
|
||||||
<h4 class="product-name">${prod.nombre}</h4>
|
<h4 class="product-name">${prod.nombre}</h4>
|
||||||
<p class="product-desc">${prod.descripcion || ''}</p>
|
<p class="product-desc">${prod.descripcion || ''}</p>
|
||||||
${hasAlergenos ? `<div style="font-size: 0.68rem; color: #dc2626; margin-bottom: 4px; display: flex; align-items: center; gap: 4px;"><svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5"><path d="m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z"/><line x1="12" y1="9" x2="12" y2="13"/><line x1="12" y1="17" x2="12.01" y2="17"/></svg> Contiene: ${prod.alergenos}</div>` : ''}
|
${hasAlergenos ? `<div style="font-size: 0.68rem; color: #dc2626; margin-bottom: 4px; display: flex; align-items: center; gap: 4px;"><svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5"><path d="m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z"/><line x1="12" y1="9" x2="12" y2="13"/><line x1="12" y1="17" x2="12.01" y2="17"/></svg> Contiene: ${prod.alergenos}</div>` : ''}
|
||||||
|
|||||||
@@ -359,7 +359,6 @@ function renderPosProducts(catId) {
|
|||||||
${mediaHtml}
|
${mediaHtml}
|
||||||
<div>
|
<div>
|
||||||
<div class="prod-title">${prod.nombre}</div>
|
<div class="prod-title">${prod.nombre}</div>
|
||||||
${prod.cumple_mep ? '<span style="font-size: 0.68rem; color: #166534; font-weight: 700; margin-top: 3px; display: inline-flex; align-items: center; gap: 3px;">🌿 MEP Saludable</span>' : ''}
|
|
||||||
${isOutOfStock ? '<span style="font-size: 0.68rem; color: #dc2626; display: block; margin-top: 2px; font-weight: 700;">No disponible</span>' : ''}
|
${isOutOfStock ? '<span style="font-size: 0.68rem; color: #dc2626; display: block; margin-top: 2px; font-weight: 700;">No disponible</span>' : ''}
|
||||||
</div>
|
</div>
|
||||||
<div class="prod-price" style="color: ${isOutOfStock ? '#94a3b8' : '#0284c7'};">
|
<div class="prod-price" style="color: ${isOutOfStock ? '#94a3b8' : '#0284c7'};">
|
||||||
|
|||||||
+1
-1
@@ -458,6 +458,6 @@
|
|||||||
<script src="/js/sounds.js?v=8.6"></script>
|
<script src="/js/sounds.js?v=8.6"></script>
|
||||||
<script src="/js/jsQR.js"></script>
|
<script src="/js/jsQR.js"></script>
|
||||||
<script src="/js/food-icons.js?v=1.1"></script>
|
<script src="/js/food-icons.js?v=1.1"></script>
|
||||||
<script src="/js/pos.js?v=9.9"></script>
|
<script src="/js/pos.js?v=10.0"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Reference in New Issue
Block a user