{% extends "sp_base.html" %}
{% load i18n %}

{% block content %}

<div id="padding-left">&nbsp;</div>
    <div id="centered-column">
{% if form.errors %}
    <div id="error-msg">{% trans "Missing fields" %}</div>
{% endif %}

{{ form.user_nickname }}<br><br>
{{ form.user_help_msg }}<br><br>

<form action="{% url "declare" %}" method="post">
    {% csrf_token %}
    {% include "registration_field.html" with field=form.nom %}
    {% include "registration_field.html" with field=form.prenom %}
    {% include "registration_field.html" with field=form.email %}
    {% include "registration_field.html" with field=form.s_etablissement_description %}
    {% include "registration_field.html" with field=form.s_entite_affectation_principale_description %}
    {% include "registration_field.html" with field=form.ep_primary_affiliation %}
    {% include "registration_field.html" with field=form.s_emp_corps %}
    {% include "registration_field.html" with field=form.s_liste_rouge %}
    {{ form.ep_principal_name.as_hidden }}
    {{ form.s_etablissement.as_hidden }}
    {{ form.s_entite_affectation_principale.as_hidden }}
    <input type="submit" value="{% trans "Submit" %}"/>
</form>
{% if form.errors %}
    <div id="error-msg">{% trans "Missing fields" %}</div>
{% endif %}
    </div>
        <div id="padding-right">&nbsp;</div>
{% endblock %}
