{% extends 'layout/base.html' %} {% from 'forms/_form.html' import form_header, form_row, form_rows, form_fieldset, form_footer %} {% set show_extra_form = local and not must_verify_email %} {% block page_class %}fixed-width-standalone-page{% endblock %} {% block title %} {% trans %}Create a new Indico profile{% endtrans %} {% endblock %} {% block content %} {% include 'flashed_messages.html' %} {% if must_verify_email and not email_sent %}

{% trans -%} To create a new Indico profile you first need to verify your email address. {%- endtrans %}

{% endif %} {% if email_sent %} {% trans %}Cancel{% endtrans %} {% else %} {{ form_header(form, id='register-form') }} {% call form_fieldset(_('User information'), render_as_fieldset=(show_extra_form or moderate_accounts)) %} {{ form_row(form.email, widget_attrs=widget_attrs.email) }} {{ form_rows(form, fields=('first_name', 'last_name', 'affiliation', 'phone'), widget_attrs=widget_attrs) }} {% endcall %} {% if show_extra_form %} {% call form_fieldset(_('Login details')) %} {{ form_rows(form, fields=('username', 'password', 'confirm_password')) }} {% endcall %} {% endif %} {% if moderate_accounts and not must_verify_email %} {% call form_fieldset(_('Account moderation')) %}
{% trans -%} Each account needs to be approved by an administrator.
We will send you an email as soon as your request is approved. {%- endtrans %}
{{ form_row(form.comment) }} {% endcall %} {% endif %} {% call form_footer(form) %} {% trans %}Cancel{% endtrans %} {% if must_verify_email %} {% elif moderate_accounts %} {% else %} {% endif %} {% endcall %} {% endif %} {% endblock %}