<!-- templates/login.html -->

{% extends 'auth/layout.html' %}

{% block title %}Log in!{% endblock %}

{% block body %}
<form method="post" action="/login">

     {% with messages = get_flashed_messages() %}
         <br>
        {% if messages %}
            <div class="alert alert-danger">
                {{ messages[0] }}
            </div>
        {% endif %}

    {% endwith %}

    <h1 class="h3 mb-3 font-weight-normal">Connexion</h1>
    <label for="inputlogin">Pseudo</label>
    <input type="text" value="" name="login" id="inputlogin" class="form-control" required autofocus placeholder="login" >
    <label for="inputPassword">Mot de passe</label>
    <input type="password" name="password" id="inputPassword" class="form-control" required  placeholder="Votre Password">

    <button class="btn btn-lg btn-primary mt-4" type="submit">
        Se connecter
    </button>
</form>
{% endblock %}









{#{% extends "auth/base_bulma.html" %}#}
{##}
{#{% block content %}#}
{#<div class="column is-4 is-offset-4">#}
{#    <h3 class="title">Login</h3>#}
{#    <div class="box">#}
{#        {% with messages = get_flashed_messages() %}#}
{#        {% if messages %}#}
{#            <div class="notification is-danger">#}
{#                {{ messages[0] }}#}
{#            </div>#}
{#        {% endif %}#}
{#        {% endwith %}#}
{#        <form method="POST" action="/login">#}
{#            <div class="field">#}
{#                <div class="control">#}
{#                    <input class="input is-large" type="login" name="login" placeholder="Votre login (login)" autofocus="">#}
{#                </div>#}
{#            </div>#}
{##}
{#            <div class="field">#}
{#                <div class="control">#}
{#                    <input class="input is-large" type="password" name="password" placeholder="Votre Password">#}
{#                </div>#}
{#            </div>#}
{#            <button class="button is-block is-info is-large is-fullwidth">Login</button>#}
{#        </form>#}
{#    </div>#}
{#</div>#}
{#{% endblock %}#}