register_user.html 1.14 KB
Newer Older
1 2 3 4 5
{% extends "security/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

7 8 9 10


<div class="container ">

erreur401's avatar
erreur401 committed
11 12
   <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">
13

erreur401's avatar
erreur401 committed
14
       <h1>{{ _('Register') }}</h1>
15 16
		<form action="{{ url_for_security('register') }}" method="POST" name="register_user_form">
		  {{ register_user_form.hidden_tag() }}
erreur401's avatar
erreur401 committed
17 18 19 20
      {{ render_field_with_errors(register_user_form.first_name , class ='form-control') }}
      {{ render_field_with_errors(register_user_form.last_name , class ='form-control') }}
      {{ render_field_with_errors(register_user_form.email , class ='form-control') }}
		  {{ render_field_with_errors(register_user_form.password , class ='form-control') }}
21
		  {% if register_user_form.password_confirm %}
erreur401's avatar
erreur401 committed
22
		    {{ render_field_with_errors(register_user_form.password_confirm , class ='form-control' ) }}
23
		  {% endif %}
erreur401's avatar
erreur401 committed
24
		  {{ render_field(register_user_form.submit , class ='form-control' ) }}
25 26 27 28 29 30 31

		</form>

	</div>
</div>
</div>

32
{% endblock %}