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

    <style>
        .returnButton {
            float: none;
        }
    </style>
</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>

    <h1 th:text="#{material.add.title}"></h1>
    <div class="form">
        <form th:action="@{/material/simdut}" class="requireAuth" enctype="multipart/form-data" method="POST">
            <input name="id" th:value="${id}" type="hidden"/>

            <label for="simdut" th:text="#{material.simdut.choose} + ':'"></label>
            <input id="simdut" name="simdut" type="file"/>

            <br/>
            <br/>

            <button type="button" class="returnButton" th:text="#{keyword.back}"></button>
            <!-- Ne fonctionne pas comme le reste du site apparamment -->
            <button type="button" onclick="checkPassword(this.form)" th:text="#{keyword.save}"></button>
        </form>
    </div>
</section>
<!-- Fragment du pied de page -->
<footer th:include="fragments.html :: footer(null, true)"></footer>

</body>
</html>
