-
48 | {% for message in messages %}
49 |
- {{message}} 50 | {% endfor %} 51 |
├── account ├── footer.html ├── messages │ ├── logged_out.txt │ ├── password_set.txt │ ├── email_confirmed.txt │ ├── email_deleted.txt │ ├── password_changed.txt │ ├── primary_email_set.txt │ ├── email_confirmation_sent.txt │ ├── unverified_primary_email.txt │ ├── cannot_delete_primary_email.txt │ └── logged_in.txt ├── email │ ├── email_confirmation_signup_message.txt │ ├── email_confirmation_signup_subject.txt │ ├── password_reset_key_subject.txt │ ├── email_confirmation_subject.txt │ ├── base_message.txt │ ├── email_confirmation_message.txt │ └── password_reset_key_message.txt ├── snippets │ └── already_logged_in.html ├── account_inactive.html ├── password_reset_from_key_done.html ├── signup_closed.html ├── base.html ├── verification_sent.html ├── password_reset_done.html ├── password_set.html ├── logout.html ├── password_change.html ├── signup.html ├── verified_email_required.html ├── password_reset.html ├── header.html ├── password_reset_from_key.html ├── email_confirm.html ├── login.html └── email.html ├── README.md └── base.html /account/footer.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /account/messages/logged_out.txt: -------------------------------------------------------------------------------- 1 | {% load i18n %} 2 | {% blocktrans %}You have signed out.{% endblocktrans %} 3 | -------------------------------------------------------------------------------- /account/email/email_confirmation_signup_message.txt: -------------------------------------------------------------------------------- 1 | {% include "account/email/email_confirmation_message.txt" %} 2 | -------------------------------------------------------------------------------- /account/email/email_confirmation_signup_subject.txt: -------------------------------------------------------------------------------- 1 | {% include "account/email/email_confirmation_subject.txt" %} 2 | -------------------------------------------------------------------------------- /account/messages/password_set.txt: -------------------------------------------------------------------------------- 1 | {% load i18n %} 2 | {% blocktrans %}Password successfully set.{% endblocktrans %} 3 | -------------------------------------------------------------------------------- /account/messages/email_confirmed.txt: -------------------------------------------------------------------------------- 1 | {% load i18n %} 2 | {% blocktrans %}You have confirmed {{email}}.{% endblocktrans %} 3 | -------------------------------------------------------------------------------- /account/messages/email_deleted.txt: -------------------------------------------------------------------------------- 1 | {% load i18n %} 2 | {% blocktrans %}Removed e-mail address {{email}}.{% endblocktrans %} 3 | -------------------------------------------------------------------------------- /account/messages/password_changed.txt: -------------------------------------------------------------------------------- 1 | {% load i18n %} 2 | {% blocktrans %}Password successfully changed.{% endblocktrans %} 3 | -------------------------------------------------------------------------------- /account/messages/primary_email_set.txt: -------------------------------------------------------------------------------- 1 | {% load i18n %} 2 | {% blocktrans %}Primary e-mail address set.{% endblocktrans %} 3 | -------------------------------------------------------------------------------- /account/messages/email_confirmation_sent.txt: -------------------------------------------------------------------------------- 1 | {% load i18n %} 2 | {% blocktrans %}Confirmation e-mail sent to {{email}}.{% endblocktrans %} 3 | -------------------------------------------------------------------------------- /account/messages/unverified_primary_email.txt: -------------------------------------------------------------------------------- 1 | {% load i18n %} 2 | {% blocktrans %}Your primary e-mail address must be verified.{% endblocktrans %} 3 | -------------------------------------------------------------------------------- /account/messages/cannot_delete_primary_email.txt: -------------------------------------------------------------------------------- 1 | {% load i18n %} 2 | {% blocktrans %}You cannot remove your primary e-mail address ({{email}}).{% endblocktrans %} 3 | -------------------------------------------------------------------------------- /account/email/password_reset_key_subject.txt: -------------------------------------------------------------------------------- 1 | {% load i18n %} 2 | {% autoescape off %} 3 | {% blocktrans %}Password Reset E-mail{% endblocktrans %} 4 | {% endautoescape %} 5 | -------------------------------------------------------------------------------- /account/email/email_confirmation_subject.txt: -------------------------------------------------------------------------------- 1 | {% load i18n %} 2 | {% autoescape off %} 3 | {% blocktrans %}Please Confirm Your E-mail Address{% endblocktrans %} 4 | {% endautoescape %} 5 | -------------------------------------------------------------------------------- /account/messages/logged_in.txt: -------------------------------------------------------------------------------- 1 | {% load account %} 2 | {% load i18n %} 3 | {% user_display user as name %} 4 | {% blocktrans %}Successfully signed in as {{name}}.{% endblocktrans %} 5 | -------------------------------------------------------------------------------- /account/snippets/already_logged_in.html: -------------------------------------------------------------------------------- 1 | {% load i18n %} 2 | {% load account %} 3 | 4 | {% user_display user as user_display %} 5 |
{% trans "Note" %}: {% blocktrans %}you are already logged in as {{ user_display }}.{% endblocktrans %}
6 | -------------------------------------------------------------------------------- /account/account_inactive.html: -------------------------------------------------------------------------------- 1 | {% extends "account/base.html" %} 2 | 3 | {% load i18n %} 4 | 5 | {% block head_title %}{% trans "Account Inactive" %}{% endblock %} 6 | 7 | {% block accounts_content %} 8 |{% trans "This account is inactive." %}
11 | {% endblock %} 12 | -------------------------------------------------------------------------------- /account/password_reset_from_key_done.html: -------------------------------------------------------------------------------- 1 | {% extends "account/base.html" %} 2 | 3 | {% load i18n %} 4 | {% block head_title %}{% trans "Change Password" %}{% endblock %} 5 | 6 | {% block accounts_content %} 7 |{% trans 'Your password is now changed.' %}
9 | {% endblock %} 10 | -------------------------------------------------------------------------------- /account/signup_closed.html: -------------------------------------------------------------------------------- 1 | {% extends "account/base.html" %} 2 | 3 | {% load i18n %} 4 | 5 | {% block head_title %}{% trans "Sign Up Closed" %}{% endblock %} 6 | 7 | {% block accounts_content %} 8 |{% trans "We are sorry, but the sign up is currently closed." %}
11 | {% endblock %} 12 | -------------------------------------------------------------------------------- /account/email/base_message.txt: -------------------------------------------------------------------------------- 1 | {% load i18n %}{% autoescape off %}{% blocktrans with site_name=current_site.name %}Hello from {{ site_name }}!{% endblocktrans %} 2 | 3 | {% block accounts_content %}{% endblock %} 4 | 5 | {% blocktrans with site_name=current_site.name site_domain=current_site.domain %}Thank you for using {{ site_name }}! 6 | {{ site_domain }}{% endblocktrans %} 7 | {% endautoescape %} 8 | -------------------------------------------------------------------------------- /account/base.html: -------------------------------------------------------------------------------- 1 | {% extends 'base.html' %} 2 | 3 | {% block content %} 4 |{% blocktrans %}We have sent an e-mail to you for verification. Follow the link provided to finalize the signup process. Please contact us if you do not receive it within a few minutes.{% endblocktrans %}
11 | 12 | {% endblock %} 13 | -------------------------------------------------------------------------------- /account/email/email_confirmation_message.txt: -------------------------------------------------------------------------------- 1 | {% extends "account/email/base_message.txt" %} 2 | {% load account %} 3 | {% load i18n %} 4 | 5 | {% block accounts_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 e-mail because user {{ user_display }} has given your e-mail address to register an account on {{ site_domain }}. 6 | 7 | To confirm this is correct, go to {{ activate_url }}{% endblocktrans %}{% endautoescape %}{% endblock %} 8 | -------------------------------------------------------------------------------- /account/password_reset_done.html: -------------------------------------------------------------------------------- 1 | {% extends "account/base.html" %} 2 | 3 | {% load i18n %} 4 | {% load account %} 5 | 6 | {% block head_title %}{% trans "Password Reset" %}{% endblock %} 7 | 8 | {% block accounts_content %} 9 |{% blocktrans %}We have sent you an e-mail. Please contact us if you do not receive it within a few minutes.{% endblocktrans %}
16 | {% endblock %} 17 | -------------------------------------------------------------------------------- /account/email/password_reset_key_message.txt: -------------------------------------------------------------------------------- 1 | {% extends "account/email/base_message.txt" %} 2 | {% load i18n %} 3 | 4 | {% block accounts_content %}{% autoescape off %}{% blocktrans %}You're receiving this e-mail because you or someone else has requested a password for your user account. 5 | It can be safely ignored if you did not request a password reset. Click the link below to reset your password.{% endblocktrans %} 6 | 7 | {{ password_reset_url }}{% if username %} 8 | 9 | {% blocktrans %}In case you forgot, your username is {{ username }}.{% endblocktrans %}{% endif %}{% endautoescape %}{% endblock %} 10 | -------------------------------------------------------------------------------- /account/password_set.html: -------------------------------------------------------------------------------- 1 | {% extends "account/base.html" %} 2 | 3 | {% load i18n %} 4 | {% load django_bootstrap5 %} 5 | 6 | {% block head_title %}{% trans "Set Password" %}{% endblock %} 7 | {% block title %}{% trans "Set Password" %}{% endblock %} 8 | 9 | {% block accounts_content %} 10 |{% trans 'Are you sure you want to sign out?' %}
13 | 14 | 22 | 23 | 24 | {% endblock %} 25 | -------------------------------------------------------------------------------- /account/password_change.html: -------------------------------------------------------------------------------- 1 | {% extends "account/base.html" %} 2 | 3 | {% load i18n %} 4 | {% load django_bootstrap5 %} 5 | 6 | {% block head_title %}{% trans "Change Password" %}{% endblock %} 7 | {% block title %}{% trans "Change Password" %}{% endblock %} 8 | 9 | {% block accounts_content %} 10 |{% blocktrans %}Already have an account? Then please sign in.{% endblocktrans %}
14 | 15 | 24 | 25 | {% endblock %} 26 | -------------------------------------------------------------------------------- /account/verified_email_required.html: -------------------------------------------------------------------------------- 1 | {% extends "account/base.html" %} 2 | 3 | {% load i18n %} 4 | 5 | {% block head_title %}{% trans "Verify Your E-mail Address" %}{% endblock %} 6 | 7 | {% block accounts_content %} 8 |{% blocktrans %}This part of the site requires us to verify that 13 | you are who you claim to be. For this purpose, we require that you 14 | verify ownership of your e-mail address. {% endblocktrans %}
15 | 16 |{% blocktrans %}We have sent an e-mail to you for 17 | verification. Please click on the link inside this e-mail. Please 18 | contact us if you do not receive it within a few minutes.{% endblocktrans %}
19 | 20 |{% blocktrans %}Note: you can still change your e-mail address.{% endblocktrans %}
21 | 22 | 23 | {% endblock %} 24 | -------------------------------------------------------------------------------- /account/password_reset.html: -------------------------------------------------------------------------------- 1 | {% extends "account/base.html" %} 2 | 3 | {% load i18n %} 4 | {% load account %} 5 | {% load django_bootstrap5 %} 6 | 7 | {% block head_title %}{% trans "Password Reset" %}{% endblock %} 8 | {% block title %}{% trans "Password Reset" %}{% endblock %} 9 | 10 | {% block accounts_content %} 11 | 12 |{% trans "Forgotten your password? Enter your e-mail address below, and we'll send you an e-mail allowing you to reset it." %}
18 | 19 | 25 | 26 |{% blocktrans %}Please contact us if you have any trouble resetting your password.{% endblocktrans %}
27 | {% endblock %} 28 | -------------------------------------------------------------------------------- /account/header.html: -------------------------------------------------------------------------------- 1 | {% load i18n %} 2 | {% load account %} 3 |{% blocktrans %}The password reset link was invalid, possibly because it has already been used. Please request a new password reset.{% endblocktrans %}
15 | {% else %} 16 | {% if form %} 17 | 22 | {% else %} 23 |{% trans 'Your password is now changed.' %}
24 | {% endif %} 25 | {% endif %} 26 | {% endblock %} 27 | -------------------------------------------------------------------------------- /account/email_confirm.html: -------------------------------------------------------------------------------- 1 | {% extends "account/base.html" %} 2 | {% load django_bootstrap5 %} 3 | 4 | {% load i18n %} 5 | {% load account %} 6 | 7 | {% block head_title %}{% trans "Confirm E-mail Address" %}{% endblock %} 8 | 9 | 10 | {% block accounts_content %} 11 |{% blocktrans with confirmation.email_address.email as email %}Please confirm that {{ email }} is an e-mail address for user {{ user_display }}.{% endblocktrans %}
18 | 19 | 24 | 25 | {% else %} 26 | 27 | {% url 'account_email' as email_url %} 28 | 29 |{% blocktrans %}This e-mail confirmation link expired or is invalid. Please issue a new e-mail confirmation request.{% endblocktrans %}
30 | 31 | {% endif %} 32 | 33 | {% endblock %} 34 | -------------------------------------------------------------------------------- /account/login.html: -------------------------------------------------------------------------------- 1 | {% extends "account/base.html" %} 2 | 3 | {% load i18n %} 4 | {% load account socialaccount %} 5 | {% load django_bootstrap5 %} 6 | 7 | {% block head_title %}{% trans "Sign In" %}{% endblock %} 8 | {% block title %}{% trans "Sign In" %}{% endblock %} 9 | 10 | {% block accounts_content %} 11 | 12 |{% blocktrans with site.name as site_name %}Please sign in with one 18 | of your existing third party accounts. Or, sign up 19 | for a {{ site_name }} account and sign in below:{% endblocktrans %}
20 | 21 | 30 | 31 | {% include "socialaccount/snippets/login_extra.html" %} 32 | 33 | {% else %} 34 |{% blocktrans %}If you have not created an account yet, then please 35 | sign up first.{% endblocktrans %}
36 | {% endif %} 37 | 38 | 48 | 49 | {% endblock %} 50 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # django-allauth-bootstrap5-templates 2 | Bootstrap templates for django-allauth 3 | 4 | Wonderful [django-allauth](https://github.com/pennersr/django-allauth) templates are not really friendly with bootstrap. 5 | 6 | This repository contains bootstrapped templates by [django-bootstrap5](https://github.com/zostera/django-bootstrap5) for django-allouth. 7 | 8 | Requirements: 9 | ```bash 10 | pip install django-allauth django-bootstrap5 11 | ``` 12 | 13 | Clone the repository or [download](https://stackoverflow.com/questions/7106012/download-a-single-folder-or-directory-from-a-github-repo) `account` directory 14 | 15 | To use the templates just copy `account` directory into your templates folder like this: 16 | 17 | ``` 18 | templates 19 | ├── account 20 | │ ├── account_inactive.html 21 | │ ├── base.html 22 | │ ├── email 23 | │ │ ├── base_message.txt 24 | │ │ ├── email_confirmation_message.txt 25 | │ │ ├── email_confirmation_signup_message.txt 26 | │ │ ├── email_confirmation_signup_subject.txt 27 | │ │ ├── email_confirmation_subject.txt 28 | │ │ ├── password_reset_key_message.txt 29 | │ │ └── password_reset_key_subject.txt 30 | │ ├── email.html 31 | │ ├── email_confirm.html 32 | │ ├── footer.html 33 | │ ├── header.html 34 | │ ├── login.html 35 | │ ├── logout.html 36 | │ ├── messages 37 | │ │ ├── cannot_delete_primary_email.txt 38 | │ │ ├── email_confirmation_sent.txt 39 | │ │ ├── email_confirmed.txt 40 | │ │ ├── email_deleted.txt 41 | │ │ ├── logged_in.txt 42 | │ │ ├── logged_out.txt 43 | │ │ ├── password_changed.txt 44 | │ │ ├── password_set.txt 45 | │ │ ├── primary_email_set.txt 46 | │ │ └── unverified_primary_email.txt 47 | │ ├── password_change.html 48 | │ ├── password_reset.html 49 | │ ├── password_reset_done.html 50 | │ ├── password_reset_from_key.html 51 | │ ├── password_reset_from_key_done.html 52 | │ ├── password_set.html 53 | │ ├── signup.html 54 | │ ├── signup_closed.html 55 | │ ├── snippets 56 | │ │ └── already_logged_in.html 57 | │ ├── verification_sent.html 58 | │ └── verified_email_required.html 59 | └── base.html 60 | ``` 61 | 62 | Then feel free to modify the templates and enjoy the result :art: 63 | 64 |  65 | -------------------------------------------------------------------------------- /base.html: -------------------------------------------------------------------------------- 1 | {% load static %} 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 |{% trans 'The following e-mail addresses are associated with your account:' %}
13 | 14 | 46 | 47 | {% else %} 48 |{% trans 'Warning:'%} {% trans "You currently do not have any e-mail address set up. You should really add an e-mail address so you can receive notifications, reset your password, etc." %}
49 | 50 | {% endif %} 51 | 52 | {% if can_add_email %} 53 |