{% extends '/user/layout_user.twig' %}
{% block title %}Se connecter{% endblock %}
{% block body %}   
                    <form form action="/users/login" method="POST" class="row g-3">
                        <h4>Bienvenue</h4>
                        {% if message  %}
                            <div class="alert alert-success" role="alert">
                                {{message}}
                            </div>
                        {% endif %}
                        <div class="col-12">
                            <label>Email</label>
                            <input type="email" name="email" id="email" class="form-control" placeholder="email">
                        </div>
                        <div class="col-12">
                            <label>Mot de passe</label>
                            <input type="password" name="password" id="password" class="form-control" placeholder="Mot de passe">
                        </div>
                        
                        <div class="col-12">
                            <button type="submit" class="btn btn-dark float-end">Se connecter</button>
                        </div>
                    </form>
                    <hr class="mt-4">
                    <div class="col-12">
                        <p class="text-center mb-0">Vous n'avez pas de compte? <a href="/users/register">S'inscrire</a></p>
                    </div>
{% endblock %}