Files
FotoSharing/target/classes/templates/upload.html

43 lines
1.3 KiB
HTML

<!doctype html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<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">
<input type="file" name="file"/><br/>
<label>Visibilité:
<select name="visibilite">
<option value="PRIVATE">Privée</option>
<option value="PUBLIC">Publique</option>
<option value="SHARED">Partagée</option>
</select>
</label><br/>
<button type="submit">Envoyer</button>
</form>
<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>