added fogloiu di lavoro modals everywhere

This commit is contained in:
2026-03-31 11:39:17 +02:00
parent 8cf74608b8
commit ad16d84b2e
7 changed files with 252 additions and 41 deletions
+64 -25
View File
@@ -205,14 +205,27 @@ if ($matricePhoto) {
<?php include __DIR__ . "/components/photo_buttons.php"; ?>
</div>
<!-- 📎 FILE CORRELATI MATRICE -->
<button type="button"
class="qc-btn show-matrice-files"
data-matrice-id="<?= (int)($r['matrice_id'] ?? 0) ?>"
data-matrice-nome="<?= htmlspecialchars($r['matrice'] ?? '', ENT_QUOTES) ?>"
title="File matrice">
<i class="bi bi-paperclip"></i>
</button>
<div class="matrix-side-buttons"
style="margin-left:auto; display:flex; gap:0.45rem; align-items:center;">
<!-- 📋 FOGLI DI LAVORO COLLEGATI -->
<button type="button"
class="qc-btn show-worksheets"
data-id="<?= (int)($r['matrice_id'] ?? 0) ?>"
data-nome="<?= htmlspecialchars($r['matrice'] ?? '', ENT_QUOTES) ?>"
title="Fogli di lavoro collegati">
<i class="bi bi-clipboard2-check"></i>
</button>
<!-- 📎 FILE CORRELATI MATRICE -->
<button type="button"
class="qc-btn show-matrice-files"
data-matrice-id="<?= (int)($r['matrice_id'] ?? 0) ?>"
data-matrice-nome="<?= htmlspecialchars($r['matrice'] ?? '', ENT_QUOTES) ?>"
title="File matrice">
<i class="bi bi-paperclip"></i>
</button>
</div>
<!-- 🎯 UN BADGE PER OGNI STRUMENTO, SUBITO DOPO LE FOTO -->
<?php foreach ($toolsArray as $toolName): ?>
@@ -242,24 +255,50 @@ if ($matricePhoto) {
<?php else: ?>
<button class="action-btn start-btn" data-id="<?= $r['id'] ?>">AVVIA PRODUZIONE</button>
<div class="photo-tools-row"
style="margin-top:0.75rem; display:flex; flex-wrap:wrap; gap:0.6rem; align-items:center;">
<?php foreach ($toolsArray as $toolName): ?>
<span class="badge tools-badge"
style="
display:inline-block;
margin-left:0.5rem;
background:#0d6efd;
color:#ffffff;
font-size:0.78rem;
font-weight:600;
border-radius:999px;
padding:0.30rem 0.85rem;
white-space:nowrap;
">
<?= htmlspecialchars($toolName) ?>
</span>
<?php endforeach; ?>
<button class="action-btn start-btn" data-id="<?= $r['id'] ?>" style="flex:0 0 auto; min-width:240px;">
AVVIA PRODUZIONE
</button>
<?php foreach ($toolsArray as $toolName): ?>
<span class="badge tools-badge"
style="
background:#0d6efd;
color:#ffffff;
font-size:0.78rem;
font-weight:600;
border-radius:999px;
padding:0.30rem 0.85rem;
white-space:nowrap;
">
<?= htmlspecialchars($toolName) ?>
</span>
<?php endforeach; ?>
<div class="matrix-side-buttons"
style="margin-left:auto; display:flex; gap:0.45rem; align-items:center;">
<!-- 📋 FOGLI DI LAVORO COLLEGATI -->
<button type="button"
class="qc-btn show-worksheets"
data-id="<?= (int)($r['matrice_id'] ?? 0) ?>"
data-nome="<?= htmlspecialchars($r['matrice'] ?? '', ENT_QUOTES) ?>"
title="Fogli di lavoro collegati">
<i class="bi bi-clipboard2-check"></i>
</button>
<!-- 📎 FILE CORRELATI MATRICE -->
<button type="button"
class="qc-btn show-matrice-files"
data-matrice-id="<?= (int)($r['matrice_id'] ?? 0) ?>"
data-matrice-nome="<?= htmlspecialchars($r['matrice'] ?? '', ENT_QUOTES) ?>"
title="File matrice">
<i class="bi bi-paperclip"></i>
</button>
</div>
</div>
<?php endif; ?>