diff --git a/theme/templates/account/email/account_already_exists_message.txt b/theme/templates/account/email/account_already_exists_message.txt new file mode 100644 index 0000000..7022f42 --- /dev/null +++ b/theme/templates/account/email/account_already_exists_message.txt @@ -0,0 +1,13 @@ +{% extends "account/email/base_message.txt" %} +{% load i18n %} + +{% block content %}{% autoescape off %}{% blocktrans %}You are receiving this email because you or someone else tried to signup for an +account using email address: + +{{ email }} + +However, an account using that email address already exists. In case you have +forgotten about this, please use the password forgotten procedure to recover +your account: + +{{ password_reset_url }}{% endblocktrans %}{% endautoescape %}{% endblock content %} diff --git a/theme/templates/account/email/account_already_exists_subject.txt b/theme/templates/account/email/account_already_exists_subject.txt new file mode 100644 index 0000000..481edb0 --- /dev/null +++ b/theme/templates/account/email/account_already_exists_subject.txt @@ -0,0 +1,4 @@ +{% load i18n %} +{% autoescape off %} +{% blocktrans %}Account Already Exists{% endblocktrans %} +{% endautoescape %} diff --git a/theme/templates/account/email/base_message.txt b/theme/templates/account/email/base_message.txt new file mode 100644 index 0000000..7f38c74 --- /dev/null +++ b/theme/templates/account/email/base_message.txt @@ -0,0 +1,7 @@ +{% load i18n %}{% autoescape off %}{% blocktrans with site_name=current_site.name %}Hello from {{ site_name }}!{% endblocktrans %} + +{% block content %}{% endblock content %} + +{% blocktrans with site_name=current_site.name site_domain=current_site.domain %}Thank you for using {{ site_name }}! +{{ site_domain }}{% endblocktrans %} +{% endautoescape %} diff --git a/theme/templates/account/email/base_notification.txt b/theme/templates/account/email/base_notification.txt new file mode 100644 index 0000000..ed25a49 --- /dev/null +++ b/theme/templates/account/email/base_notification.txt @@ -0,0 +1,14 @@ +{% extends "account/email/base_message.txt" %} +{% load account %} +{% load i18n %} + +{% block content %}{% autoescape off %}{% blocktrans %}You are receiving this mail because the following change was made to your account:{% endblocktrans %} + +{% block notification_message %} +{% endblock notification_message%} + +{% blocktrans %}If you do not recognize this change then please take proper security precautions immediately. The change to your account originates from: + +- IP address: {{ip}} +- Browser: {{user_agent}} +- Date: {{timestamp}}{% endblocktrans %}{% endautoescape %}{% endblock %} diff --git a/theme/templates/account/email/email_changed_message.txt b/theme/templates/account/email/email_changed_message.txt new file mode 100644 index 0000000..46c0f7f --- /dev/null +++ b/theme/templates/account/email/email_changed_message.txt @@ -0,0 +1,4 @@ +{% extends "account/email/base_notification.txt" %} +{% load i18n %} + +{% block notification_message %}{% blocktrans %}Your email has been changed from {{ from_email }} to {{ to_email }}.{% endblocktrans %}{% endblock notification_message %} diff --git a/theme/templates/account/email/email_changed_subject.txt b/theme/templates/account/email/email_changed_subject.txt new file mode 100644 index 0000000..cb0702c --- /dev/null +++ b/theme/templates/account/email/email_changed_subject.txt @@ -0,0 +1,4 @@ +{% load i18n %} +{% autoescape off %} +{% blocktrans %}Email Changed{% endblocktrans %} +{% endautoescape %} diff --git a/theme/templates/account/email/email_confirm_message.txt b/theme/templates/account/email/email_confirm_message.txt new file mode 100644 index 0000000..23e3054 --- /dev/null +++ b/theme/templates/account/email/email_confirm_message.txt @@ -0,0 +1,4 @@ +{% extends "account/email/base_notification.txt" %} +{% load i18n %} + +{% block notification_message %}{% blocktrans %}Your email has been confirmed.{% endblocktrans %}{% endblock notification_message %} diff --git a/theme/templates/account/email/email_confirm_subject.txt b/theme/templates/account/email/email_confirm_subject.txt new file mode 100644 index 0000000..fe8cf74 --- /dev/null +++ b/theme/templates/account/email/email_confirm_subject.txt @@ -0,0 +1,4 @@ +{% load i18n %} +{% autoescape off %} +{% blocktrans %}Email Confirmation{% endblocktrans %} +{% endautoescape %} diff --git a/theme/templates/account/email/email_confirmation_message.txt b/theme/templates/account/email/email_confirmation_message.txt new file mode 100644 index 0000000..ed9d009 --- /dev/null +++ b/theme/templates/account/email/email_confirmation_message.txt @@ -0,0 +1,9 @@ +{% extends "account/email/base_message.txt" %} +{% load account %} +{% load i18n %} + +{% block content %}{% autoescape off %}{% user_display user as user_display %}{% blocktranslate with site_name=current_site.name site_domain=current_site.domain %}You're receiving this email because user {{ user_display }} has given your email address to register an account on {{ site_domain }}.{% endblocktranslate %} + +{% if code %}{% blocktranslate %}Your email verification code is listed below. Please enter it in your open browser window.{% endblocktranslate %} + +{{ code }}{% else %}{% blocktranslate %}To confirm this is correct, go to {{ activate_url }}{% endblocktranslate %}{% endif %}{% endautoescape %}{% endblock content %} diff --git a/theme/templates/account/email/email_confirmation_signup_message.txt b/theme/templates/account/email/email_confirmation_signup_message.txt new file mode 100644 index 0000000..9996f7e --- /dev/null +++ b/theme/templates/account/email/email_confirmation_signup_message.txt @@ -0,0 +1 @@ +{% include "account/email/email_confirmation_message.txt" %} diff --git a/theme/templates/account/email/email_confirmation_signup_subject.txt b/theme/templates/account/email/email_confirmation_signup_subject.txt new file mode 100644 index 0000000..4c85ebb --- /dev/null +++ b/theme/templates/account/email/email_confirmation_signup_subject.txt @@ -0,0 +1 @@ +{% include "account/email/email_confirmation_subject.txt" %} diff --git a/theme/templates/account/email/email_confirmation_subject.txt b/theme/templates/account/email/email_confirmation_subject.txt new file mode 100644 index 0000000..2e2c052 --- /dev/null +++ b/theme/templates/account/email/email_confirmation_subject.txt @@ -0,0 +1,4 @@ +{% load i18n %} +{% autoescape off %} +{% blocktrans %}Please Confirm Your Email Address{% endblocktrans %} +{% endautoescape %} diff --git a/theme/templates/account/email/email_deleted_message.txt b/theme/templates/account/email/email_deleted_message.txt new file mode 100644 index 0000000..fca92d1 --- /dev/null +++ b/theme/templates/account/email/email_deleted_message.txt @@ -0,0 +1,4 @@ +{% extends "account/email/base_notification.txt" %} +{% load i18n %} + +{% block notification_message %}{% blocktrans %}Email address {{ deleted_email }} has been removed from your account.{% endblocktrans %}{% endblock notification_message %} diff --git a/theme/templates/account/email/email_deleted_subject.txt b/theme/templates/account/email/email_deleted_subject.txt new file mode 100644 index 0000000..e923fc8 --- /dev/null +++ b/theme/templates/account/email/email_deleted_subject.txt @@ -0,0 +1,4 @@ +{% load i18n %} +{% autoescape off %} +{% blocktrans %}Email Removed{% endblocktrans %} +{% endautoescape %} diff --git a/theme/templates/account/email/login_code_message.txt b/theme/templates/account/email/login_code_message.txt new file mode 100644 index 0000000..6e98aae --- /dev/null +++ b/theme/templates/account/email/login_code_message.txt @@ -0,0 +1,9 @@ +{% extends "account/email/base_message.txt" %} +{% load account %} +{% load i18n %} + +{% block content %}{% autoescape off %}{% blocktranslate %}Your sign-in code is listed below. Please enter it in your open browser window.{% endblocktranslate %}{% endautoescape %} + +{{ code }} + +{% blocktranslate %}This mail can be safely ignored if you did not initiate this action.{% endblocktranslate %}{% endblock content %} diff --git a/theme/templates/account/email/login_code_subject.txt b/theme/templates/account/email/login_code_subject.txt new file mode 100644 index 0000000..e8d4b19 --- /dev/null +++ b/theme/templates/account/email/login_code_subject.txt @@ -0,0 +1,4 @@ +{% load i18n %} +{% autoescape off %} +{% blocktrans %}Sign-In Code{% endblocktrans %} +{% endautoescape %} diff --git a/theme/templates/account/email/password_changed_message.txt b/theme/templates/account/email/password_changed_message.txt new file mode 100644 index 0000000..6a6698b --- /dev/null +++ b/theme/templates/account/email/password_changed_message.txt @@ -0,0 +1,4 @@ +{% extends "account/email/base_notification.txt" %} +{% load i18n %} + +{% block notification_message %}{% blocktrans %}Your password has been changed.{% endblocktrans %}{% endblock notification_message %} diff --git a/theme/templates/account/email/password_changed_subject.txt b/theme/templates/account/email/password_changed_subject.txt new file mode 100644 index 0000000..b8eecbb --- /dev/null +++ b/theme/templates/account/email/password_changed_subject.txt @@ -0,0 +1,4 @@ +{% load i18n %} +{% autoescape off %} +{% blocktrans %}Password Changed{% endblocktrans %} +{% endautoescape %} diff --git a/theme/templates/account/email/password_reset_code_message.txt b/theme/templates/account/email/password_reset_code_message.txt new file mode 100644 index 0000000..d3002f7 --- /dev/null +++ b/theme/templates/account/email/password_reset_code_message.txt @@ -0,0 +1,9 @@ +{% extends "account/email/base_message.txt" %} +{% load account %} +{% load i18n %} + +{% block content %}{% autoescape off %}{% blocktranslate %}Your password reset code is listed below. Please enter it in your open browser window.{% endblocktranslate %}{% endautoescape %} + +{{ code }} + +{% blocktranslate %}This mail can be safely ignored if you did not initiate this action.{% endblocktranslate %}{% endblock content %} diff --git a/theme/templates/account/email/password_reset_code_subject.txt b/theme/templates/account/email/password_reset_code_subject.txt new file mode 100644 index 0000000..8f3d450 --- /dev/null +++ b/theme/templates/account/email/password_reset_code_subject.txt @@ -0,0 +1,4 @@ +{% load i18n %} +{% autoescape off %} +{% blocktrans %}Password Reset Code{% endblocktrans %} +{% endautoescape %} diff --git a/theme/templates/account/email/password_reset_message.txt b/theme/templates/account/email/password_reset_message.txt new file mode 100644 index 0000000..82d1013 --- /dev/null +++ b/theme/templates/account/email/password_reset_message.txt @@ -0,0 +1,4 @@ +{% extends "account/email/base_notification.txt" %} +{% load i18n %} + +{% block notification_message %}{% blocktrans %}Your password has been reset.{% endblocktrans %}{% endblock notification_message %} diff --git a/theme/templates/account/email/password_reset_subject.txt b/theme/templates/account/email/password_reset_subject.txt new file mode 100644 index 0000000..42201c4 --- /dev/null +++ b/theme/templates/account/email/password_reset_subject.txt @@ -0,0 +1,4 @@ +{% load i18n %} +{% autoescape off %} +{% blocktrans %}Password Reset{% endblocktrans %} +{% endautoescape %} diff --git a/theme/templates/account/email/password_set_message.txt b/theme/templates/account/email/password_set_message.txt new file mode 100644 index 0000000..44ca0f4 --- /dev/null +++ b/theme/templates/account/email/password_set_message.txt @@ -0,0 +1,4 @@ +{% extends "account/email/base_notification.txt" %} +{% load i18n %} + +{% block notification_message %}{% blocktrans %}Your password has been set.{% endblocktrans %}{% endblock notification_message %} diff --git a/theme/templates/account/email/password_set_subject.txt b/theme/templates/account/email/password_set_subject.txt new file mode 100644 index 0000000..fc76084 --- /dev/null +++ b/theme/templates/account/email/password_set_subject.txt @@ -0,0 +1,4 @@ +{% load i18n %} +{% autoescape off %} +{% blocktrans %}Password Set{% endblocktrans %} +{% endautoescape %} diff --git a/theme/templates/account/email/unknown_account_message.txt b/theme/templates/account/email/unknown_account_message.txt new file mode 100644 index 0000000..eb44db4 --- /dev/null +++ b/theme/templates/account/email/unknown_account_message.txt @@ -0,0 +1,10 @@ +{% extends "account/email/base_message.txt" %} +{% load i18n %} + +{% block content %}{% autoescape off %}{% blocktranslate %}You are receiving this email because you, or someone else, tried to access an account with email {{ email }}. However, we do not have any record of such an account in our database.{% endblocktranslate %} + +{% blocktranslate %}This mail can be safely ignored if you did not initiate this action.{% endblocktranslate %} + +{% blocktranslate %}If it was you, you can sign up for an account using the link below.{% endblocktranslate %} + +{{ signup_url }}{% endautoescape %}{% endblock content %} diff --git a/theme/templates/account/email/unknown_account_subject.txt b/theme/templates/account/email/unknown_account_subject.txt new file mode 100644 index 0000000..2461ea0 --- /dev/null +++ b/theme/templates/account/email/unknown_account_subject.txt @@ -0,0 +1,4 @@ +{% load i18n %} +{% autoescape off %} +{% blocktrans %}Unknown Account{% endblocktrans %} +{% endautoescape %} diff --git a/theme/templates/account/new/account_inactive.html b/theme/templates/account/new/account_inactive.html new file mode 100644 index 0000000..1ee9c72 --- /dev/null +++ b/theme/templates/account/new/account_inactive.html @@ -0,0 +1,14 @@ +{% extends "allauth/layouts/entrance.html" %} +{% load i18n %} +{% load allauth %} +{% block head_title %} + {% translate "Account Inactive" %} +{% endblock head_title %} +{% block content %} + {% element h1 %} + {% translate "Account Inactive" %} + {% endelement %} + {% element p %} + {% translate "This account is inactive." %} + {% endelement %} +{% endblock content %} diff --git a/theme/templates/account/new/confirm_email_verification_code.html b/theme/templates/account/new/confirm_email_verification_code.html new file mode 100644 index 0000000..8030831 --- /dev/null +++ b/theme/templates/account/new/confirm_email_verification_code.html @@ -0,0 +1,14 @@ +{% extends "account/base_confirm_code.html" %} +{% load i18n %} +{% load allauth account %} +{% block head_title %} + {% translate "Email Verification" %} +{% endblock head_title %} +{% block title %} + {% translate "Enter Email Verification Code" %} +{% endblock %} +{% block recipient %}{{ email }}{% endblock %} +{% block action_url %} + {% url 'account_email_verification_sent' %} +{% endblock %} +{% block extra_tags %}email,verification{% endblock %} diff --git a/theme/templates/account/new/confirm_login_code.html b/theme/templates/account/new/confirm_login_code.html new file mode 100644 index 0000000..dc97d45 --- /dev/null +++ b/theme/templates/account/new/confirm_login_code.html @@ -0,0 +1,20 @@ +{% extends "account/base_confirm_code.html" %} +{% load i18n %} +{% load allauth account %} +{% block head_title %} + {% translate "Sign In" %} +{% endblock head_title %} +{% block title %} + {% translate "Enter Sign-In Code" %} +{% endblock %} +{% block recipient %} + {% if email %} + {{ email }} + {% else %} + {{ phone }} + {% endif %} +{% endblock %} +{% block action_url %} + {% url 'account_confirm_login_code' %} +{% endblock %} +{% block extra_tags %}login{% endblock %} diff --git a/theme/templates/account/new/confirm_password_reset_code.html b/theme/templates/account/new/confirm_password_reset_code.html new file mode 100644 index 0000000..21a28bd --- /dev/null +++ b/theme/templates/account/new/confirm_password_reset_code.html @@ -0,0 +1,14 @@ +{% extends "account/base_confirm_code.html" %} +{% load i18n %} +{% load allauth account %} +{% block head_title %} + {% translate "Password Reset" %} +{% endblock head_title %} +{% block title %} + {% translate "Enter Password Reset Code" %} +{% endblock %} +{% block recipient %}{{ email }}{% endblock %} +{% block action_url %} + {% url 'account_confirm_password_reset_code' %} +{% endblock %} +{% block extra_tags %}email,verification{% endblock %} diff --git a/theme/templates/account/new/confirm_phone_verification_code.html b/theme/templates/account/new/confirm_phone_verification_code.html new file mode 100644 index 0000000..e34f630 --- /dev/null +++ b/theme/templates/account/new/confirm_phone_verification_code.html @@ -0,0 +1,14 @@ +{% extends "account/base_confirm_code.html" %} +{% load i18n %} +{% load allauth account %} +{% block head_title %} + {% translate "Phone Verification" %} +{% endblock head_title %} +{% block title %} + {% translate "Enter Phone Verification Code" %} +{% endblock %} +{% block recipient %}{{ phone }}{% endblock %} +{% block action_url %} + {% url 'account_verify_phone' %} +{% endblock %} +{% block extra_tags %}phone,verification{% endblock %} diff --git a/theme/templates/account/new/email.html b/theme/templates/account/new/email.html new file mode 100644 index 0000000..829d702 --- /dev/null +++ b/theme/templates/account/new/email.html @@ -0,0 +1,83 @@ +{% extends "account/base_manage_email.html" %} +{% load static allauth i18n %} +{% block head_title %} + {% trans "Email Addresses" %} +{% endblock head_title %} +{% block content %} + {% element h1 %} + {% trans "Email Addresses" %} + {% endelement %} + {% if emailaddresses %} + {% element p %} + {% trans 'The following email addresses are associated with your account:' %} + {% endelement %} + {% url 'account_email' as email_url %} + {% element form form=form action=email_url method="post" tags="email,list" %} + {% slot body %} + {% csrf_token %} + {% for radio in emailaddress_radios %} + {% with emailaddress=radio.emailaddress %} + {% element field type="radio" checked=radio.checked name="email" value=emailaddress.email id=radio.id %} + {% slot label %} + {{ emailaddress.email }} + {% if emailaddress.verified %} + {% element badge tags="success,email,verified" %} + {% translate "Verified" %} + {% endelement %} + {% else %} + {% element badge tags="warning,email,unverified" %} + {% translate "Unverified" %} + {% endelement %} + {% endif %} + {% if emailaddress.primary %} + {% element badge tags="email,primary" %} + {% translate "Primary" %} + {% endelement %} + {% endif %} + {% endslot %} + {% endelement %} + {% endwith %} + {% endfor %} + {% endslot %} + {% slot actions %} + {% element button type="submit" name="action_primary" %} + {% trans 'Make Primary' %} + {% endelement %} + {% element button tags="secondary" type="submit" name="action_send" %} + {% trans 'Re-send Verification' %} + {% endelement %} + {% element button tags="danger,delete" type="submit" name="action_remove" %} + {% trans 'Remove' %} + {% endelement %} + {% endslot %} + {% endelement %} + {% else %} + {% include "account/snippets/warn_no_email.html" %} + {% endif %} + {% if can_add_email %} + {% element h2 %} + {% trans "Add Email Address" %} + {% endelement %} + {% url 'account_email' as action_url %} + {% element form form=form method="post" action=action_url tags="email,add" %} + {% slot body %} + {% csrf_token %} + {% element fields form=form %} + {% endelement %} + {% endslot %} + {% slot actions %} + {% element button name="action_add" type="submit" %} + {% trans "Add Email" %} + {% endelement %} + {% endslot %} + {% endelement %} + {% endif %} +{% endblock content %} +{% block extra_body %} + + + +{% endblock extra_body %} diff --git a/theme/templates/account/new/email_change.html b/theme/templates/account/new/email_change.html new file mode 100644 index 0000000..0ee140c --- /dev/null +++ b/theme/templates/account/new/email_change.html @@ -0,0 +1,68 @@ +{% extends "account/base_manage_email.html" %} +{% load i18n %} +{% load allauth %} +{% block head_title %} + {% trans "Email Address" %} +{% endblock head_title %} +{% block content %} + {% element h1 %} + {% trans "Email Address" %} + {% endelement %} + {% if not emailaddresses %} + {% include "account/snippets/warn_no_email.html" %} + {% endif %} + {% url 'account_email' as action_url %} + {% element form method="post" action=action_url %} + {% slot body %} + {% csrf_token %} + {% if current_emailaddress %} + {% element field id="current_email" disabled=True type="email" value=current_emailaddress.email %} + {% slot label %} + {% translate "Current email" %}: + {% endslot %} + {% endelement %} + {% endif %} + {% if new_emailaddress %} + {% element field id="new_email" value=new_emailaddress.email disabled=True type="email" %} + {% slot label %} + {% if not current_emailaddress %} + {% translate "Current email" %}: + {% else %} + {% translate "Changing to" %}: + {% endif %} + {% endslot %} + {% slot help_text %} + {% blocktranslate %}Your email address is still pending verification.{% endblocktranslate %} + {% element button form="pending-email" type="submit" name="action_send" tags="minor,secondary" %} + {% trans 'Re-send Verification' %} + {% endelement %} + {% if current_emailaddress %} + {% element button form="pending-email" type="submit" name="action_remove" tags="danger,minor" %} + {% trans 'Cancel Change' %} + {% endelement %} + {% endif %} + {% endslot %} + {% endelement %} + {% endif %} + {% element field id=form.email.auto_id name="email" value=form.email.value errors=form.email.errors type="email" %} + {% slot label %} + {% translate "Change to" %}: + {% endslot %} + {% endelement %} + {% endslot %} + {% slot actions %} + {% element button name="action_add" type="submit" %} + {% trans "Change Email" %} + {% endelement %} + {% endslot %} + {% endelement %} + {% if new_emailaddress %} + + {% endif %} +{% endblock content %} diff --git a/theme/templates/account/new/email_confirm.html b/theme/templates/account/new/email_confirm.html new file mode 100644 index 0000000..d03e4a2 --- /dev/null +++ b/theme/templates/account/new/email_confirm.html @@ -0,0 +1,39 @@ +{% extends "account/base_entrance.html" %} +{% load i18n %} +{% load account %} +{% load allauth %} +{% block head_title %} + {% trans "Confirm Email Address" %} +{% endblock head_title %} +{% block content %} + {% element h1 %} + {% trans "Confirm Email Address" %} + {% endelement %} + {% if confirmation %} + {% user_display confirmation.email_address.user as user_display %} + {% if can_confirm %} + {% element p %} + {% blocktrans with confirmation.email_address.email as email %}Please confirm that {{ email }} is an email address for user {{ user_display }}.{% endblocktrans %} + {% endelement %} + {% url 'account_confirm_email' confirmation.key as action_url %} + {% element form method="post" action=action_url %} + {% slot actions %} + {% csrf_token %} + {{ redirect_field }} + {% element button type="submit" %} + {% trans 'Confirm' %} + {% endelement %} + {% endslot %} + {% endelement %} + {% else %} + {% element p %} + {% blocktrans %}Unable to confirm {{ email }} because it is already confirmed by a different account.{% endblocktrans %} + {% endelement %} + {% endif %} + {% else %} + {% url 'account_email' as email_url %} + {% element p %} + {% blocktrans %}This email confirmation link expired or is invalid. Please issue a new email confirmation request.{% endblocktrans %} + {% endelement %} + {% endif %} +{% endblock content %} diff --git a/theme/templates/account/new/reauthenticate.html b/theme/templates/account/new/reauthenticate.html new file mode 100644 index 0000000..d98c86a --- /dev/null +++ b/theme/templates/account/new/reauthenticate.html @@ -0,0 +1,22 @@ +{% extends "account/base_reauthenticate.html" %} +{% load allauth %} +{% load i18n %} +{% block reauthenticate_content %} + {% element p %} + {% blocktranslate %}Enter your password:{% endblocktranslate %} + {% endelement %} + {% url 'account_reauthenticate' as action_url %} + {% element form form=form method="post" action=action_url %} + {% slot body %} + {% csrf_token %} + {% element fields form=form unlabeled=True %} + {% endelement %} + {{ redirect_field }} + {% endslot %} + {% slot actions %} + {% element button type="submit" tags="primary,reauthenticate" %} + {% trans "Confirm" %} + {% endelement %} + {% endslot %} + {% endelement %} +{% endblock %} diff --git a/theme/templates/account/new/request_login_code.html b/theme/templates/account/new/request_login_code.html new file mode 100644 index 0000000..6ef3905 --- /dev/null +++ b/theme/templates/account/new/request_login_code.html @@ -0,0 +1,32 @@ +{% extends "account/base_entrance.html" %} +{% load i18n %} +{% load allauth account %} +{% block head_title %} + {% translate "Sign In" %} +{% endblock head_title %} +{% block content %} + {% element h1 %} + {% translate "Send me a sign-in code" %} + {% endelement %} + {% element p %} + {% blocktranslate %}You will receive a special code for a password-free sign-in.{% endblocktranslate %} + {% endelement %} + {% url 'account_request_login_code' as login_url %} + {% element form form=form method="post" action=login_url tags="entrance,login" %} + {% slot body %} + {% csrf_token %} + {% element fields form=form unlabeled=True %} + {% endelement %} + {{ redirect_field }} + {% endslot %} + {% slot actions %} + {% element button type="submit" tags="prominent,login" %} + {% translate "Request Code" %} + {% endelement %} + {% endslot %} + {% endelement %} + {% url 'account_login' as login_url %} + {% element button href=login_url tags="link" %} + {% translate "Other sign-in options" %} + {% endelement %} +{% endblock content %} diff --git a/theme/templates/account/new/signup_by_passkey.html b/theme/templates/account/new/signup_by_passkey.html new file mode 100644 index 0000000..0863542 --- /dev/null +++ b/theme/templates/account/new/signup_by_passkey.html @@ -0,0 +1,38 @@ +{% extends "account/base_entrance.html" %} +{% load allauth i18n %} +{% block head_title %} + {% trans "Signup" %} +{% endblock head_title %} +{% block content %} + {% element h1 %} + {% trans "Passkey 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 %} + {% url 'account_signup_by_passkey' as action_url %} + {% element form form=form method="post" action=action_url tags="entrance,signup" %} + {% slot body %} + {% csrf_token %} + {% element fields form=form unlabeled=True %} + {% endelement %} + {{ redirect_field }} + {% endslot %} + {% slot actions %} + {% element button tags="prominent,signup" type="submit" %} + {% trans "Sign Up" %} + {% endelement %} + {% endslot %} + {% endelement %} + {% element hr %} + {% endelement %} + {% element button href=signup_url tags="prominent,signup,outline,primary" %} + {% trans "Other options" %} + {% endelement %} +{% endblock content %} diff --git a/theme/templates/account/new/signup_closed.html b/theme/templates/account/new/signup_closed.html new file mode 100644 index 0000000..1d70eef --- /dev/null +++ b/theme/templates/account/new/signup_closed.html @@ -0,0 +1,14 @@ +{% extends "account/base_entrance.html" %} +{% load i18n %} +{% load allauth %} +{% block head_title %} + {% trans "Sign Up Closed" %} +{% endblock head_title %} +{% block content %} + {% element h1 %} + {% trans "Sign Up Closed" %} + {% endelement %} + {% element p %} + {% trans "We are sorry, but the sign up is currently closed." %} + {% endelement %} +{% endblock content %} diff --git a/theme/templates/account/new/verification_sent.html b/theme/templates/account/new/verification_sent.html new file mode 100644 index 0000000..2397367 --- /dev/null +++ b/theme/templates/account/new/verification_sent.html @@ -0,0 +1,14 @@ +{% extends "account/base_entrance.html" %} +{% load i18n %} +{% load allauth %} +{% block head_title %} + {% trans "Verify Your Email Address" %} +{% endblock head_title %} +{% block content %} + {% element h1 %} + {% trans "Verify Your Email Address" %} + {% endelement %} + {% element p %} + {% blocktrans %}We have sent an email to you for verification. Follow the link provided to finalize the signup process. If you do not see the verification email in your main inbox, check your spam folder. Please contact us if you do not receive the verification email within a few minutes.{% endblocktrans %} + {% endelement %} +{% endblock content %} diff --git a/theme/templates/account/new/verified_email_required.html b/theme/templates/account/new/verified_email_required.html new file mode 100644 index 0000000..65d7d1f --- /dev/null +++ b/theme/templates/account/new/verified_email_required.html @@ -0,0 +1,25 @@ +{% extends "account/base_manage.html" %} +{% load i18n %} +{% load allauth %} +{% block head_title %} + {% trans "Verify Your Email Address" %} +{% endblock head_title %} +{% block content %} + {% element h1 %} + {% trans "Verify Your Email Address" %} + {% endelement %} + {% url 'account_email' as email_url %} + {% element p %} + {% blocktrans %}This part of the site requires us to verify that +you are who you claim to be. For this purpose, we require that you +verify ownership of your email address. {% endblocktrans %} + {% endelement %} + {% element p %} + {% blocktrans %}We have sent an email to you for +verification. Please click on the link inside that email. If you do not see the verification email in your main inbox, check your spam folder. Otherwise +contact us if you do not receive it within a few minutes.{% endblocktrans %} + {% endelement %} + {% element p %} + {% blocktrans %}Note: you can still change your email address.{% endblocktrans %} + {% endelement %} +{% endblock content %}