{% extends 'base_anonymous.html.twig' %}
{% block title %}Log in!{% endblock %}
{% block body %}
<div style="display: table;margin: 0 auto;border:1px solid black;border-radius:5px;padding:20px;">
<div class="col-md-12 text-center">
<form method="post" action="{{ path('app_login') }}">
{% if error %}
<div class="alert alert-danger">{{ error.messageKey|trans(error.messageData, 'security') }}</div>
{% endif %}
<img src="{{ asset('build/images/silver.png') }}" width="200">
<h1 class="h3 mb-3 font-weight-normal" style="margin-bottom: 30px">Connexion</h1>
<div class="col-md-12">
<div class="col-md-6">
<label for="inputEmail" class="sr-only">Email</label>
<input type="email" value="{{ last_username }}" name="email" id="inputEmail" class="form-control" placeholder="Email" required autofocus>
</div>
<div class="col-md-6">
<label for="inputPassword" class="sr-only">Password</label>
<input type="password" name="password" id="inputPassword" class="form-control" placeholder="Password" required>
</div>
</div>
<input type="hidden" name="_csrf_token"
value="{{ csrf_token('authenticate') }}"
>
<input type="hidden" name="_target_path" value="{{ redirect }}"/>
{#
Uncomment this section and add a remember_me option below your firewall to activate remember me functionality.
See https://symfony.com/doc/current/security/remember_me.html
<div class="checkbox mb-3">
<label>
<input type="checkbox" name="_remember_me"> Remember me
</label>
</div>
#}
<div class="row col-md-12 text-center" style="padding: 20px;margin-top: 20px">
<button class="btn btn-lg btn-primary" type="submit">
Connexion
</button>
</div>
</form>
</div>
</div>
{% endblock %}