fixed nuovo
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user