{% extends 'base.html.twig' %}
{% block title %}Admin login{% endblock %}
{% block body %}
<section id="login">
<form action="{{ path('app_security_login') }}" method="post">
<div class="mb-5 text-center">
<img src="{{ asset('build/static/logo-Sogec-Marketing.png') }}" alt="sogec logo">
</div>
<div class="mb-3">
<label for="username">Username</label>
<input class="form-control form-control-sm" type="text" id="username" name="_username" value="{{ last_username }}"/>
</div>
<div class="mb-3">
<label for="password">Mot de passe</label>
<input class="form-control form-control-sm" type="password" id="password" name="_password" autocomplete="off"/>
</div>
<input type="hidden" name="go_to" value="{{ path('admin_generate_ig') }}"/>
{% if error %}
<div class="alert alert-danger">{{ error.messageKey|trans }}</div>
{% endif %}
<div class="d-grid gap-2">
<button class="btn btn-primary" type="submit">Connexion</button>
</div>
</form>
</section>
{% endblock %}