added drag and photos
This commit is contained in:
@@ -144,6 +144,7 @@
|
||||
<th>Nome</th>
|
||||
<th>Modello</th>
|
||||
<th>Marca</th>
|
||||
<th>Colore</th>
|
||||
<th>Stato</th>
|
||||
<th>Azioni</th>
|
||||
</tr>
|
||||
@@ -163,13 +164,19 @@
|
||||
: "<span class='badge-inactive'>Inattiva</span>";
|
||||
|
||||
echo "<tr>
|
||||
<td>{$row['id']}</td>
|
||||
<td>{$row['line_number']}</td>
|
||||
<td>" . htmlspecialchars($row['name']) . "</td>
|
||||
<td>" . htmlspecialchars($row['model']) . "</td>
|
||||
<td>" . htmlspecialchars($row['brand']) . "</td>
|
||||
<td>{$badge}</td>
|
||||
<td>
|
||||
<td>{$row['id']}</td>
|
||||
<td>{$row['line_number']}</td>
|
||||
<td>" . htmlspecialchars($row['name']) . "</td>
|
||||
<td>" . htmlspecialchars($row['model']) . "</td>
|
||||
<td>" . htmlspecialchars($row['brand']) . "</td>
|
||||
|
||||
<td>
|
||||
<div style='width:28px; height:28px; border-radius:6px; border:1px solid #999; background: {$row['color']}; margin:auto;'></div>
|
||||
</td>
|
||||
|
||||
<td>{$badge}</td>
|
||||
<td>
|
||||
|
||||
<button class='btn-action edit' title='Modifica' data-id='{$row['id']}'><i class='fas fa-edit'></i></button>
|
||||
<button class='btn-action delete' title='Elimina' data-id='{$row['id']}'><i class='fas fa-trash'></i></button>
|
||||
<button class='btn-action toggle' title='Cambia stato' data-id='{$row['id']}' data-status='{$row['status']}'><i class='fas fa-power-off'></i></button>
|
||||
@@ -215,6 +222,12 @@
|
||||
<label for="brand" class="form-label fw-semibold">Marca</label>
|
||||
<input type="text" class="form-control" id="brand" name="brand">
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
<label for="color" class="form-label fw-semibold">Colore Linea</label>
|
||||
<input type="color" class="form-control form-control-color"
|
||||
id="color" name="color" value="#dc2626" title="Scegli colore">
|
||||
</div>
|
||||
|
||||
<div class="text-center">
|
||||
<button type="submit" class="btn btn-add">💾 Salva</button>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user