diff --git a/public/userarea/production_dashboard.php b/public/userarea/production_dashboard.php index 44436c0..4f0d951 100644 --- a/public/userarea/production_dashboard.php +++ b/public/userarea/production_dashboard.php @@ -106,6 +106,11 @@ margin-top: 10px; } + .btn-tools { + background: linear-gradient(135deg, #9f7aea, #b794f4); + } + + .dash-btn { width: 100%; max-width: 280px; @@ -312,7 +317,7 @@ - +
- -
+
+ diff --git a/public/userarea/produzione_programmazione_drag.php b/public/userarea/produzione_programmazione_drag.php index 66ce6d5..8c87d18 100644 --- a/public/userarea/produzione_programmazione_drag.php +++ b/public/userarea/produzione_programmazione_drag.php @@ -668,9 +668,29 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST' && !empty($_POST['action'])) { const lineId = $(this).data("line"); + // Programmati $("#tabProgrammati tbody tr").each(function() { const rowLine = $(this).find("td[data-line-id]").data("line-id"); + if (!lineId || lineId == rowLine) { + $(this).show(); + } else { + $(this).hide(); + } + }); + // Da Programmare + $("#tabDaProgrammare tbody tr").each(function() { + const rowLine = $(this).find("td[data-line-id]").data("line-id"); + if (!lineId || lineId == rowLine) { + $(this).show(); + } else { + $(this).hide(); + } + }); + + // (opzionale) anche la tabella special, se vuoi filtrarla + $("#tabSpecial tbody tr").each(function() { + const rowLine = $(this).find("td[data-line-id]").data("line-id"); if (!lineId || lineId == rowLine) { $(this).show(); } else { @@ -684,6 +704,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST' && !empty($_POST['action'])) { + // Aggiungi al bottone "Pulisci" anche la rimozione filtro linea $(document).on('click', '.btn-clear-filters', function() { table.columns().search('').draw();