<!DOCTYPE html>
<html lang="fr" xmlns:th="http://www.thymeleaf.org">
<head>
    <th:block th:include="fragments.html :: head(#{image.add.title}, null)"></th:block>
</head>
<body>

<!-- Fragment de l'entête -->
<header th:include="fragments.html :: header(false)"></header>
<!-- Corps de la page -->
<section>
    <div th:include="fragments.html :: messages"></div>

    <form th:action="@{/images/add}" class="requireAuth" enctype="multipart/form-data" method="POST">
        <input name="id" th:value="${recipeId}" type="hidden"/>

        <input type="file" id="image" name="image" required/>
        <br/>
        <button type="submit" th:text="#{keyword.save}"></button>
    </form>
</section>
<!-- Fragment du pied de page -->
<footer th:include="fragments.html :: footer(null, true)"></footer>

</body>
</html>
