<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Alica - Inscription</title>
    <link rel="stylesheet" type="text/css" href="{{dir}}/public/css/inscription.css">
</head>
<body>
<div class="container">
    <form action="{{dir}}/inscription" method="POST">
        <h3>S'inscrire</h3>
        <div class="CadreInput">
            <span>Prénom :</span>
            <div class="box">
                <div class="icon">
                    <ion-icon name="person"></ion-icon>
                </div>
                <label>
                    <input type="text" name="firstname" required>
                </div>
            </div>
            <div class="CadreInput">
                <span>Nom :</span>
                <div class="box">
                    <div class="icon">
                        <ion-icon name="person"></ion-icon>
                    </div>
                    <input type="text" name="name" required>
                </div>
            </div>
            <div class="CadreInput">
                <span>Email</span>
                <div class="box">
                    <div class="icon">
                        <ion-icon name="mail-outline"></ion-icon>
                    </div>
                    <input type="email" name="email" required>
                </label>
            </div>
        </div>
        <div class="CadreInput">
            <span>Mot de passe</span>
            <div class="box">
                <div class="icon">
                    <ion-icon name="lock-closed"></ion-icon>
                </div>
                <label>
                    <input type="password" name="password" required>
                </label>
            </div>
        </div>
        <div class="CadreInput">
            <div class="box">
                <input type="submit" value="Creer mon compte">
            </div>
        </div>
    </form>
    <div class="CadreInput">
        <div class="box">
            <a href="{{dir}}/connection" class="other">Se Connecter</a>
        </div>
    </div>
    {% if dVueErreur is not empty %}
    <div class="CadreInput">
        <div class="box">
            <div class="error">
                <ul>
                    {% for erreur in dVueErreur %}
                    <li>{{ erreur }}</li>
                    {% endfor %}
                </ul>
            </div>
        </div>
    </div>
    {% endif %}
</div>
<script type="module" src="https://unpkg.com/ionicons@5.5.2/dist/ionicons/ionicons.esm.js"></script>
<script noModule src="https://unpkg.com/ionicons@5.5.2/dist/ionicons/ionicons.js"></script>
</body>
</html>