{# Copyright 2024 New Vector Ltd. Copyright 2021-2024 The Matrix.org Foundation C.I.C. SPDX-License-Identifier: AGPL-3.0-only Please see LICENSE in the repository root for full details. -#} {% extends "base.html" %} {% from "components/idp_brand.html" import logo %} {% block content %}
{{ icon.user_profile_solid() }}

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

{% if features.password_registration %}

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

{% endif %}
{% if features.password_registration %} {% call(f) field.field(label=_("common.username"), name="username", form_state=form) %}
@username:{{ branding.server_name }}
{% endcall %} {% endif %}
{% for key, value in next["params"] | default({}) | items %} {% endfor %} {% if features.password_registration %} {{ button.button(text=_("mas.register.continue_with_email")) }} {% endif %} {% if providers %} {% set params = next["params"] | default({}) | to_params(prefix="?") %} {% for provider in providers %} {% set name = provider.human_name or (provider.issuer | simplify_url(keep_path=True)) or provider.id %} {{ logo(provider.brand_name) }} {{ _("mas.login.continue_with_provider", provider=name) }} {% endfor %} {% endif %} {% set params = next["params"] | default({}) | to_params(prefix="?") %} {{ button.link_tertiary(text=_("mas.register.call_to_login"), href="/login" ~ params) }}
{% endblock content %}