fixed nuovo
This commit is contained in:
@@ -148,6 +148,7 @@
|
||||
<th>Modello</th>
|
||||
<th>Marca</th>
|
||||
<th>Colore</th>
|
||||
<th>Max h/giorno</th>
|
||||
<th>Stato</th>
|
||||
<th>Azioni</th>
|
||||
</tr>
|
||||
@@ -159,7 +160,7 @@
|
||||
$stmt = $pdo->query("SELECT * FROM production_lines ORDER BY line_number ASC");
|
||||
|
||||
if ($stmt->rowCount() === 0) {
|
||||
echo "<tr><td colspan='8' class='text-muted'>Nessuna linea di produzione presente</td></tr>";
|
||||
echo "<tr><td colspan='9' class='text-muted'>Nessuna linea di produzione presente</td></tr>";
|
||||
} else {
|
||||
while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) {
|
||||
$badge = $row['status'] === 'active'
|
||||
@@ -174,9 +175,10 @@
|
||||
<td>{$lineNameEsc}</td>
|
||||
<td>" . htmlspecialchars($row['model']) . "</td>
|
||||
<td>" . htmlspecialchars($row['brand']) . "</td>
|
||||
<td>
|
||||
<td>
|
||||
<div style='width:28px; height:28px; border-radius:6px; border:1px solid #999; background: {$row['color']}; margin:auto;'></div>
|
||||
</td>
|
||||
<td>" . number_format((float)($row['max_hours_per_day'] ?? 24), 2) . " h</td>
|
||||
<td>{$badge}</td>
|
||||
<td>
|
||||
<button class='btn-action params' title='Parametri linea'
|
||||
@@ -243,6 +245,14 @@
|
||||
id="color" name="color" value="#dc2626" title="Scegli colore">
|
||||
</div>
|
||||
|
||||
<div class="mb-3">
|
||||
<label for="maxHours" class="form-label fw-semibold">Ore massime al giorno</label>
|
||||
<input type="number" step="0.5" min="0" max="24" class="form-control"
|
||||
id="maxHours" name="max_hours_per_day" value="24"
|
||||
title="Capacità giornaliera della linea (default 24)">
|
||||
<small class="text-muted">Capacità teorica giornaliera. Default 24 (h24).</small>
|
||||
</div>
|
||||
|
||||
<div class="text-center">
|
||||
<button type="submit" class="btn btn-add">💾 Salva</button>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user