{% extends "one_column_body.html" %} {% import "macros.html" as macros %} {# views calling this template: * django_authopenid.views.register with login_type='openid' * django_authopenid.views.signin - with login_type='legacy' purpose of this template is to allow user enter his/her name email and sign up for email alerts at the initial registratio parameters: * provider * login_type openid|legacy * username (same as screen name or username in the models, and nickname in openid sreg) * openid_register_form * openid_verify_form - not clear what this form is supposed to do, not used for legacy * openid_username_exists #} {% block head %}{% endblock %} {% block title %}{% filter trim %}{% trans %}Complete registration{% endtrans %}{% endfilter %}{% endblock %} {% block body_class %}registration-page{% endblock %} {% block content %}
{% if settings.NEW_REGISTRATIONS_DISABLED %}

{% trans %}New user registrations are disabled{% endtrans %}

{{ settings.NEW_REGISTRATIONS_DISABLED_MESSAGE }}
{% else %}

{% trans %}Complete registration{% endtrans %}

{% if openid_register_form.errors %} {% endif %}
{{ csrf_input }} {{ openid_register_form.next }}
{% if openid_register_form.username.errors %}

{{ openid_register_form.username.errors|join(", ") }}

{% endif %}
{% if openid_register_form.email.errors %}

{{ openid_register_form.email.errors|join(", ") }}

{% endif %}
{% set tos_field = openid_register_form.terms_accepted %} {% include "authopenid/tos_field.html" %} {% if openid_register_form.recaptcha %}
{{ macros.form_field_with_errors(openid_register_form.recaptcha ) }}
{% endif %}
{% endif %}

{% trans %}Recover account{% endtrans %}

{% include "authopenid/account_recovery_form.html" %}

{% trans %}Already have an account?{% endtrans %} {% trans %}Recover it by email.{% endtrans %}

{% trans %}Prefer to create a new account?{% endtrans %} {% trans %}Return to registration.{% endtrans %}

{% endblock %} {% block endjs %} {{ macros.one_shot_form_js(form="#register-form", submit_button="#register-button") }} {% endblock %}