diff --git a/gnuviechadmin/templates/account/account_inactive.html b/gnuviechadmin/templates/account/account_inactive.html new file mode 100644 index 0000000..9bb2dbf --- /dev/null +++ b/gnuviechadmin/templates/account/account_inactive.html @@ -0,0 +1,9 @@ +{% extends "account/base.html" %} + +{% load i18n %} +{% block title %}{{ block.super }} - {% trans "Account Inactive" %}{% endblock title %} +{% block page_title %}{% trans "Account Inactive" %}{% endblock page_title %} + +{% block content %} +
{% trans "This account is inactive." %}
+{% endblock %} diff --git a/gnuviechadmin/templates/account/base.html b/gnuviechadmin/templates/account/base.html new file mode 100644 index 0000000..94d9808 --- /dev/null +++ b/gnuviechadmin/templates/account/base.html @@ -0,0 +1 @@ +{% extends "base.html" %} diff --git a/gnuviechadmin/templates/account/email.html b/gnuviechadmin/templates/account/email.html new file mode 100644 index 0000000..23fb02b --- /dev/null +++ b/gnuviechadmin/templates/account/email.html @@ -0,0 +1,75 @@ +{% extends "account/base.html" %} +{% load i18n crispy_forms_tags %} +{% block title %}{% trans "Account" %}{% endblock title %} +{% block page_title %}{% trans "E-mail Addresses" %}{% endblock page_title %} + +{% block content %} +{% if user.emailaddress_set.all %} +{% trans 'The following e-mail addresses are associated with your account:' %}
+ +{% else %} +{% 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." %}
+{% endif %} + +{% blocktrans with confirmation.email_address.email as email %}Please confirm that {{ email }} is an e-mail address for user {{ user_display }}.{% endblocktrans %}
+ +{% else %} + {% url 'account_email' as email_url %} +{% blocktrans %}This e-mail confirmation link expired or is invalid. Please issue a new e-mail confirmation request.{% endblocktrans %}
+{% endif %} +{% endblock content %} diff --git a/gnuviechadmin/templates/account/email_confirmed.html b/gnuviechadmin/templates/account/email_confirmed.html new file mode 100644 index 0000000..a6b70bb --- /dev/null +++ b/gnuviechadmin/templates/account/email_confirmed.html @@ -0,0 +1,10 @@ +{% extends "account/base.html" %} +{% load account i18n %} + +{% block title %}{{ block.super }} - {% trans "Confirm E-mail Address" %}{% endblock title %} +{% block page_title %}{% trans "Confirm E-mail Address" %}{% endblock page_title %} + +{% block content %} +{% user_display confirmation.email_address.user as user_display %} +{% blocktrans with confirmation.email_address.email as email %}You have confirmed that {{ email }} is an e-mail address for user {{ user_display }}.{% endblocktrans %}
+{% endblock content %} diff --git a/gnuviechadmin/templates/account/login.html b/gnuviechadmin/templates/account/login.html new file mode 100644 index 0000000..f3cb8f1 --- /dev/null +++ b/gnuviechadmin/templates/account/login.html @@ -0,0 +1,35 @@ +{% extends "account/base.html" %} +{% load account crispy_forms_tags i18n %} + +{% block title %}{{ block.super }} - {% trans "Sign In" %}{% endblock title %} +{% block page_title %}{% trans "Sign In" %}{% endblock page_title %} + +{% block content %} +{% if socialaccount.providers %} +{% blocktrans with site.name as site_name %}Please sign in with one +of your existing third party accounts. Or, sign up +for a {{site_name}} account and sign in below:{% endblocktrans %}
+ +{% trans 'or' %}
+{% else %} +{% blocktrans %}If you have not created an account yet, then please +sign up first.{% endblocktrans %}
+{% endif %} + + +{% endblock %} + +{% block extra_js %} +{% include "socialaccount/snippets/login_extra.html" %} +{% endblock extra_js %} diff --git a/gnuviechadmin/templates/account/logout.html b/gnuviechadmin/templates/account/logout.html new file mode 100644 index 0000000..22f66de --- /dev/null +++ b/gnuviechadmin/templates/account/logout.html @@ -0,0 +1,17 @@ +{% extends "account/base.html" %} +{% load i18n %} + +{% block title %}{{ block.super }} - {% trans "Sign Out" %}{% endblock title %} +{% block page_title %}{% trans "Sign Out" %}{% endblock page_title %} + +{% block content %} +{% trans 'Are you sure you want to sign out?' %}
+ + +{% endblock %} diff --git a/gnuviechadmin/templates/account/messages/cannot_delete_primary_email.txt b/gnuviechadmin/templates/account/messages/cannot_delete_primary_email.txt new file mode 100644 index 0000000..de55571 --- /dev/null +++ b/gnuviechadmin/templates/account/messages/cannot_delete_primary_email.txt @@ -0,0 +1,2 @@ +{% load i18n %} +{% blocktrans %}You cannot remove your primary e-mail address ({{email}}).{% endblocktrans %} diff --git a/gnuviechadmin/templates/account/messages/email_confirmation_sent.txt b/gnuviechadmin/templates/account/messages/email_confirmation_sent.txt new file mode 100644 index 0000000..7a526f8 --- /dev/null +++ b/gnuviechadmin/templates/account/messages/email_confirmation_sent.txt @@ -0,0 +1,2 @@ +{% load i18n %} +{% blocktrans %}Confirmation e-mail sent to {{email}}.{% endblocktrans %} diff --git a/gnuviechadmin/templates/account/messages/email_confirmed.txt b/gnuviechadmin/templates/account/messages/email_confirmed.txt new file mode 100644 index 0000000..3427a4d --- /dev/null +++ b/gnuviechadmin/templates/account/messages/email_confirmed.txt @@ -0,0 +1,2 @@ +{% load i18n %} +{% blocktrans %}You have confirmed {{email}}.{% endblocktrans %} diff --git a/gnuviechadmin/templates/account/messages/email_deleted.txt b/gnuviechadmin/templates/account/messages/email_deleted.txt new file mode 100644 index 0000000..5cf7cf9 --- /dev/null +++ b/gnuviechadmin/templates/account/messages/email_deleted.txt @@ -0,0 +1,2 @@ +{% load i18n %} +{% blocktrans %}Removed e-mail address {{email}}.{% endblocktrans %} diff --git a/gnuviechadmin/templates/account/messages/logged_in.txt b/gnuviechadmin/templates/account/messages/logged_in.txt new file mode 100644 index 0000000..f49248a --- /dev/null +++ b/gnuviechadmin/templates/account/messages/logged_in.txt @@ -0,0 +1,4 @@ +{% load account %} +{% load i18n %} +{% user_display user as name %} +{% blocktrans %}Successfully signed in as {{name}}.{% endblocktrans %} diff --git a/gnuviechadmin/templates/account/messages/logged_out.txt b/gnuviechadmin/templates/account/messages/logged_out.txt new file mode 100644 index 0000000..2cd4627 --- /dev/null +++ b/gnuviechadmin/templates/account/messages/logged_out.txt @@ -0,0 +1,2 @@ +{% load i18n %} +{% blocktrans %}You have signed out.{% endblocktrans %} diff --git a/gnuviechadmin/templates/account/messages/password_changed.txt b/gnuviechadmin/templates/account/messages/password_changed.txt new file mode 100644 index 0000000..bd5801c --- /dev/null +++ b/gnuviechadmin/templates/account/messages/password_changed.txt @@ -0,0 +1,2 @@ +{% load i18n %} +{% blocktrans %}Password successfully changed.{% endblocktrans %} diff --git a/gnuviechadmin/templates/account/messages/password_set.txt b/gnuviechadmin/templates/account/messages/password_set.txt new file mode 100644 index 0000000..e36cef8 --- /dev/null +++ b/gnuviechadmin/templates/account/messages/password_set.txt @@ -0,0 +1,3 @@ +{% load i18n %} +{% blocktrans %}Password successfully set.{% endblocktrans %} + diff --git a/gnuviechadmin/templates/account/messages/primary_email_set.txt b/gnuviechadmin/templates/account/messages/primary_email_set.txt new file mode 100644 index 0000000..b6a70dd --- /dev/null +++ b/gnuviechadmin/templates/account/messages/primary_email_set.txt @@ -0,0 +1,2 @@ +{% load i18n %} +{% blocktrans %}Primary e-mail address set.{% endblocktrans %} diff --git a/gnuviechadmin/templates/account/messages/unverified_primary_email.txt b/gnuviechadmin/templates/account/messages/unverified_primary_email.txt new file mode 100644 index 0000000..9c9d0d8 --- /dev/null +++ b/gnuviechadmin/templates/account/messages/unverified_primary_email.txt @@ -0,0 +1,2 @@ +{% load i18n %} +{% blocktrans %}Your primary e-mail address must be verified.{% endblocktrans %} diff --git a/gnuviechadmin/templates/account/password_change.html b/gnuviechadmin/templates/account/password_change.html new file mode 100644 index 0000000..86e153a --- /dev/null +++ b/gnuviechadmin/templates/account/password_change.html @@ -0,0 +1,13 @@ +{% extends "account/base.html" %} +{% load i18n crispy_forms_tags %} + +{% block title %}{{ block.super }} - {% trans "Change Password" %}{% endblock title %} +{% block page_title %}{% trans "Change Password" %}{% endblock page_title %} + +{% block content %} + +{% endblock %} diff --git a/gnuviechadmin/templates/account/password_reset.html b/gnuviechadmin/templates/account/password_reset.html new file mode 100644 index 0000000..90f15f1 --- /dev/null +++ b/gnuviechadmin/templates/account/password_reset.html @@ -0,0 +1,21 @@ +{% extends "account/base.html" %} +{% load account i18n crispy_forms_tags %} + +{% block title %}{{ block.super }} - {% trans "Password Reset" %}{% endblock title %} +{% block page_title %}{% trans "Password Reset" %}{% endblock page_title %} + +{% block content %} + {% if user.is_authenticated %} + {% include "account/snippets/already_logged_in.html" %} + {% endif %} + +{% trans "Forgotten your password? Enter your e-mail address below, and we'll send you an e-mail allowing you to reset it." %}
+ + + +{% blocktrans %}Please contact us if you have any trouble resetting your password.{% endblocktrans %}
+{% endblock %} diff --git a/gnuviechadmin/templates/account/password_reset_done.html b/gnuviechadmin/templates/account/password_reset_done.html new file mode 100644 index 0000000..5bbc142 --- /dev/null +++ b/gnuviechadmin/templates/account/password_reset_done.html @@ -0,0 +1,12 @@ +{% extends "account/base.html" %} +{% load account i18n %} + +{% block title %}{{ block.super }} - {% trans "Password Reset" %}{% endblock title %} +{% block page_title %}{% trans "Password Reset" %}{% endblocktrans page_title %} + +{% block content %} +{% if user.is_authenticated %} + {% include "account/snippets/already_logged_in.html" %} +{% endif %} +{% blocktrans %}We have sent you an e-mail. Please contact us if you do not receive it within a few minutes.{% endblocktrans %}
+{% endblock %} diff --git a/gnuviechadmin/templates/account/password_reset_from_key.html b/gnuviechadmin/templates/account/password_reset_from_key.html new file mode 100644 index 0000000..e4dd274 --- /dev/null +++ b/gnuviechadmin/templates/account/password_reset_from_key.html @@ -0,0 +1,21 @@ +{% extends "account/base.html" %} +{% load i18n crispy_forms_tags %} +{% block title %}{{ block.super }} - {% trans "Change Password" %}{% endblock title %} +{% block page_title %}{% if token_fail %}{% trans "Bad Token" %}{% else %}{% trans "Change Password" %}{% endif %}{% endblock page_title %} + +{% block content %} +{% if token_fail %} + {% url 'account_reset_password' as passwd_reset_url %} +{% blocktrans %}The password reset link was invalid, possibly because it has already been used. Please request a new password reset.{% endblocktrans %}
+{% else %} + {% if form %} + + {% else %} +{% trans 'Your password is now changed.' %}
+ {% endif %} +{% endif %} +{% endblock content %} diff --git a/gnuviechadmin/templates/account/password_reset_from_key_done.html b/gnuviechadmin/templates/account/password_reset_from_key_done.html new file mode 100644 index 0000000..d3bfabe --- /dev/null +++ b/gnuviechadmin/templates/account/password_reset_from_key_done.html @@ -0,0 +1,8 @@ +{% extends "account/base.html" %} +{% load i18n %} +{% block title %}{{ block.super }} - {% trans "Change Password" %}{% endblock title %} +{% block page_title %}{% trans "Change Password" %}{% endblock page_title %} + +{% block content %} +{% trans 'Your password is now changed.' %}
+{% endblock %} diff --git a/gnuviechadmin/templates/account/password_set.html b/gnuviechadmin/templates/account/password_set.html new file mode 100644 index 0000000..3bd0759 --- /dev/null +++ b/gnuviechadmin/templates/account/password_set.html @@ -0,0 +1,13 @@ +{% extends "account/base.html" %} +{% load i18n crispy_forms_tags %} + +{% block title %}{{ block.super }} - {% trans "Set Password" %}{% endblock title %} +{% block page_title %}{% trans "Set Password" %}{% endblock page_title %} + +{% block content %} + +{% endblock %} diff --git a/gnuviechadmin/templates/account/signup.html b/gnuviechadmin/templates/account/signup.html new file mode 100644 index 0000000..4f4abf5 --- /dev/null +++ b/gnuviechadmin/templates/account/signup.html @@ -0,0 +1,19 @@ +{% extends "account/base.html" %} +{% load i18n crispy_forms_tags %} + +{% block title %}{{ block.super }} - {% trans "Signup" %}{% endblock title %} +{% block page_title %}{% trans "Sign Up" %}{% endblock page_title %} + +{% block content %} +{% blocktrans %}Already have an account? Then please sign in.{% endblocktrans %}
+ +{% endblock %} + + diff --git a/gnuviechadmin/templates/account/signup_closed.html b/gnuviechadmin/templates/account/signup_closed.html new file mode 100644 index 0000000..c40efe5 --- /dev/null +++ b/gnuviechadmin/templates/account/signup_closed.html @@ -0,0 +1,9 @@ +{% extends "account/base.html" %} +{% load i18n %} + +{% block title %}{{ block.super }} - {% trans "Sign Up Closed" %}{% endblock title %} +{% block page_title %}{% trans "Sign Up Closed" %}{% endblock page_title %} + +{% block content %} +{% trans "We are sorry, but the sign up is currently closed." %}
+{% endblock %} diff --git a/gnuviechadmin/templates/account/snippets/already_logged_in.html b/gnuviechadmin/templates/account/snippets/already_logged_in.html new file mode 100644 index 0000000..fd4db27 --- /dev/null +++ b/gnuviechadmin/templates/account/snippets/already_logged_in.html @@ -0,0 +1,4 @@ +{% load account i18n %} + +{% user_display user as user_display %} +{% trans "Note" %}: {% blocktrans %}you are already logged in as {{ user_display }}.{% endblocktrans %}
diff --git a/gnuviechadmin/templates/account/verification_sent.html b/gnuviechadmin/templates/account/verification_sent.html new file mode 100644 index 0000000..1811d9e --- /dev/null +++ b/gnuviechadmin/templates/account/verification_sent.html @@ -0,0 +1,10 @@ +{% extends "account/base.html" %} + +{% load i18n %} + +{% block title %}{{ block.super }} - {% trans "Verify Your E-mail Address" %}{% endblock title %} +{% block page_title %}{% trans "Verify Your E-mail Address" %}{% endblock page_title %} + +{% block content %} +{% 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 %}
+{% endblock %} diff --git a/gnuviechadmin/templates/account/verified_email_required.html b/gnuviechadmin/templates/account/verified_email_required.html new file mode 100644 index 0000000..eb3c5e1 --- /dev/null +++ b/gnuviechadmin/templates/account/verified_email_required.html @@ -0,0 +1,18 @@ +{% extends "account/base.html" %} +{% load i18n %} + +{% block title %}{{ block.super }} - {% trans "Verify Your E-mail Address" %}{% endblock title %} +{% block page_title %}{% trans "Verify Your E-mail Address" %}{% endblock %} + +{% block content %} +{% url 'account_email' as email_url %} +{% 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 e-mail address. {% endblocktrans %}
+ +{% blocktrans %}We have sent an e-mail to you for +verification. Please click on the link inside this e-mail. Please +contact us if you do not receive it within a few minutes.{% endblocktrans %}
+ +{% blocktrans %}Note: you can still change your e-mail address.{% endblocktrans %}
+{% endblock %} diff --git a/gnuviechadmin/templates/socialaccount/authentication_error.html b/gnuviechadmin/templates/socialaccount/authentication_error.html new file mode 100644 index 0000000..e258760 --- /dev/null +++ b/gnuviechadmin/templates/socialaccount/authentication_error.html @@ -0,0 +1,9 @@ +{% extends "socialaccount/base.html" %} +{% load i18n %} + +{% block title %}{{ block.super }} - {% trans "Social Network Login Failure" %}{% endblock title %} +{% block page_title %}{% trans "Social Network Login Failure" %}{% endblock page_title %} + +{% block content %} +{% trans "An error occurred while attempting to login via your social network account." %}
+{% endblock %} diff --git a/gnuviechadmin/templates/socialaccount/base.html b/gnuviechadmin/templates/socialaccount/base.html new file mode 100644 index 0000000..b64fd56 --- /dev/null +++ b/gnuviechadmin/templates/socialaccount/base.html @@ -0,0 +1 @@ +{% extends "account/base.html" %} diff --git a/gnuviechadmin/templates/socialaccount/connections.html b/gnuviechadmin/templates/socialaccount/connections.html new file mode 100644 index 0000000..ce611d6 --- /dev/null +++ b/gnuviechadmin/templates/socialaccount/connections.html @@ -0,0 +1,50 @@ +{% extends "socialaccount/base.html" %} +{% load i18n %} + +{% block title %}{{ block.super }} - {% trans "Account Connections" %}{% endblock title %} +{% block page_title %}{% trans "Account Connections" %}{% endblock page_title %} + +{% block content %} +{% if form.accounts %} +{% blocktrans %}You can sign in to your account using any of the following third party accounts:{% endblocktrans %}
+ + +{% else %} +{% trans 'You currently have no social network accounts connected to this account.' %}
+{% endif %} + +{% blocktrans %}You decided to cancel logging in to our site using one of your existing accounts. If this was a mistake, please proceed to sign in.{% endblocktrans %}
+{% endblock %} diff --git a/gnuviechadmin/templates/socialaccount/messages/account_connected.txt b/gnuviechadmin/templates/socialaccount/messages/account_connected.txt new file mode 100644 index 0000000..be6aa60 --- /dev/null +++ b/gnuviechadmin/templates/socialaccount/messages/account_connected.txt @@ -0,0 +1,2 @@ +{% load i18n %} +{% blocktrans %}The social account has been connected.{% endblocktrans %} diff --git a/gnuviechadmin/templates/socialaccount/messages/account_connected_other.txt b/gnuviechadmin/templates/socialaccount/messages/account_connected_other.txt new file mode 100644 index 0000000..e90f6cc --- /dev/null +++ b/gnuviechadmin/templates/socialaccount/messages/account_connected_other.txt @@ -0,0 +1,2 @@ +{% load i18n %} +{% blocktrans %}The social account is already connected to a different account.{% endblocktrans %} diff --git a/gnuviechadmin/templates/socialaccount/messages/account_disconnected.txt b/gnuviechadmin/templates/socialaccount/messages/account_disconnected.txt new file mode 100644 index 0000000..fd43f30 --- /dev/null +++ b/gnuviechadmin/templates/socialaccount/messages/account_disconnected.txt @@ -0,0 +1,2 @@ +{% load i18n %} +{% blocktrans %}The social account has been disconnected.{% endblocktrans %} diff --git a/gnuviechadmin/templates/socialaccount/signup.html b/gnuviechadmin/templates/socialaccount/signup.html new file mode 100644 index 0000000..b4f84f5 --- /dev/null +++ b/gnuviechadmin/templates/socialaccount/signup.html @@ -0,0 +1,17 @@ +{% extends "socialaccount/base.html" %} +{% load i18n crispy_forms_tags %} + +{% block title %}{{ block.super }} - {% trans "Signup" %}{% endblock title %} +{% block page_title %}{% trans "Sign Up" %}{% endblock page_title %} + +{% block content %} +{% blocktrans with provider_name=account.get_provider.name site_name=site.name %}You are about to use your {{provider_name}} account to login to +{{site_name}}. As a final step, please complete the following form:{% endblocktrans %}
+ + +{% endblock %} diff --git a/gnuviechadmin/templates/socialaccount/snippets/login_extra.html b/gnuviechadmin/templates/socialaccount/snippets/login_extra.html new file mode 100644 index 0000000..1512c13 --- /dev/null +++ b/gnuviechadmin/templates/socialaccount/snippets/login_extra.html @@ -0,0 +1,4 @@ +{% load socialaccount %} + +{% providers_media_js %} + diff --git a/gnuviechadmin/templates/socialaccount/snippets/provider_list.html b/gnuviechadmin/templates/socialaccount/snippets/provider_list.html new file mode 100644 index 0000000..238fbd1 --- /dev/null +++ b/gnuviechadmin/templates/socialaccount/snippets/provider_list.html @@ -0,0 +1,21 @@ +{% load socialaccount %} + +{% for provider in socialaccount.providers %} +{% if provider.id == "openid" %} +{% for brand in provider.get_brands %} +