{% extends 'base.html.twig' %}
{% block body %}
{% if error %}
<div>{{ error.messageKey|trans(error.messageData, 'security') }}</div>
{% endif %}
<form action="{{ path('login') }}" method="post" class="form-signin">
<label for="username" class="sr-only">{{ 'Username'|trans({}, 'security') }}</label>
<input id="username" class="form-control login-username" placeholder="{{ 'E-mail'|trans({}, 'security') }}" required="" autofocus="" type="text" name="_username" value="{{ last_username }}" />
<label for="password" class="sr-only">{{ 'Password'|trans({}, 'security') }}</label>
<input id="password" class="form-control login-password" placeholder="{{ 'Password'|trans({}, 'security') }}" required="" type="password" name="_password" />
<button class="btn btn-lg btn-primary btn-block" type="submit">{{ 'Sign in'|trans({}, 'security') }}</button>
<a class="btn btn-lg btn-primary btn-block" href="{{ path('register') }}">{{ 'Register'|trans({}, 'security') }}</a>
<div class="login-links">
<a href="{{ path('ask_recovery') }}">{{ 'Forgot your password?'|trans({}, 'security') }}</a>
</div>
</form>
{% endblock %}