CORRECTION : MAJ balises html pour cohérence dans la forme
This commit is contained in:
@@ -4,6 +4,16 @@
|
||||
<meta charset="utf-8"/>
|
||||
<title>Détail album</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>
|
||||
|
||||
<a th:href="@{/mes-albums}">⬅ Retour aux albums</a>
|
||||
@@ -46,7 +56,7 @@
|
||||
<button type="submit">Ajouter</button>
|
||||
</form>
|
||||
<hr/>
|
||||
<h3>Gestion des partages de l’album</h3>
|
||||
<h2>Gestion des partages de l’album</h2>
|
||||
<div th:if="${param.error}" style="color:red; font-weight:bold;">
|
||||
<span th:text="${param.error}"></span>
|
||||
</div>
|
||||
@@ -94,8 +104,14 @@
|
||||
Supprimer l’album
|
||||
</a>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</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>
|
||||
|
||||
@@ -4,6 +4,16 @@
|
||||
<meta charset="utf-8"/>
|
||||
<title>Galerie publique</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>Galerie publique</h1>
|
||||
@@ -35,6 +45,14 @@
|
||||
</a>
|
||||
|
||||
</div>
|
||||
|
||||
</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>
|
||||
|
||||
@@ -9,13 +9,14 @@
|
||||
<p><a th:href="@{/mes-photos}">Voir mes photos</a></p>
|
||||
<p><a th:href="@{/mes-albums}">Voir mes albums</a></p>
|
||||
<p><a th:href="@{/galerie}">Voir la galerie publique</a></p>
|
||||
<p>
|
||||
<form th:action="@{/logout}" method="post" style="display: inline;">
|
||||
</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>
|
||||
</p>
|
||||
</body>
|
||||
</form>
|
||||
</footer>
|
||||
</html>
|
||||
|
||||
@@ -4,12 +4,22 @@
|
||||
<meta charset="utf-8"/>
|
||||
<title>Mes albums</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>Mes albums</h1>
|
||||
|
||||
<!-- FORMULAIRE AJOUT ALBUM -->
|
||||
<h3>Créer un album</h3>
|
||||
<h2>Créer un album</h2>
|
||||
<form th:action="@{/albums/create}" method="post">
|
||||
<input type="hidden" th:name="${_csrf.parameterName}" th:value="${_csrf.token}" />
|
||||
<label>Nom :</label>
|
||||
@@ -64,7 +74,14 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</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>
|
||||
|
||||
@@ -4,10 +4,18 @@
|
||||
<meta charset="utf-8"/>
|
||||
<title>Mes photos</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>
|
||||
<h2>Mes photos</h2>
|
||||
<p><a th:href="@{/upload}">Uploader une photo</a></p>
|
||||
<p><a th:href="@{/}">Retour accueil</a></p>
|
||||
<h1>Mes photos</h1>
|
||||
<h2>Mes photos privées</h2>
|
||||
<div>
|
||||
<a th:each="p : ${photosPrivees.content}" th:if="${p != null}"
|
||||
@@ -91,6 +99,14 @@
|
||||
|
||||
|
||||
<p><a th:href="@{/galerie}">Galerie publique</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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -4,6 +4,16 @@
|
||||
<meta charset="utf-8"/>
|
||||
<title>Upload - FotoSharing</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>Uploader une photo</h1>
|
||||
<form th:action="@{/upload}" method="post" enctype="multipart/form-data">
|
||||
@@ -17,8 +27,16 @@
|
||||
</label><br/>
|
||||
<button type="submit">Envoyer</button>
|
||||
</form>
|
||||
<p><a th:href="@{/galerie}">Galerie publique</a></p>
|
||||
<div th:if="${error}" th:text="${error}"></div>
|
||||
<div th:if="${message}" th:text="${message}"></div>
|
||||
</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>
|
||||
|
||||
@@ -4,6 +4,16 @@
|
||||
<meta charset="utf-8"/>
|
||||
<title>Détail album</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>
|
||||
|
||||
<a th:href="@{/mes-albums}">⬅ Retour aux albums</a>
|
||||
@@ -46,7 +56,7 @@
|
||||
<button type="submit">Ajouter</button>
|
||||
</form>
|
||||
<hr/>
|
||||
<h3>Gestion des partages de l’album</h3>
|
||||
<h2>Gestion des partages de l’album</h2>
|
||||
<div th:if="${param.error}" style="color:red; font-weight:bold;">
|
||||
<span th:text="${param.error}"></span>
|
||||
</div>
|
||||
@@ -94,8 +104,14 @@
|
||||
Supprimer l’album
|
||||
</a>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</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>
|
||||
|
||||
@@ -4,6 +4,16 @@
|
||||
<meta charset="utf-8"/>
|
||||
<title>Galerie publique</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>Galerie publique</h1>
|
||||
@@ -35,6 +45,14 @@
|
||||
</a>
|
||||
|
||||
</div>
|
||||
|
||||
</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>
|
||||
|
||||
@@ -9,13 +9,14 @@
|
||||
<p><a th:href="@{/mes-photos}">Voir mes photos</a></p>
|
||||
<p><a th:href="@{/mes-albums}">Voir mes albums</a></p>
|
||||
<p><a th:href="@{/galerie}">Voir la galerie publique</a></p>
|
||||
<p>
|
||||
<form th:action="@{/logout}" method="post" style="display: inline;">
|
||||
</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>
|
||||
</p>
|
||||
</body>
|
||||
</form>
|
||||
</footer>
|
||||
</html>
|
||||
|
||||
@@ -4,12 +4,22 @@
|
||||
<meta charset="utf-8"/>
|
||||
<title>Mes albums</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>Mes albums</h1>
|
||||
|
||||
<!-- FORMULAIRE AJOUT ALBUM -->
|
||||
<h3>Créer un album</h3>
|
||||
<h2>Créer un album</h2>
|
||||
<form th:action="@{/albums/create}" method="post">
|
||||
<input type="hidden" th:name="${_csrf.parameterName}" th:value="${_csrf.token}" />
|
||||
<label>Nom :</label>
|
||||
@@ -64,7 +74,14 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</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>
|
||||
|
||||
@@ -4,10 +4,18 @@
|
||||
<meta charset="utf-8"/>
|
||||
<title>Mes photos</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>
|
||||
<h2>Mes photos</h2>
|
||||
<p><a th:href="@{/upload}">Uploader une photo</a></p>
|
||||
<p><a th:href="@{/}">Retour accueil</a></p>
|
||||
<h1>Mes photos</h1>
|
||||
<h2>Mes photos privées</h2>
|
||||
<div>
|
||||
<a th:each="p : ${photosPrivees.content}" th:if="${p != null}"
|
||||
@@ -91,6 +99,14 @@
|
||||
|
||||
|
||||
<p><a th:href="@{/galerie}">Galerie publique</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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -4,6 +4,16 @@
|
||||
<meta charset="utf-8"/>
|
||||
<title>Upload - FotoSharing</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>Uploader une photo</h1>
|
||||
<form th:action="@{/upload}" method="post" enctype="multipart/form-data">
|
||||
@@ -17,8 +27,16 @@
|
||||
</label><br/>
|
||||
<button type="submit">Envoyer</button>
|
||||
</form>
|
||||
<p><a th:href="@{/galerie}">Galerie publique</a></p>
|
||||
<div th:if="${error}" th:text="${error}"></div>
|
||||
<div th:if="${message}" th:text="${message}"></div>
|
||||
</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