{% extends "account/base_entrance.html" %} {% load allauth i18n widget_tweaks%} {% block head_title %} {% trans "Signup" %} {% endblock head_title %} {% block content %} {% element h1 %} {% trans "Sign Up" %} {% endelement %} {% setvar link %} {% endsetvar %} {% setvar end_link %} {% endsetvar %} {% element p %} {% blocktranslate %}Already have an account? Then please {{ link }}sign in{{ end_link }}.{% endblocktranslate %} {% endelement %} {% if not SOCIALACCOUNT_ONLY %} {% url 'account_signup' as action_url %}
{% csrf_token %} {% if form.non_field_errors %} {% endif %} {% if form.errors %} {% for field, errors in form.errors.items %} {% endfor %} {% endif %}
{% translate "Email address" as email_placeholder %} {% render_field form.email class="form-control" placeholder=email_placeholder %}
{% translate "Username" as username_placeholder %} {% render_field form.username class="form-control" placeholder=username_placeholder %}
{% if form.password1.errors %} {% endif %}
{% translate "Password" as password_placeholder %} {% render_field form.password1 class="form-control" placeholder=password_placeholder %}
{% if form.password2.errors %} {% endif %}
{% translate "Confirm password" as confirm_password_placeholder %} {% render_field form.password2 class="form-control" placeholder=confirm_password_placeholder %}
{% endif %} {% if PASSKEY_SIGNUP_ENABLED %} {% element hr %} {% endelement %} {% element button href=signup_by_passkey_url tags="prominent,signup,outline,primary" %} {% trans "Sign up using a passkey" %} {% endelement %} {% endif %} {% if SOCIALACCOUNT_ENABLED %} {% include "socialaccount/snippets/login.html" with page_layout="entrance" %} {% endif %} {% endblock content %}