Excel y sesiones.json a las 00

This commit is contained in:
2026-06-05 22:56:35 -05:00
parent aa5e85ae94
commit 984f2f103d
7 changed files with 550 additions and 107 deletions
+38 -2
View File
@@ -7,7 +7,7 @@
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap" rel="stylesheet">
<link rel="stylesheet" href="admin.css?v=4">
<link rel="stylesheet" href="admin.css?v=5">
</head>
<body>
@@ -164,6 +164,42 @@
</form>
</div>
<!-- Sub-sección: Asignar nombre + precio desde Excel/CSV -->
<div class="view-subsection" style="margin-top:28px">
<h2 class="subsection-title">📊 Asignar descripción y precio (Excel/CSV)</h2>
<div class="view-content-card">
<p class="excel-format-hint">
<span class="excel-format-cols">
<strong>A</strong> REFERENCIA
<span class="sep">|</span>
<strong>B</strong> DESCRIPCION
<span class="sep">|</span>
<strong>C</strong> PRECIO
</span>
<span class="excel-format-meta">.xlsx / .csv · encabezados en la primera fila · celdas vacías no sobrescriben</span>
</p>
<form id="formExcelUpload" class="excel-form" autocomplete="off">
<div class="form-group">
<label for="excelArchivo">Archivo Excel/CSV</label>
<input type="file" id="excelArchivo" accept=".xlsx,.xls,.csv" required>
<span class="form-hint" id="excelArchivoHint">Ningún archivo seleccionado</span>
</div>
<div class="excel-summary" id="excelSummary" style="display:none"></div>
<div class="form-error" id="excelError" role="alert"></div>
<div class="form-actions">
<button type="submit" class="btn btn-primary" id="btnProcesarExcel" disabled>
<span class="btn-text">Procesar archivo</span>
<span class="btn-spinner" style="display:none"></span>
</button>
</div>
</form>
</div>
</div>
<!-- Sub-sección: Lista de productos disponibles -->
<div class="view-subsection">
<div class="subsection-header">
@@ -464,6 +500,6 @@
</div>
</div>
<script src="admin.js?v=4"></script>
<script src="admin.js?v=5"></script>
</body>
</html>