{% extends 'layout.html' %}

{% block page %}
    <div class="signin">
        {% if flash %}
            <div class="alert bg-warning">
                {{ flash }}
            </div>
        {% endif %}

        <h3>Sign in</h3>

        <form action="" method="post">
            <p>
                <input type="text" name="username" placeholder="Username" class="form-control" required autofocus />
            </p>
            
            <p>
                <input type="password" name="password" minlength="8" placeholder="Password" class="form-control" required />
            </p>

            <p>
                <label><input type="checkbox" name="remember" /> Remember me</label>
            </p>

            <p>
                <input type="submit" name="signin" class="button button_default" value="Sign in" />
            </p>
        </form>
        
        {#
        <div>
            <a href="{{ url ('password_reset') }}">Reset password</a>
        </div>
        #}
        <div>
            <a href="{{ url('register') }}">Create new account</a>
        </div>
    </div>

{% endblock %}




