{% 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 "register" %}" method="post">
    {% csrf_token %}
    <h2>{% trans "Guest:" %}</h2>
    {% 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 %}
    {% include "registration_field.html" with field=form.ep_primary_affiliation %}
    {% include "registration_field.html" with field=form.s_entite_affectation_principale %}
    {% include "registration_field.html" with field=form.s_emp_corps %}
    {% include "registration_field.html" with field=form.s_liste_rouge %}
    </p>
    <h2>{% trans "Host:" %}</h2>
    {% include "registration_field.html" with field=form.hote_nom %}
    {% include "registration_field.html" with field=form.hote_prenom %}
    {% include "registration_field.html" with field=form.hote_etablissement %}
    {% include "registration_field.html" with field=form.hote_unite %}
    {{ form.ep_principal_name.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 %}
