first commit
This commit is contained in:
14
templates/account/account_inactive.html
Executable file
14
templates/account/account_inactive.html
Executable file
@@ -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 %}
|
||||
1
templates/account/base_entrance.html
Executable file
1
templates/account/base_entrance.html
Executable file
@@ -0,0 +1 @@
|
||||
{% extends "allauth/layouts/entrance.html" %}
|
||||
1
templates/account/base_manage.html
Executable file
1
templates/account/base_manage.html
Executable file
@@ -0,0 +1 @@
|
||||
{% extends "allauth/layouts/manage.html" %}
|
||||
1
templates/account/base_manage_email.html
Executable file
1
templates/account/base_manage_email.html
Executable file
@@ -0,0 +1 @@
|
||||
{% extends "account/base_manage.html" %}
|
||||
1
templates/account/base_manage_password.html
Executable file
1
templates/account/base_manage_password.html
Executable file
@@ -0,0 +1 @@
|
||||
{% extends "account/base_manage.html" %}
|
||||
29
templates/account/base_reauthenticate.html
Executable file
29
templates/account/base_reauthenticate.html
Executable file
@@ -0,0 +1,29 @@
|
||||
{% extends "account/base_entrance.html" %}
|
||||
{% load allauth %}
|
||||
{% load i18n %}
|
||||
{% block head_title %}
|
||||
{% trans "Confirm Access" %}
|
||||
{% endblock head_title %}
|
||||
{% block content %}
|
||||
{% element h1 %}
|
||||
{% trans "Confirm Access" %}
|
||||
{% endelement %}
|
||||
{% element p %}
|
||||
{% blocktranslate %}Please reauthenticate to safeguard your account.{% endblocktranslate %}
|
||||
{% endelement %}
|
||||
{% block reauthenticate_content %}{% endblock %}
|
||||
{% if reauthentication_alternatives %}
|
||||
{% element hr %}
|
||||
{% endelement %}
|
||||
{% element h2 %}
|
||||
{% translate "Alternative options" %}
|
||||
{% endelement %}
|
||||
{% element button_group %}
|
||||
{% for alt in reauthentication_alternatives %}
|
||||
{% element button href=alt.url tags="primary,outline" %}
|
||||
{{ alt.description }}
|
||||
{% endelement %}
|
||||
{% endfor %}
|
||||
{% endelement %}
|
||||
{% endif %}
|
||||
{% endblock content %}
|
||||
37
templates/account/confirm_login_code.html
Executable file
37
templates/account/confirm_login_code.html
Executable file
@@ -0,0 +1,37 @@
|
||||
{% extends "account/base_entrance.html" %}
|
||||
{% load i18n %}
|
||||
{% load allauth account %}
|
||||
{% block head_title %}
|
||||
{% translate "Sign In" %}
|
||||
{% endblock head_title %}
|
||||
{% block content %}
|
||||
{% element h1 %}
|
||||
{% translate "Enter Sign-In Code" %}
|
||||
{% endelement %}
|
||||
{% setvar email_link %}
|
||||
<a href="mailto:{{ email }}">{{ email }}</a>
|
||||
{% endsetvar %}
|
||||
{% element p %}
|
||||
{% blocktranslate %}We’ve sent a code to {{ email_link }}. The code expires shortly, so please enter it soon.{% endblocktranslate %}
|
||||
{% endelement %}
|
||||
{% url 'account_confirm_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 "Sign In" %}
|
||||
{% endelement %}
|
||||
{% endslot %}
|
||||
{% endelement %}
|
||||
{% element h2 %}
|
||||
{% url 'account_login' as login_url %}
|
||||
{% element button href=login_url tags="link" %}
|
||||
{% translate "Other sign-in options" %}
|
||||
{% endelement %}
|
||||
{% endelement %}
|
||||
{% endblock content %}
|
||||
90
templates/account/email.html
Executable file
90
templates/account/email.html
Executable file
@@ -0,0 +1,90 @@
|
||||
{% extends "account/base_manage_email.html" %}
|
||||
{% load 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 %}
|
||||
<script type="text/javascript">
|
||||
(function() {
|
||||
var message = "{% trans 'Do you really want to remove the selected email address?' %}";
|
||||
var actions = document.getElementsByName('action_remove');
|
||||
if (actions.length) {
|
||||
actions[0].addEventListener("click", function(e) {
|
||||
if (! confirm(message)) {
|
||||
e.preventDefault();
|
||||
}
|
||||
});
|
||||
}
|
||||
})();
|
||||
</script>
|
||||
{% endblock extra_body %}
|
||||
13
templates/account/email/account_already_exists_message.txt
Executable file
13
templates/account/email/account_already_exists_message.txt
Executable file
@@ -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 %}
|
||||
4
templates/account/email/account_already_exists_subject.txt
Executable file
4
templates/account/email/account_already_exists_subject.txt
Executable file
@@ -0,0 +1,4 @@
|
||||
{% load i18n %}
|
||||
{% autoescape off %}
|
||||
{% blocktrans %}Account Already Exists{% endblocktrans %}
|
||||
{% endautoescape %}
|
||||
7
templates/account/email/base_message.txt
Executable file
7
templates/account/email/base_message.txt
Executable file
@@ -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 %}
|
||||
14
templates/account/email/base_notification.txt
Executable file
14
templates/account/email/base_notification.txt
Executable file
@@ -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 %}
|
||||
4
templates/account/email/email_changed_message.txt
Executable file
4
templates/account/email/email_changed_message.txt
Executable file
@@ -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 %}
|
||||
4
templates/account/email/email_changed_subject.txt
Executable file
4
templates/account/email/email_changed_subject.txt
Executable file
@@ -0,0 +1,4 @@
|
||||
{% load i18n %}
|
||||
{% autoescape off %}
|
||||
{% blocktrans %}Email Changed{% endblocktrans %}
|
||||
{% endautoescape %}
|
||||
4
templates/account/email/email_confirm_message.txt
Executable file
4
templates/account/email/email_confirm_message.txt
Executable file
@@ -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 %}
|
||||
4
templates/account/email/email_confirm_subject.txt
Executable file
4
templates/account/email/email_confirm_subject.txt
Executable file
@@ -0,0 +1,4 @@
|
||||
{% load i18n %}
|
||||
{% autoescape off %}
|
||||
{% blocktrans %}Email Confirmation{% endblocktrans %}
|
||||
{% endautoescape %}
|
||||
7
templates/account/email/email_confirmation_message.txt
Executable file
7
templates/account/email/email_confirmation_message.txt
Executable file
@@ -0,0 +1,7 @@
|
||||
{% extends "account/email/base_message.txt" %}
|
||||
{% load account %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block content %}{% autoescape off %}{% user_display user as user_display %}{% blocktrans 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 }}.
|
||||
|
||||
To confirm this is correct, go to {{ activate_url }}{% endblocktrans %}{% endautoescape %}{% endblock content %}
|
||||
1
templates/account/email/email_confirmation_signup_message.txt
Executable file
1
templates/account/email/email_confirmation_signup_message.txt
Executable file
@@ -0,0 +1 @@
|
||||
{% include "account/email/email_confirmation_message.txt" %}
|
||||
1
templates/account/email/email_confirmation_signup_subject.txt
Executable file
1
templates/account/email/email_confirmation_signup_subject.txt
Executable file
@@ -0,0 +1 @@
|
||||
{% include "account/email/email_confirmation_subject.txt" %}
|
||||
4
templates/account/email/email_confirmation_subject.txt
Executable file
4
templates/account/email/email_confirmation_subject.txt
Executable file
@@ -0,0 +1,4 @@
|
||||
{% load i18n %}
|
||||
{% autoescape off %}
|
||||
{% blocktrans %}Please Confirm Your Email Address{% endblocktrans %}
|
||||
{% endautoescape %}
|
||||
4
templates/account/email/email_deleted_message.txt
Executable file
4
templates/account/email/email_deleted_message.txt
Executable file
@@ -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 %}
|
||||
4
templates/account/email/email_deleted_subject.txt
Executable file
4
templates/account/email/email_deleted_subject.txt
Executable file
@@ -0,0 +1,4 @@
|
||||
{% load i18n %}
|
||||
{% autoescape off %}
|
||||
{% blocktrans %}Email Removed{% endblocktrans %}
|
||||
{% endautoescape %}
|
||||
9
templates/account/email/login_code_message.txt
Executable file
9
templates/account/email/login_code_message.txt
Executable file
@@ -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 %}
|
||||
4
templates/account/email/login_code_subject.txt
Executable file
4
templates/account/email/login_code_subject.txt
Executable file
@@ -0,0 +1,4 @@
|
||||
{% load i18n %}
|
||||
{% autoescape off %}
|
||||
{% blocktrans %}Sign-In Code{% endblocktrans %}
|
||||
{% endautoescape %}
|
||||
4
templates/account/email/password_changed_message.txt
Executable file
4
templates/account/email/password_changed_message.txt
Executable file
@@ -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 %}
|
||||
4
templates/account/email/password_changed_subject.txt
Executable file
4
templates/account/email/password_changed_subject.txt
Executable file
@@ -0,0 +1,4 @@
|
||||
{% load i18n %}
|
||||
{% autoescape off %}
|
||||
{% blocktrans %}Password Changed{% endblocktrans %}
|
||||
{% endautoescape %}
|
||||
9
templates/account/email/password_reset_key_message.txt
Executable file
9
templates/account/email/password_reset_key_message.txt
Executable file
@@ -0,0 +1,9 @@
|
||||
{% extends "account/email/base_message.txt" %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block content %}{% autoescape off %}{% blocktrans %}You're receiving this email because you or someone else has requested a password reset for your user account.
|
||||
It can be safely ignored if you did not request a password reset. Click the link below to reset your password.{% endblocktrans %}
|
||||
|
||||
{{ password_reset_url }}{% if username %}
|
||||
|
||||
{% blocktrans %}In case you forgot, your username is {{ username }}.{% endblocktrans %}{% endif %}{% endautoescape %}{% endblock content %}
|
||||
4
templates/account/email/password_reset_key_subject.txt
Executable file
4
templates/account/email/password_reset_key_subject.txt
Executable file
@@ -0,0 +1,4 @@
|
||||
{% load i18n %}
|
||||
{% autoescape off %}
|
||||
{% blocktrans %}Password Reset Email{% endblocktrans %}
|
||||
{% endautoescape %}
|
||||
4
templates/account/email/password_reset_message.txt
Executable file
4
templates/account/email/password_reset_message.txt
Executable file
@@ -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 %}
|
||||
4
templates/account/email/password_reset_subject.txt
Executable file
4
templates/account/email/password_reset_subject.txt
Executable file
@@ -0,0 +1,4 @@
|
||||
{% load i18n %}
|
||||
{% autoescape off %}
|
||||
{% blocktrans %}Password Reset{% endblocktrans %}
|
||||
{% endautoescape %}
|
||||
4
templates/account/email/password_set_message.txt
Executable file
4
templates/account/email/password_set_message.txt
Executable file
@@ -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 %}
|
||||
4
templates/account/email/password_set_subject.txt
Executable file
4
templates/account/email/password_set_subject.txt
Executable file
@@ -0,0 +1,4 @@
|
||||
{% load i18n %}
|
||||
{% autoescape off %}
|
||||
{% blocktrans %}Password Set{% endblocktrans %}
|
||||
{% endautoescape %}
|
||||
10
templates/account/email/unknown_account_message.txt
Executable file
10
templates/account/email/unknown_account_message.txt
Executable file
@@ -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 %}
|
||||
4
templates/account/email/unknown_account_subject.txt
Executable file
4
templates/account/email/unknown_account_subject.txt
Executable file
@@ -0,0 +1,4 @@
|
||||
{% load i18n %}
|
||||
{% autoescape off %}
|
||||
{% blocktrans %}Unknown Account{% endblocktrans %}
|
||||
{% endautoescape %}
|
||||
68
templates/account/email_change.html
Executable file
68
templates/account/email_change.html
Executable file
@@ -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 %}
|
||||
<form style="display: none"
|
||||
id="pending-email"
|
||||
method="post"
|
||||
action="{% url 'account_email' %}">
|
||||
{% csrf_token %}
|
||||
<input type="hidden" name="email" value="{{ new_emailaddress.email }}">
|
||||
</form>
|
||||
{% endif %}
|
||||
{% endblock content %}
|
||||
39
templates/account/email_confirm.html
Executable file
39
templates/account/email_confirm.html
Executable file
@@ -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 <a href="mailto:{{ email }}">{{ email }}</a> 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 <a href="{{ email_url }}">issue a new email confirmation request</a>.{% endblocktrans %}
|
||||
{% endelement %}
|
||||
{% endif %}
|
||||
{% endblock content %}
|
||||
127
templates/account/login.html
Executable file
127
templates/account/login.html
Executable file
@@ -0,0 +1,127 @@
|
||||
{% load i18n %}
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>{% trans "Google 登录" %}</title>
|
||||
<link rel="stylesheet" href="https://file.guimiaokeji.com/layui/css/layui.css">
|
||||
<style>
|
||||
body {
|
||||
background: linear-gradient(to right, #1e3c72, #2a5298);
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
height: 100vh;
|
||||
margin: 0;
|
||||
font-family: 'Arial', sans-serif;
|
||||
color: #fff;
|
||||
}
|
||||
.container {
|
||||
background: rgba(255, 255, 255, 0.1);
|
||||
padding: 30px;
|
||||
border-radius: 10px;
|
||||
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
|
||||
width: 90%;
|
||||
max-width: 400px;
|
||||
animation: fadeIn 1s ease-in-out;
|
||||
backdrop-filter: blur(10px);
|
||||
text-align: center;
|
||||
}
|
||||
.layui-btn {
|
||||
width: 100%;
|
||||
}
|
||||
.title {
|
||||
font-size: 24px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
@keyframes fadeIn {
|
||||
from {
|
||||
opacity: 0;
|
||||
transform: translateY(-20px);
|
||||
}
|
||||
to {
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
}
|
||||
}
|
||||
input::-webkit-input-placeholder {
|
||||
color: rgba(255, 255, 255, 0.7);
|
||||
}
|
||||
input:-ms-input-placeholder {
|
||||
color: rgba(255, 255, 255, 0.7);
|
||||
}
|
||||
input::-ms-input-placeholder {
|
||||
color: rgba(255, 255, 255, 0.7);
|
||||
}
|
||||
input::placeholder {
|
||||
color: rgba(255, 255, 255, 0.7);
|
||||
}
|
||||
.layui-form-item .layui-input {
|
||||
background: rgba(255, 255, 255, 0.2);
|
||||
border: 1px solid rgba(255, 255, 255, 0.3);
|
||||
color: #fff;
|
||||
}
|
||||
.layui-form-item .layui-input:focus {
|
||||
border-color: #3b82ec;
|
||||
}
|
||||
.layui-form-label {
|
||||
color: #fff;
|
||||
}
|
||||
.agreement {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.agreement input {
|
||||
margin-right: 10px;
|
||||
}
|
||||
.agreement a {
|
||||
color: #3b82ec;
|
||||
text-decoration: underline;
|
||||
cursor: pointer;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<h2 class="title">{% trans "通过 Google 登录" %}</h2>
|
||||
<p>{% trans "您即将使用来自 Google 的第三方账户登录。" %}</p>
|
||||
<form class="layui-form" method="post" action="{{ form.action }}" id="googleLoginForm">
|
||||
{% csrf_token %}
|
||||
<div class="layui-form-item agreement">
|
||||
<input type="checkbox" id="agreeTerms" lay-skin="primary" lay-verify="required" title="我已阅读并同意">
|
||||
<label for="agreeTerms"><a href="#" id="termsLink">用户注册条款</a></label>
|
||||
</div>
|
||||
<button type="submit" class="layui-btn layui-btn-normal" id="submitButton">{% trans "继续" %}</button>
|
||||
</form>
|
||||
</div>
|
||||
<script src="https://file.guimiaokeji.com/layui/layui.js"></script>
|
||||
<script>
|
||||
layui.use(['form', 'layer'], function() {
|
||||
var form = layui.form;
|
||||
var layer = layui.layer;
|
||||
|
||||
// 打开用户注册条款链接
|
||||
document.getElementById('termsLink').addEventListener('click', function(event) {
|
||||
event.preventDefault();
|
||||
// 在这里打开你的用户注册条款链接
|
||||
window.open('/path/to/your/terms', '_blank');
|
||||
});
|
||||
|
||||
// 自定义验证规则
|
||||
form.verify({
|
||||
required: function(value, item){
|
||||
if(!$(item).prop('checked')){
|
||||
return '请阅读并同意用户注册条款后再继续。';
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
// 监听表单提交
|
||||
form.on('submit', function(data) {
|
||||
// 在这里添加处理表单提交的逻辑
|
||||
return true; // 阻止表单跳转。如果需要表单跳转,去掉这段即可。
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
25
templates/account/logout.html
Executable file
25
templates/account/logout.html
Executable file
@@ -0,0 +1,25 @@
|
||||
{% extends "account/base_manage.html" %}
|
||||
{% load allauth i18n %}
|
||||
{% block head_title %}
|
||||
{% trans "Sign Out" %}
|
||||
{% endblock head_title %}
|
||||
{% block content %}
|
||||
{% element h1 %}
|
||||
{% trans "Sign Out" %}
|
||||
{% endelement %}
|
||||
{% element p %}
|
||||
{% trans 'Are you sure you want to sign out?' %}
|
||||
{% endelement %}
|
||||
{% url 'account_logout' as action_url %}
|
||||
{% element form method="post" action=action_url no_visible_fields=True %}
|
||||
{% slot body %}
|
||||
{% csrf_token %}
|
||||
{{ redirect_field }}
|
||||
{% endslot %}
|
||||
{% slot actions %}
|
||||
{% element button type="submit" %}
|
||||
{% trans 'Sign Out' %}
|
||||
{% endelement %}
|
||||
{% endslot %}
|
||||
{% endelement %}
|
||||
{% endblock content %}
|
||||
2
templates/account/messages/cannot_delete_primary_email.txt
Executable file
2
templates/account/messages/cannot_delete_primary_email.txt
Executable file
@@ -0,0 +1,2 @@
|
||||
{% load i18n %}
|
||||
{% blocktrans %}You cannot remove your primary email address ({{email}}).{% endblocktrans %}
|
||||
2
templates/account/messages/email_confirmation_failed.txt
Executable file
2
templates/account/messages/email_confirmation_failed.txt
Executable file
@@ -0,0 +1,2 @@
|
||||
{% load i18n %}
|
||||
{% blocktrans %}Unable to confirm {{email}} because it is already confirmed by a different account.{% endblocktrans %}
|
||||
2
templates/account/messages/email_confirmation_sent.txt
Executable file
2
templates/account/messages/email_confirmation_sent.txt
Executable file
@@ -0,0 +1,2 @@
|
||||
{% load i18n %}
|
||||
{% blocktrans %}Confirmation email sent to {{email}}.{% endblocktrans %}
|
||||
2
templates/account/messages/email_confirmed.txt
Executable file
2
templates/account/messages/email_confirmed.txt
Executable file
@@ -0,0 +1,2 @@
|
||||
{% load i18n %}
|
||||
{% blocktrans %}You have confirmed {{email}}.{% endblocktrans %}
|
||||
2
templates/account/messages/email_deleted.txt
Executable file
2
templates/account/messages/email_deleted.txt
Executable file
@@ -0,0 +1,2 @@
|
||||
{% load i18n %}
|
||||
{% blocktrans %}Removed email address {{email}}.{% endblocktrans %}
|
||||
4
templates/account/messages/logged_in.txt
Executable file
4
templates/account/messages/logged_in.txt
Executable file
@@ -0,0 +1,4 @@
|
||||
{% load account %}
|
||||
{% load i18n %}
|
||||
{% user_display user as name %}
|
||||
{% blocktrans %}Successfully signed in as {{name}}.{% endblocktrans %}
|
||||
2
templates/account/messages/logged_out.txt
Executable file
2
templates/account/messages/logged_out.txt
Executable file
@@ -0,0 +1,2 @@
|
||||
{% load i18n %}
|
||||
{% blocktrans %}You have signed out.{% endblocktrans %}
|
||||
2
templates/account/messages/login_code_sent.txt
Executable file
2
templates/account/messages/login_code_sent.txt
Executable file
@@ -0,0 +1,2 @@
|
||||
{% load i18n %}
|
||||
{% blocktrans %}A sign-in code has been mailed to {{email}}.{% endblocktrans %}
|
||||
2
templates/account/messages/password_changed.txt
Executable file
2
templates/account/messages/password_changed.txt
Executable file
@@ -0,0 +1,2 @@
|
||||
{% load i18n %}
|
||||
{% blocktrans %}Password successfully changed.{% endblocktrans %}
|
||||
2
templates/account/messages/password_set.txt
Executable file
2
templates/account/messages/password_set.txt
Executable file
@@ -0,0 +1,2 @@
|
||||
{% load i18n %}
|
||||
{% blocktrans %}Password successfully set.{% endblocktrans %}
|
||||
2
templates/account/messages/primary_email_set.txt
Executable file
2
templates/account/messages/primary_email_set.txt
Executable file
@@ -0,0 +1,2 @@
|
||||
{% load i18n %}
|
||||
{% blocktrans %}Primary email address set.{% endblocktrans %}
|
||||
2
templates/account/messages/unverified_primary_email.txt
Executable file
2
templates/account/messages/unverified_primary_email.txt
Executable file
@@ -0,0 +1,2 @@
|
||||
{% load i18n %}
|
||||
{% blocktrans %}Your primary email address must be verified.{% endblocktrans %}
|
||||
25
templates/account/password_change.html
Executable file
25
templates/account/password_change.html
Executable file
@@ -0,0 +1,25 @@
|
||||
{% extends "account/base_manage_password.html" %}
|
||||
{% load allauth i18n %}
|
||||
{% block head_title %}
|
||||
{% trans "Change Password" %}
|
||||
{% endblock head_title %}
|
||||
{% block content %}
|
||||
{% element h1 %}
|
||||
{% trans "Change Password" %}
|
||||
{% endelement %}
|
||||
{% url 'account_change_password' as action_url %}
|
||||
{% element form form=form method="post" action=action_url %}
|
||||
{% slot body %}
|
||||
{% csrf_token %}
|
||||
{{ redirect_field }}
|
||||
{% element fields form=form %}
|
||||
{% endelement %}
|
||||
{% endslot %}
|
||||
{% slot actions %}
|
||||
{% element button type="submit" %}
|
||||
{% trans "Change Password" %}
|
||||
{% endelement %}
|
||||
<a href="{% url 'account_reset_password' %}">{% trans "Forgot Password?" %}</a>
|
||||
{% endslot %}
|
||||
{% endelement %}
|
||||
{% endblock content %}
|
||||
32
templates/account/password_reset.html
Executable file
32
templates/account/password_reset.html
Executable file
@@ -0,0 +1,32 @@
|
||||
{% extends "account/base_entrance.html" %}
|
||||
{% load i18n allauth account %}
|
||||
{% block head_title %}
|
||||
{% trans "Password Reset" %}
|
||||
{% endblock head_title %}
|
||||
{% block content %}
|
||||
{% element h1 %}
|
||||
{% trans "Password Reset" %}
|
||||
{% endelement %}
|
||||
{% if user.is_authenticated %}
|
||||
{% include "account/snippets/already_logged_in.html" %}
|
||||
{% endif %}
|
||||
{% element p %}
|
||||
{% trans "Forgotten your password? Enter your email address below, and we'll send you an email allowing you to reset it." %}
|
||||
{% endelement %}
|
||||
{% url 'account_reset_password' as reset_url %}
|
||||
{% element form form=form method="post" action=reset_url %}
|
||||
{% slot body %}
|
||||
{% csrf_token %}
|
||||
{% element fields form=form %}
|
||||
{% endelement %}
|
||||
{% endslot %}
|
||||
{% slot actions %}
|
||||
{% element button type="submit" %}
|
||||
{% trans 'Reset My Password' %}
|
||||
{% endelement %}
|
||||
{% endslot %}
|
||||
{% endelement %}
|
||||
{% element p %}
|
||||
{% blocktrans %}Please contact us if you have any trouble resetting your password.{% endblocktrans %}
|
||||
{% endelement %}
|
||||
{% endblock content %}
|
||||
18
templates/account/password_reset_done.html
Executable file
18
templates/account/password_reset_done.html
Executable file
@@ -0,0 +1,18 @@
|
||||
{% extends "account/base_entrance.html" %}
|
||||
{% load i18n %}
|
||||
{% load allauth %}
|
||||
{% load account %}
|
||||
{% block head_title %}
|
||||
{% trans "Password Reset" %}
|
||||
{% endblock head_title %}
|
||||
{% block content %}
|
||||
{% element h1 %}
|
||||
{% trans "Password Reset" %}
|
||||
{% endelement %}
|
||||
{% if user.is_authenticated %}
|
||||
{% include "account/snippets/already_logged_in.html" %}
|
||||
{% endif %}
|
||||
{% element p %}
|
||||
{% blocktrans %}We have sent you an email. If you have not received it please check your spam folder. Otherwise contact us if you do not receive it in a few minutes.{% endblocktrans %}
|
||||
{% endelement %}
|
||||
{% endblock content %}
|
||||
35
templates/account/password_reset_from_key.html
Executable file
35
templates/account/password_reset_from_key.html
Executable file
@@ -0,0 +1,35 @@
|
||||
{% extends "account/base_entrance.html" %}
|
||||
{% load i18n %}
|
||||
{% load allauth %}
|
||||
{% block head_title %}
|
||||
{% trans "Change Password" %}
|
||||
{% endblock head_title %}
|
||||
{% block content %}
|
||||
{% element h1 %}
|
||||
{% if token_fail %}
|
||||
{% trans "Bad Token" %}
|
||||
{% else %}
|
||||
{% trans "Change Password" %}
|
||||
{% endif %}
|
||||
{% endelement %}
|
||||
{% if token_fail %}
|
||||
{% url 'account_reset_password' as passwd_reset_url %}
|
||||
{% element p %}
|
||||
{% blocktrans %}The password reset link was invalid, possibly because it has already been used. Please request a <a href="{{ passwd_reset_url }}">new password reset</a>.{% endblocktrans %}
|
||||
{% endelement %}
|
||||
{% else %}
|
||||
{% element form method="post" action=action_url %}
|
||||
{% slot body %}
|
||||
{% csrf_token %}
|
||||
{{ redirect_field }}
|
||||
{% element fields form=form %}
|
||||
{% endelement %}
|
||||
{% endslot %}
|
||||
{% slot actions %}
|
||||
{% element button type="submit" name="action" %}
|
||||
{% trans 'Change Password' %}
|
||||
{% endelement %}
|
||||
{% endslot %}
|
||||
{% endelement %}
|
||||
{% endif %}
|
||||
{% endblock content %}
|
||||
14
templates/account/password_reset_from_key_done.html
Executable file
14
templates/account/password_reset_from_key_done.html
Executable file
@@ -0,0 +1,14 @@
|
||||
{% extends "account/base_entrance.html" %}
|
||||
{% load i18n %}
|
||||
{% load allauth %}
|
||||
{% block head_title %}
|
||||
{% trans "Change Password" %}
|
||||
{% endblock head_title %}
|
||||
{% block content %}
|
||||
{% element h1 %}
|
||||
{% trans "Change Password" %}
|
||||
{% endelement %}
|
||||
{% element p %}
|
||||
{% trans 'Your password is now changed.' %}
|
||||
{% endelement %}
|
||||
{% endblock content %}
|
||||
25
templates/account/password_set.html
Executable file
25
templates/account/password_set.html
Executable file
@@ -0,0 +1,25 @@
|
||||
{% extends "account/base_manage_password.html" %}
|
||||
{% load i18n %}
|
||||
{% load allauth %}
|
||||
{% block head_title %}
|
||||
{% trans "Set Password" %}
|
||||
{% endblock head_title %}
|
||||
{% block content %}
|
||||
{% element h1 %}
|
||||
{% trans "Set Password" %}
|
||||
{% endelement %}
|
||||
{% url 'account_set_password' as action_url %}
|
||||
{% element form method="post" action=action_url %}
|
||||
{% slot body %}
|
||||
{% csrf_token %}
|
||||
{{ redirect_field }}
|
||||
{% element fields form=form %}
|
||||
{% endelement %}
|
||||
{% endslot %}
|
||||
{% slot actions %}
|
||||
{% element button type="submit" name="action" %}
|
||||
{% trans 'Set Password' %}
|
||||
{% endelement %}
|
||||
{% endslot %}
|
||||
{% endelement %}
|
||||
{% endblock content %}
|
||||
22
templates/account/reauthenticate.html
Executable file
22
templates/account/reauthenticate.html
Executable file
@@ -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" %}
|
||||
{% trans "Confirm" %}
|
||||
{% endelement %}
|
||||
{% endslot %}
|
||||
{% endelement %}
|
||||
{% endblock %}
|
||||
34
templates/account/request_login_code.html
Executable file
34
templates/account/request_login_code.html
Executable file
@@ -0,0 +1,34 @@
|
||||
{% extends "account/base_entrance.html" %}
|
||||
{% load i18n %}
|
||||
{% load allauth account %}
|
||||
{% block head_title %}
|
||||
{% translate "Sign In" %}
|
||||
{% endblock head_title %}
|
||||
{% block content %}
|
||||
{% element h1 %}
|
||||
{% translate "Mail me a sign-in code" %}
|
||||
{% endelement %}
|
||||
{% element p %}
|
||||
{% blocktranslate %}You will receive an email containing 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 %}
|
||||
{% element h2 %}
|
||||
{% url 'account_login' as login_url %}
|
||||
{% element button href=login_url tags="link" %}
|
||||
{% translate "Other sign-in options" %}
|
||||
{% endelement %}
|
||||
{% endelement %}
|
||||
{% endblock content %}
|
||||
38
templates/account/signup.html
Executable file
38
templates/account/signup.html
Executable file
@@ -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 "Sign Up" %}
|
||||
{% endelement %}
|
||||
{% setvar link %}
|
||||
<a href="{{ login_url }}">
|
||||
{% endsetvar %}
|
||||
{% setvar end_link %}
|
||||
</a>
|
||||
{% 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 %}
|
||||
{% 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 %}
|
||||
{% endif %}
|
||||
{% if SOCIALACCOUNT_ENABLED %}
|
||||
{% include "socialaccount/snippets/login.html" with page_layout="entrance" %}
|
||||
{% endif %}
|
||||
{% endblock content %}
|
||||
14
templates/account/signup_closed.html
Executable file
14
templates/account/signup_closed.html
Executable file
@@ -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 %}
|
||||
9
templates/account/snippets/already_logged_in.html
Executable file
9
templates/account/snippets/already_logged_in.html
Executable file
@@ -0,0 +1,9 @@
|
||||
{% load i18n %}
|
||||
{% load account %}
|
||||
{% load allauth %}
|
||||
{% user_display user as user_display %}
|
||||
{% element alert %}
|
||||
{% slot message %}
|
||||
<strong>{% blocktranslate %}Note{% endblocktranslate %}:</strong> {% blocktranslate %}You are already logged in as {{ user_display }}.{% endblocktranslate %}
|
||||
{% endslot %}
|
||||
{% endelement %}
|
||||
4
templates/account/snippets/warn_no_email.html
Executable file
4
templates/account/snippets/warn_no_email.html
Executable file
@@ -0,0 +1,4 @@
|
||||
{% load i18n allauth %}
|
||||
{% element p %}
|
||||
<strong>{% trans 'Warning:' %}</strong> {% trans "You currently do not have any email address set up. You should really add an email address so you can receive notifications, reset your password, etc." %}
|
||||
{% endelement %}
|
||||
14
templates/account/verification_sent.html
Executable file
14
templates/account/verification_sent.html
Executable file
@@ -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 %}
|
||||
25
templates/account/verified_email_required.html
Executable file
25
templates/account/verified_email_required.html
Executable file
@@ -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 %}<strong>Note:</strong> you can still <a href="{{ email_url }}">change your email address</a>.{% endblocktrans %}
|
||||
{% endelement %}
|
||||
{% endblock content %}
|
||||
Reference in New Issue
Block a user