Add missing django-allauth templates to prepare for styling
This commit is contained in:
parent
d942632811
commit
68932b75b6
40 changed files with 552 additions and 0 deletions
14
theme/templates/account/new/account_inactive.html
Normal file
14
theme/templates/account/new/account_inactive.html
Normal 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 %}
|
||||
|
|
@ -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 %}<a href="mailto:{{ email }}">{{ email }}</a>{% endblock %}
|
||||
{% block action_url %}
|
||||
{% url 'account_email_verification_sent' %}
|
||||
{% endblock %}
|
||||
{% block extra_tags %}email,verification{% endblock %}
|
||||
20
theme/templates/account/new/confirm_login_code.html
Normal file
20
theme/templates/account/new/confirm_login_code.html
Normal file
|
|
@ -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 %}
|
||||
<a href="mailto:{{ email }}">{{ email }}</a>
|
||||
{% else %}
|
||||
<a href="tel:{{ phone }}">{{ phone }}</a>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
{% block action_url %}
|
||||
{% url 'account_confirm_login_code' %}
|
||||
{% endblock %}
|
||||
{% block extra_tags %}login{% endblock %}
|
||||
14
theme/templates/account/new/confirm_password_reset_code.html
Normal file
14
theme/templates/account/new/confirm_password_reset_code.html
Normal file
|
|
@ -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 %}<a href="mailto:{{ email }}">{{ email }}</a>{% endblock %}
|
||||
{% block action_url %}
|
||||
{% url 'account_confirm_password_reset_code' %}
|
||||
{% endblock %}
|
||||
{% block extra_tags %}email,verification{% endblock %}
|
||||
|
|
@ -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 %}<a href="tel:{{ phone }}">{{ phone }}</a>{% endblock %}
|
||||
{% block action_url %}
|
||||
{% url 'account_verify_phone' %}
|
||||
{% endblock %}
|
||||
{% block extra_tags %}phone,verification{% endblock %}
|
||||
83
theme/templates/account/new/email.html
Normal file
83
theme/templates/account/new/email.html
Normal file
|
|
@ -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 %}
|
||||
<script src="{% static 'account/js/account.js' %}"></script>
|
||||
<script src="{% static 'account/js/onload.js' %}"></script>
|
||||
<script data-allauth-onload="allauth.account.forms.manageEmailForm" type="application/json">{
|
||||
"i18n": {"confirmDelete": "{% trans 'Do you really want to remove the selected email address?' %}"}
|
||||
}
|
||||
</script>
|
||||
{% endblock extra_body %}
|
||||
68
theme/templates/account/new/email_change.html
Normal file
68
theme/templates/account/new/email_change.html
Normal 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
theme/templates/account/new/email_confirm.html
Normal file
39
theme/templates/account/new/email_confirm.html
Normal 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 %}
|
||||
22
theme/templates/account/new/reauthenticate.html
Normal file
22
theme/templates/account/new/reauthenticate.html
Normal 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" tags="primary,reauthenticate" %}
|
||||
{% trans "Confirm" %}
|
||||
{% endelement %}
|
||||
{% endslot %}
|
||||
{% endelement %}
|
||||
{% endblock %}
|
||||
32
theme/templates/account/new/request_login_code.html
Normal file
32
theme/templates/account/new/request_login_code.html
Normal file
|
|
@ -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 %}
|
||||
38
theme/templates/account/new/signup_by_passkey.html
Normal file
38
theme/templates/account/new/signup_by_passkey.html
Normal 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 "Passkey 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 %}
|
||||
{% 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 %}
|
||||
14
theme/templates/account/new/signup_closed.html
Normal file
14
theme/templates/account/new/signup_closed.html
Normal 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 %}
|
||||
14
theme/templates/account/new/verification_sent.html
Normal file
14
theme/templates/account/new/verification_sent.html
Normal 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
theme/templates/account/new/verified_email_required.html
Normal file
25
theme/templates/account/new/verified_email_required.html
Normal 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 %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue