fixed nuovo

This commit is contained in:
2026-09-07 15:02:36 +02:00
parent 8425a7d90c
commit c394d92ef3
16 changed files with 2629 additions and 70 deletions
+23 -3
View File
@@ -81,6 +81,13 @@ if ($matricePhoto) {
</span>
</div>
<?php if (!empty($r['note_extra'])): ?>
<div>
<strong>Descrizione</strong>
<span data-field="note_extra"><?= htmlspecialchars($r['note_extra']) ?></span>
</div>
<?php endif; ?>
<div><strong>Linea</strong> <span><?= htmlspecialchars($r['linea']) ?></span></div>
<div><strong>Matrice</strong> <span><?= htmlspecialchars($r['matrice']) ?></span></div>
@@ -258,9 +265,22 @@ if ($matricePhoto) {
<div class="photo-tools-row"
style="margin-top:0.75rem; display:flex; flex-wrap:wrap; gap:0.6rem; align-items:center;">
<button class="action-btn start-btn" data-id="<?= $r['id'] ?>" style="flex:0 0 auto; min-width:240px;">
AVVIA PRODUZIONE
</button>
<?php
// La linea è occupata se ha già una produzione attiva (2 o 7),
// esclusa (ovviamente) questa stessa card.
$lineaOccupata = !empty($lineeOccupate[(int)$r['id_linea']]);
?>
<?php if ($lineaOccupata): ?>
<button class="action-btn start-btn" data-id="<?= $r['id'] ?>"
disabled
style="flex:0 0 auto; min-width:240px; background:#cbd5e1; color:#64748b; cursor:not-allowed; opacity:0.85;">
LINEA OCCUPATA
</button>
<?php else: ?>
<button class="action-btn start-btn" data-id="<?= $r['id'] ?>" style="flex:0 0 auto; min-width:240px;">
AVVIA PRODUZIONE
</button>
<?php endif; ?>
<?php foreach ($toolsArray as $toolName): ?>
<span class="badge tools-badge"