{% extends "zerver/portico_signup.html" %} {% set entrypoint = "register" %} {% block title %} {{ _("Registration") }} | Zulip {% endblock %} {# Gather other user information, after having confirmed their email address. Form is validated both client-side using jquery-validation (see signup.js) and server-side. #} {% block portico_content %}
{% if creating_new_realm %}

{{ _('Create your organization') }}

{% else %}

{{ _('Create your account') }}

{% endif %} {% trans %}

Enter your account details to complete registration.

{% endtrans %}
{{ csrf_input }}
{% if creating_new_realm %} {{ _('Your organization') }} {% if not form.realm_subdomain.errors %} {% endif %} {% with %} {% set user_registration_form = "true" %} {% include 'zerver/realm_creation_form.html' %} {% endwith %} {% if not form.realm_subdomain.errors %}
{{ form.realm_name.value() }}
{{ selected_realm_type_name }}
{% if form.realm_subdomain.value() %}{{ form.realm_subdomain.value() }}.{% endif %}{{external_host}}
{% endif %} {% endif %}
{% if creating_new_realm %} {{ _('Your account') }} {% endif %} {% if realm_name and not creating_new_realm %}
{{ realm_name }}
{{ realm_uri }}
{% endif %}
{{ email }}
{% if not creating_new_realm %} {% include 'zerver/new_user_email_address_visibility.html' %} {% endif %}
{% if accounts %}
{% endif %}
{% if lock_name %}

{{ full_name }}

{% else %} {% if form.full_name.errors %} {% for error in form.full_name.errors %}

{{ error }}

{% endfor %} {% endif %} {% endif %}
{% if require_ldap_password %}
{{ _('Enter your LDAP/Active Directory password.') }}
{% elif password_required %}
{% if full_name %} {{ _('This is used for mobile applications and other tools that require a password.') }} {% endif %} {% if form.password.errors %} {% for error in form.password.errors %}

{{ error }}

{% endfor %} {% endif %}
{% endif %}
{% if default_stream_groups %}

{{ _('What are you interested in?') }}

{% for default_stream_group in default_stream_groups %}
{% endfor %}

{% endif %}
{% if terms_of_service %}
{# This is somewhat subtle. Checkboxes have a name and value, and when the checkbox is ticked, the form posts with name=value. If the checkbox is unticked, the field just isn't present at all. This is distinct from 'checked', which determines whether the checkbox appears at all. (So, it's not symmetric to the code above.) #} {% if form.terms.errors %} {% for error in form.terms.errors %}

{{ error }}

{% endfor %} {% endif %}
{% endif %} {% if corporate_enabled %}
{% endif %}
{% if not creating_new_realm %} {% include 'zerver/change_email_address_visibility_modal.html' %} {% endif %} {% endblock %}