login_user.html 1.07 KB
Newer Older
1 2 3 4 5
{% extends "base.html" %}
{% from "security/_macros.html" import render_field_with_errors, render_field %}

{% block content %}
{% include "security/_messages.html" %}
erreur401's avatar
erreur401 committed
6

erreur401's avatar
erreur401 committed
7
<div class="container ">
erreur401's avatar
erreur401 committed
8 9 10 11 12 13

   <div class="row no-gutters justify-content-md-center align-items-center">

     <div class=" col col-12 col-sm-8 col-md-4 col-lg-4 form-group">
       <h1>{{ _('Login') }}</h1>
			<form action="{{ url_for_security('login') }}" method="POST" name="login_user_form" class="form form-horizontal" >
erreur401's avatar
erreur401 committed
14 15

			  {{ login_user_form.hidden_tag() }}
erreur401's avatar
erreur401 committed
16 17
			  {{ render_field_with_errors(login_user_form.email , class ='form-control') }}
			  {{ render_field_with_errors(login_user_form.password , class ='form-control' ) }}
erreur401's avatar
erreur401 committed
18
			    {% if security.recoverable %}
erreur401's avatar
erreur401 committed
19
			   <a href="{{ url_for_security('forgot_password') }}">{{ _('mots de passe oublie') }}</a><br/>
erreur401's avatar
erreur401 committed
20
			   {% endif %}
erreur401's avatar
erreur401 committed
21 22
			  {{ render_field_with_errors(login_user_form.remember) }}

erreur401's avatar
erreur401 committed
23
			  {{ render_field(login_user_form.submit,  class ='form-control') }}
erreur401's avatar
erreur401 committed
24 25 26
			</form>
		{# {% include "security/_menu.html" %}#}
	     </div>
erreur401's avatar
erreur401 committed
27
	   </div>
erreur401's avatar
erreur401 committed
28
	</div>
29 30

{% endblock %}