{% extends 'AppMainBundle::layout.html.twig' %}

{% block content %}
    <div class="row">
        <div class="col-md-4 col-md-offset-4">
            {% if error %}
                <div class="alert alert-danger">{{ error.messageKey|trans(error.messageData) }}</div>
            {% endif %}
            <form action="{{ path('login_check') }}" method="post">
                <div class="form-group">
                    <label for="username">Email</label>
                    <input type="text" id="username" class="form-control" name="_username" value="{{ last_username }}" />
                </div>
                <div class="form-group">
                    <label for="password">Mot de passe</label>
                    <input type="password" id="password" class="form-control" name="_password" />
                </div>
                <input type="hidden" class="form-control" name="_csrf_token" value="{{ csrf_token('authenticate') }}" />
                <button type="submit" class="btn btn-default">Se connecter</button>
                ou <a href="{{ path('app_main_security_register') }}">s'inscrire</a>
            </form>
        </div>
    </div>
{% endblock %}

{% extends 'AppMainBundle::layout.html.twig' %}

{% block content %}
    <div class="row">
        <div class="col-md-4 col-md-offset-4">
            <h1>Connexion</h1>
            {% if error %}
                <div class="alert alert-danger">{{ error.messageKey|trans(error.messageData) }}</div>
            {% endif %}
            <form action="{{ path('login_check') }}" method="post">
                <div class="form-group">
                    <label for="username">Email</label>
                    <input type="text" id="username" class="form-control" name="_username" value="{{ last_username }}" />
                </div>
                <div class="form-group">
                    <label for="password">Mot de passe</label>
                    <input type="password" id="password" class="form-control" name="_password" />
                </div>
                <input type="hidden" class="form-control" name="_csrf_token" value="{{ csrf_token('authenticate') }}" />
                <button type="submit" class="btn btn-default">Se connecter</button>
                ou <a href="{{ path('app_main_security_register') }}">s'inscrire</a>
            </form>
        </div>
    </div>
{% endblock %}

Add a title on the login page
Add a title on the login page
