{% extends "accounts/base.html" %} {% load djblets_deco djblets_extensions djblets_recaptcha i18n %} {% block title %}{% trans "Register account" %}{% endblock %} {% block scripts %} {{block.super}} {% if siteconfig_settings.auth_registration_show_captcha %} {% recaptcha_js %} {% endif %} {% endblock scripts %} {% block auth_content %} {% template_hook_point "before-register-form" %}

{% trans "Register an account" %}

{% if form.errors %} {% errorbox %}{{form.non_field_errors}}{% enderrorbox %} {% endif %}
{% csrf_token %}
{{form.username.label_tag}} {{form.username}} {{form.errors.username}}
{{form.password1.label_tag}} {{form.password1}} {{form.errors.password1}}
{{form.password2.label_tag}} {{form.password2}} {{form.errors.password2}}
{{form.email.label_tag}} {{form.email}} {{form.errors.email}}
{{form.first_name.label_tag}} {{form.first_name}} {{form.errors.first_name}}
{{form.last_name.label_tag}} {{form.last_name}} {{form.errors.last_name}}
{% if form.agree_to_policies %}
{{form.agree_to_policies}} {{form.agree_to_policies.label_tag}} {{form.errors.agree_to_policies}}
{% endif %} {% if siteconfig_settings.auth_registration_show_captcha %}
{% recaptcha_form_field form %}
{% endif %}
{% template_hook_point "after-register-form" %} {% endblock auth_content %}