CORRECTION : MAJ balises html pour cohérence dans la forme
This commit is contained in:
@@ -4,15 +4,21 @@
|
||||
<meta charset="utf-8"/>
|
||||
<title>Détail de la photo</title>
|
||||
</head>
|
||||
<header>
|
||||
<p>
|
||||
<a th:href="@{/}">Accueil</a> |
|
||||
<a th:href="@{/upload}">Uploader une photo</a> |
|
||||
<a th:href="@{/mes-photos}">Mes photos</a> |
|
||||
<a th:href="@{/mes-albums}">Mes albums</a> |
|
||||
<a th:href="@{/galerie}">Galerie publique</a>
|
||||
</p>
|
||||
<hr/>
|
||||
</header>
|
||||
<body>
|
||||
|
||||
<h1>Détail de la photo</h1>
|
||||
|
||||
<p>
|
||||
<a th:href="@{/}">Accueil</a> |
|
||||
<a th:href="@{/galerie}">Galerie publique</a> |
|
||||
<a th:href="@{/mes-photos}">Mes photos</a>
|
||||
</p>
|
||||
|
||||
|
||||
<!-- Affichage de la photo -->
|
||||
<div>
|
||||
@@ -23,7 +29,9 @@
|
||||
|
||||
<!-- Infos -->
|
||||
<ul>
|
||||
<li><strong>Votre rôle :</strong><span th:text="${photo.proprietaire.email == currentUser ? 'Propriétaire' : (canAdmin ? 'Admin' : (canComment ? 'Commentateur' : 'Lecteur'))}"></span></li>
|
||||
<li><strong>Votre rôle :</strong><span
|
||||
th:text="${photo.proprietaire.email == currentUser ? 'Propriétaire' : (canAdmin ? 'Admin' : (canComment ? 'Commentateur' : 'Lecteur'))}"></span>
|
||||
</li>
|
||||
<li><strong>Nom original :</strong> <span th:text="${photo.nomFichierOriginal}"></span></li>
|
||||
<li><strong>Date upload :</strong> <span th:text="${photo.dateUpload}"></span></li>
|
||||
<li><strong>Visibilité :</strong> <span th:text="${photo.visibilite}"></span></li>
|
||||
@@ -33,7 +41,7 @@
|
||||
<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}" />
|
||||
<input type="hidden" th:name="${_csrf.parameterName}" th:value="${_csrf.token}"/>
|
||||
<button type="submit" style="color:red; margin-bottom:20px;">
|
||||
Supprimer la photo
|
||||
</button>
|
||||
@@ -50,7 +58,7 @@
|
||||
<span th:text="${p.utilisateur.email}"></span>
|
||||
<!-- Formulaire modification permission -->
|
||||
<form th:action="@{'/photo/' + ${photo.id} + '/share/update'}" method="post" style="display:inline;">
|
||||
<input type="hidden" name="email" th:value="${p.utilisateur.email}" />
|
||||
<input type="hidden" name="email" th:value="${p.utilisateur.email}"/>
|
||||
<select name="permission">
|
||||
<option value="READ" th:selected="${p.permission == 'READ'}">Lecture</option>
|
||||
<option value="COMMENT" th:selected="${p.permission == 'COMMENT'}">Commentaire</option>
|
||||
@@ -72,7 +80,7 @@
|
||||
</div>
|
||||
<form th:action="@{'/photo/' + ${photo.id} + '/share'}" method="post">
|
||||
<label>Email de l'utilisateur :</label>
|
||||
<input type="email" name="email" required />
|
||||
<input type="email" name="email" required/>
|
||||
<label>Permission :</label>
|
||||
<select name="permission">
|
||||
<option value="READ">Lecture seule</option>
|
||||
@@ -87,7 +95,6 @@
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<!-- Commentaires -->
|
||||
<h2>Commentaires</h2>
|
||||
<div th:each="c : ${commentairesPage.content}">
|
||||
@@ -125,6 +132,14 @@
|
||||
<p>
|
||||
<a th:href="@{'/photo/' + ${photo.id} + '/raw'}" target="_blank">Voir en grande taille</a>
|
||||
</p>
|
||||
|
||||
</body>
|
||||
<footer>
|
||||
<hr/>
|
||||
<form th:action="@{/logout}" method="post" style="display: inline;">
|
||||
<button type="submit"
|
||||
style="background: none; border: none; color: blue; text-decoration: underline; cursor: pointer;">
|
||||
Se déconnecter
|
||||
</button>
|
||||
</form>
|
||||
</footer>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user