{% extends "authentic2/base-page.html" %}

{% block a2-block-pre %}
{% include "registration/registration_steps.html" with active_step="completion" %}
{% endblock %}

{% block content %}
<div id="registration_completion">
  <h2>Saisissez un mot de passe pour finaliser la création de votre compte</h2>
  <form method="post">
    {% csrf_token %}
    {% if form.is_bound and not form.is_valid %}
    <ul class="errorlist nonfield">
    <li>Le formulaire comporte des erreurs qui sont indiquées ci-dessous.</li>
    </ul>
    {% endif %}
    {{ form.non_field_errors }}
    <div>
      {% include "gadjo/widget.html" with field=form.password1 %}
      {% include "gadjo/widget.html" with field=form.password2 %}
      {{ form.preferred_username }}
      {{ form.preferred_givenname }}
    </div>
    <p>
      <button class="submit-button">Valider</button>
    </p>
</div>
{% endblock %}
