This commit is contained in:
KONE SOREL 2026-04-04 17:09:35 +00:00
parent 0f3583f5d9
commit 6e906351e4

View File

@ -77,9 +77,15 @@
</td>
<td class="text-center">
<button class="btn btn-success btn-sm rounded-pill shadow-xs w-100" style="font-size: 8pt;" onclick="garanties_produit(<?= $idProduit ?>);">
<i class="fas fa-list-check me-1"></i> <?= _("Détails") ?>
<?php if($isArchive): ?>
<button class="btn btn-info btn-sm rounded-pill shadow-xs w-100" style="font-size: 8pt;" onclick="garanties_produit(<?= $idProduit ?>);">
<i class="fas fa-list-check me-1"></i> <?= _("Consulter") ?>
</button>
<?php else: ?>
<button class="btn btn-warning btn-sm rounded-pill shadow-xs w-100" style="font-size: 8pt;" onclick="garanties_produit(<?= $idProduit ?>);">
<i class="fas fa-list-check me-1"></i> <?= _("Gérer") ?>
</button>
<?php endif; ?>
</td>
</tr>
<?php endforeach; ?>