<!DOCTYPE html>
<html lang="fr" th:replace="~{modele-page :: layout('Votre profile',~{::link} , ~{::#container-main})}" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
</head>
    <body>
        <div id="container-main">
            <h1>Mon profil</h1>
            <div class="champ-affichage">
                <label>Pseudo: </label>
                <span th:text="${userProfile.pseudo}"></span>
            </div>
            <div class="champ-affichage">
                <label>Prénom: </label>
                <span th:text="${userProfile.prenom}"></span>
            </div>
            <div class="champ-affichage">
                <label>Nom: </label>
                <span th:text="${userProfile.nom}"></span>
            </div>
            <div class="champ-affichage">
                <label>Email: </label>
                <span th:text="${userProfile.email}"></span>
            </div>
            <div class="champ-affichage">
                <label>Téléphone: </label>
                <span th:text="${userProfile.telephone}"></span>
            </div>
            <div class="champ-affichage">
                <label>Rue: </label>
                <span th:text="${userProfile.rue}"></span>
            </div>
            <div class="champ-affichage">
                <label>Code postal: </label>
                <span th:text="${userProfile.code_postal}"></span>
            </div>
            <div class="champ-affichage">
                <label>Ville: </label>
                <span th:text="${userProfile.ville}"></span>
            </div>
            <div class="champ-affichage">
                <label>Crédits: </label>
                <span th:text="${userProfile.credit}"></span>
            </div>
            <form th:action="@{/profil/edit}" method="post">
                <button type="submit">Modifier</button>
            </form>
        </div>
    </body>
</html>
