caisse-bliss/app/Resources/FOSUserBundle/views/Security/login.html.twig

67 lines
2.2 KiB
Twig
Raw Normal View History

2018-04-18 14:21:58 +02:00
{% extends "@FOSUser/layout.html.twig" %}
2018-05-08 11:27:06 +02:00
{% block fos_user_content %}
<div class="row">
2018-06-04 13:11:40 +02:00
<div class="col-xs-12 col-sm-6">
<div class="padded">
2018-05-08 11:27:06 +02:00
<h1>
<i class="fa fa-key"></i>
Se connecter
</h1>
{% if error %}
<div class="alert alert-info">{{ error.messageKey|trans(error.messageData, 'security') }}</div>
{% endif %}
<form action="{{ path("fos_user_security_check") }}" method="post">
{% if csrf_token %}
<input type="hidden" name="_csrf_token" value="{{ csrf_token }}"/>
2018-05-04 17:04:13 +02:00
{% endif %}
2018-05-08 11:27:06 +02:00
<div>
2018-05-04 17:04:13 +02:00
<label for="username">{{ 'security.login.username'|trans }}</label>
<input type="text" id="username" name="_username" value="{{ last_username }}" required="required"
autocomplete="username"/>
2018-05-08 11:27:06 +02:00
</div>
<div>
2018-05-04 17:04:13 +02:00
<label for="password">{{ 'security.login.password'|trans }}</label>
<input type="password" id="password" name="_password" required="required"
autocomplete="current-password"/>
2018-05-08 11:27:06 +02:00
</div>
<div>
2018-05-04 17:04:13 +02:00
<input type="checkbox" id="remember_me" name="_remember_me" value="on"/>
<label for="remember_me">{{ 'security.login.remember_me'|trans }}</label>
2018-05-08 11:27:06 +02:00
</div>
2018-05-04 17:04:13 +02:00
2018-06-04 13:11:40 +02:00
<input class="btn btn-success btn-block" type="submit" id="_submit" name="_submit" value="{{ 'security.login.submit'|trans }}"/>
</form>category-listing
2018-05-04 17:04:13 +02:00
2018-06-04 13:11:40 +02:00
</div>
2018-04-18 14:21:58 +02:00
</div>
2018-06-04 13:11:40 +02:00
<div class="col-xs-12 col-sm-6">
<div class="visible-xs">
<hr>
</div>
<div class="padded">
2018-05-08 11:27:06 +02:00
2018-06-04 13:11:40 +02:00
<p>
2018-05-08 11:27:06 +02:00
<a class="btn btn-info" href="{{ path('fos_user_resetting_request') }}">
Mot de passe oublié?
</a>
</p>
<p>
<a class="btn btn-info" href="{{ path('fos_user_registration_register') }}">
Créer un compte
</a>
</p>
</div>
2018-06-04 13:11:40 +02:00
</div>
2018-05-08 11:27:06 +02:00
</div>
2018-04-18 14:21:58 +02:00
2018-05-04 17:04:13 +02:00
{% endblock %}