Back to Paperless Ngx

Signup

src/documents/templates/account/signup.html

2.20.131.7 KB
Original Source

{% extends "paperless-ngx/base.html" %} {% load i18n allauth %} {% block head_title %} {% trans "Paperless-ngx sign up" %} {% endblock head_title %} {% block form_top_content %} {% if not FIRST_INSTALL %}

{% blocktrans %}Already have an account? Sign in{% endblocktrans %}

{% endif %} {% endblock form_top_content %} {% block form_content %} {% if FIRST_INSTALL %}

{% blocktrans %}Note: This is the first user account for this installation and will be granted superuser privileges.{% endblocktrans %}

{% endif %} {% translate "Username" as i18n_username %} {% translate "Email (optional)" as i18n_email %} {% translate "Password" as i18n_password1 %} {% translate "Password (again)" as i18n_password2 %} {{ i18n_username }}

{{ i18n_email }}

{{ i18n_password1 }}

{{ i18n_password2 }}

{% translate "Sign up" %} {% if redirect_field_value %} {% endif %} {% endblock form_content %} {% block after_form_content %} {% if not FIRST_INSTALL %} {% load allauth socialaccount %} {% get_providers as socialaccount_providers %} {% if socialaccount_providers %} {% if not DISABLE_REGULAR_LOGIN %}

{% translate "or sign in via" %}

{% endif %} {% for provider in socialaccount_providers %} {% if provider.id == "openid" %} {% for brand in provider.get_brands %} {% provider_login_url provider openid=brand.openid_url process=process as href %} - {{ brand.name }} {% endfor %} {% else %} {% provider_login_url provider process=process scope=scope auth_params=auth_params as href %} - {% csrf_token %} {{ provider.name }} {% endif %} {% endfor %} {% endif %} {% endif %} {% endblock after_form_content %}