{# Copyright 2024, 2025 New Vector Ltd. Copyright 2021-2024 The Matrix.org Foundation C.I.C. SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial Please see LICENSE files in the repository root for full details. -#} {% extends "base.html" %} {% block content %}
{{ icon.user_profile_solid() }}

{{ _("mas.register.create_account.heading") }}

{% for error in form.errors %} {# Special case for the captcha error, as we want to put it at the bottom #} {% if error.kind != "captcha" %}
{{ errors.form_error_message(error=error) }}
{% endif %} {% endfor %} {% call(f) field.field(label=_("common.username"), name="username", form_state=form) %} {% endcall %} {% call(f) field.field(label=_("common.email_address"), name="email", form_state=form) %} {% endcall %} {% call(f) field.field(label=_("common.password"), name="password", form_state=form) %} {% endcall %} {% call(f) field.field(label=_("common.password_confirm"), name="password_confirm", form_state=form) %} {% endcall %} {% if branding.tos_uri %} {% call(f) field.field(label=_("mas.register.terms_of_service", tos_uri=branding.tos_uri), name="accept_terms", form_state=form, inline=true, class="my-4") %}
{{ icon.check() }}
{% endcall %} {% endif %} {{ captcha.form(class="mb-4 self-center") }} {% for error in form.errors %} {# Special case for the captcha error #} {% if error.kind == "captcha" %}
{{ errors.form_error_message(error=error) }}
{% endif %} {% endfor %} {{ button.button(text=_("action.continue")) }} {% set params = next["params"] | default({}) | to_params(prefix="?") %} {{ button.link_tertiary(text=_("mas.register.call_to_login"), href="/login" ~ params) }}
{% endblock content %}