Actualiser js/admin.js

This commit is contained in:
2026-06-21 12:57:55 +02:00
parent 07304b04e4
commit 24d3708419
+4
View File
@@ -137,6 +137,7 @@ function getFilteredItems() {
} }
// ── RENDU DU TABLEAU (6 COLONNES) ── // ── RENDU DU TABLEAU (6 COLONNES) ──
// ── RENDU DU TABLEAU (7 COLONNES ALIGNÉES) ──
function renderAdminTable() { function renderAdminTable() {
const tbody = document.getElementById('admin-table-body'); const tbody = document.getElementById('admin-table-body');
if (!tbody) return; if (!tbody) return;
@@ -160,6 +161,9 @@ function renderAdminTable() {
<td style="text-align:center;"> <td style="text-align:center;">
<input type="checkbox" class="film-checkbox" value="${f.id}" ${isChecked} onclick="toggleSingleSelect('${f.id}', this)"> <input type="checkbox" class="film-checkbox" value="${f.id}" ${isChecked} onclick="toggleSingleSelect('${f.id}', this)">
</td> </td>
<td style="text-align:center;">
${f.poster ? `<img src="${f.poster}" class="thumb" alt="Affiche">` : '<div class="thumb-ph"><i class="ti ti-photo"></i></div>'}
</td>
<td><strong>${f.title}</strong></td> <td><strong>${f.title}</strong></td>
<td>${f.year || '-'}</td> <td>${f.year || '-'}</td>
<td>${f.director || '-'}</td> <td>${f.director || '-'}</td>