28 lines
775 B
Twig
28 lines
775 B
Twig
{% extends 'layout.twig' %}
|
|
|
|
|
|
{% block body %}
|
|
|
|
|
|
{% if flash('error') %}
|
|
<div class="alert alert-danger">
|
|
{{ flash('error') }}
|
|
</div>
|
|
{% endif %}
|
|
|
|
<!-- if flash('success') %}
|
|
<div class="alert alert-danger">
|
|
flash('success') }}
|
|
</div>
|
|
endif -->
|
|
<div class="container" style="background-color: lightgray;opacity: 0.9;margin: 1rem;padding:1rem;">
|
|
<form action="{{ path('auth.login') }}" method="post">
|
|
{{ csrf_input() }}
|
|
{{ field('username', null, 'Nom d\'utilisateur') }}
|
|
{{ field('password', null, 'Mot de passe', {type: 'password'}) }}
|
|
<p><a style="color:gray;" href="{{ path('auth.password') }}">Mot de passe oublié ?</a></p>
|
|
<button class="btn btn-primary">Se connecter</button>
|
|
</form>
|
|
</div>
|
|
{% endblock %}
|