FEAT : ajout de la suppression en cascade d'une photo (suppression de ses commentaires, partage, présence dans des albums, et du fichier /opt/........
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -29,6 +29,17 @@
|
||||
<li><strong>Visibilité :</strong> <span th:text="${photo.visibilite}"></span></li>
|
||||
<li><strong>Propriétaire :</strong> <span th:text="${photo.proprietaire.email}"></span></li>
|
||||
</ul>
|
||||
<!-- Suppression de la photo par le propriétaire -->
|
||||
<div th:if="${isOwner}">
|
||||
<form th:action="@{'/photo/' + ${photo.id} + '/delete'}" method="post"
|
||||
onsubmit="return confirm('Supprimer définitivement cette photo ?');">
|
||||
<input type="hidden" th:name="${_csrf.parameterName}" th:value="${_csrf.token}" />
|
||||
<button type="submit" style="color:red; margin-bottom:20px;">
|
||||
Supprimer la photo
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- Partage de la photo -->
|
||||
<!-- Formulaire gestion visible uniquement en ADMIN ou PROPRIÉTAIRE -->
|
||||
|
||||
Reference in New Issue
Block a user