From dfdd6d6dc53c714c4634e8d37bd6deb04e741fa1 Mon Sep 17 00:00:00 2001 From: "Brian S. Stephan" Date: Wed, 27 Oct 2021 07:50:57 -0500 Subject: [PATCH] remove registration stuff from templates --- templates/base.html | 15 ---- templates/registration/activate.html | 16 ---- .../registration/activation_complete.html | 22 ------ templates/registration/activation_email.html | 77 ------------------- templates/registration/activation_email.txt | 57 -------------- .../registration/activation_email_subject.txt | 28 ------- templates/registration/login.html | 47 ----------- templates/registration/logout.html | 8 -- .../registration/password_change_done.html | 11 --- .../registration/password_change_form.html | 17 ---- .../registration/password_reset_complete.html | 14 ---- .../registration/password_reset_confirm.html | 18 ----- .../registration/password_reset_done.html | 16 ---- .../registration/password_reset_email.html | 26 ------- .../registration/password_reset_form.html | 18 ----- templates/registration/registration_base.html | 15 ---- .../registration/registration_closed.html | 8 -- .../registration/registration_complete.html | 18 ----- templates/registration/registration_form.html | 27 ------- 19 files changed, 458 deletions(-) delete mode 100644 templates/registration/activate.html delete mode 100644 templates/registration/activation_complete.html delete mode 100644 templates/registration/activation_email.html delete mode 100644 templates/registration/activation_email.txt delete mode 100644 templates/registration/activation_email_subject.txt delete mode 100644 templates/registration/login.html delete mode 100644 templates/registration/logout.html delete mode 100644 templates/registration/password_change_done.html delete mode 100644 templates/registration/password_change_form.html delete mode 100644 templates/registration/password_reset_complete.html delete mode 100644 templates/registration/password_reset_confirm.html delete mode 100644 templates/registration/password_reset_done.html delete mode 100644 templates/registration/password_reset_email.html delete mode 100644 templates/registration/password_reset_form.html delete mode 100644 templates/registration/registration_base.html delete mode 100644 templates/registration/registration_closed.html delete mode 100644 templates/registration/registration_complete.html delete mode 100644 templates/registration/registration_form.html diff --git a/templates/base.html b/templates/base.html index e9c4bc4..0171905 100644 --- a/templates/base.html +++ b/templates/base.html @@ -44,18 +44,6 @@ diff --git a/templates/registration/activate.html b/templates/registration/activate.html deleted file mode 100644 index ac5fb37..0000000 --- a/templates/registration/activate.html +++ /dev/null @@ -1,16 +0,0 @@ -{% extends "registration/registration_base.html" %} -{% load i18n %} - -{% block registration_content %} -

{% trans "Account activation failed." %}

-{% endblock %} - - -{% comment %} -**registration/activate.html** - -Used if account activation fails. With the default setup, has the following context: - -``activation_key`` - The activation key used during the activation attempt. -{% endcomment %} diff --git a/templates/registration/activation_complete.html b/templates/registration/activation_complete.html deleted file mode 100644 index cf12988..0000000 --- a/templates/registration/activation_complete.html +++ /dev/null @@ -1,22 +0,0 @@ -{% extends "registration/registration_base.html" %} -{% load i18n %} - -{% block title %}{% trans "Account Activated" %}{% endblock %} - -{% block registration_content %} -

- {% trans "Your account is now activated." %} - {% if not user.is_authenticated %} - {% trans "You can log in." %} - {% endif %} -

-{% endblock %} - - -{% comment %} -**registration/activation_complete.html** - -Used after successful account activation. This template has no context -variables of its own, and should simply inform the user that their -account is now active. -{% endcomment %} diff --git a/templates/registration/activation_email.html b/templates/registration/activation_email.html deleted file mode 100644 index c15b89d..0000000 --- a/templates/registration/activation_email.html +++ /dev/null @@ -1,77 +0,0 @@ -{% load i18n %} -{% load url from future %} - - - - - {{ site.name }} {% trans "registration" %} - - - -

- {% blocktrans with site_name=site.name %} - You (or someone pretending to be you) have asked to register an account at - {{ site_name }}. If this wasn't you, please ignore this email - and your address will be removed from our records. - {% endblocktrans %} -

-

- {% blocktrans %} - To activate this account, please click the following link within the next - {{ expiration_days }} days: - {% endblocktrans %} -

- -

- - {{site.domain}}{% url 'registration_activate' activation_key %} - -

-

- {% blocktrans with site_name=site.name %} - Sincerely, - {{ site_name }} Management - {% endblocktrans %} -

- - - - - -{% comment %} -**registration/activation_email.html** - -Used to generate the html body of the activation email. Should display a -link the user can click to activate the account. This template has the -following context: - -``activation_key`` - The activation key for the new account. - -``expiration_days`` - The number of days remaining during which the account may be - activated. - -``site`` - An object representing the site on which the user registered; - depending on whether ``django.contrib.sites`` is installed, this - may be an instance of either ``django.contrib.sites.models.Site`` - (if the sites application is installed) or - ``django.contrib.sites.models.RequestSite`` (if not). Consult `the - documentation for the Django sites framework - `_ for - details regarding these objects' interfaces. - -``user`` - The new user account - -``request`` - ``HttpRequest`` instance for better flexibility. - For example it can be used to compute absolute register URL: - - http{% if request.is_secure %}s{% endif %}://{{ request.get_host }}{% url 'registration_activate' activation_key %} - - or when using Django >= 1.7: - - {{ request.scheme }}://{{ request.get_host }}{% url 'registration_activate' activation_key %} -{% endcomment %} diff --git a/templates/registration/activation_email.txt b/templates/registration/activation_email.txt deleted file mode 100644 index 22f036b..0000000 --- a/templates/registration/activation_email.txt +++ /dev/null @@ -1,57 +0,0 @@ -{% load i18n %} -{% load url from future %} -{% blocktrans with site_name=site.name %} -You (or someone pretending to be you) have asked to register an account at -{{ site_name }}. If this wasn't you, please ignore this email -and your address will be removed from our records. -{% endblocktrans %} -{% blocktrans %} -To activate this account, please click the following link within the next -{{ expiration_days }} days: -{% endblocktrans %} - -http://{{site.domain}}{% url 'registration_activate' activation_key %} - -{% blocktrans with site_name=site.name %} -Sincerely, -{{ site_name }} Management -{% endblocktrans %} - - -{% comment %} -**registration/activation_email.txt** - -Used to generate the text body of the activation email. Should display a -link the user can click to activate the account. This template has the -following context: - -``activation_key`` - The activation key for the new account. - -``expiration_days`` - The number of days remaining during which the account may be - activated. - -``site`` - An object representing the site on which the user registered; - depending on whether ``django.contrib.sites`` is installed, this - may be an instance of either ``django.contrib.sites.models.Site`` - (if the sites application is installed) or - ``django.contrib.sites.models.RequestSite`` (if not). Consult `the - documentation for the Django sites framework - `_ for - details regarding these objects' interfaces. - -``user`` - The new user account - -``request`` - ``HttpRequest`` instance for better flexibility. - For example it can be used to compute absolute register URL: - - http{% if request.is_secure %}s{% endif %}://{{ request.get_host }}{% url 'registration_activate' activation_key %} - - or when using Django >= 1.7: - - {{ request.scheme }}://{{ request.get_host }}{% url 'registration_activate' activation_key %} -{% endcomment %} diff --git a/templates/registration/activation_email_subject.txt b/templates/registration/activation_email_subject.txt deleted file mode 100644 index 659e29b..0000000 --- a/templates/registration/activation_email_subject.txt +++ /dev/null @@ -1,28 +0,0 @@ -{% load i18n %}{% trans "Account activation on" %} {{ site.name }} - - -{% comment %} -**registration/activation_email_subject.txt** - -Used to generate the subject line of the activation email. Because the -subject line of an email must be a single line of text, any output -from this template will be forcibly condensed to a single line before -being used. This template has the following context: - -``activation_key`` - The activation key for the new account. - -``expiration_days`` - The number of days remaining during which the account may be - activated. - -``site`` - An object representing the site on which the user registered; - depending on whether ``django.contrib.sites`` is installed, this - may be an instance of either ``django.contrib.sites.models.Site`` - (if the sites application is installed) or - ``django.contrib.sites.models.RequestSite`` (if not). Consult `the - documentation for the Django sites framework - `_ for - details regarding these objects' interfaces. -{% endcomment %} diff --git a/templates/registration/login.html b/templates/registration/login.html deleted file mode 100644 index 785e7b0..0000000 --- a/templates/registration/login.html +++ /dev/null @@ -1,47 +0,0 @@ -{% extends "registration/registration_base.html" %} -{% load i18n %} -{% load bootstrap3 %} - -{% block title %}{% trans "Log in" %}{% endblock %} - -{% block registration_content %} -
- {% csrf_token %} - {% bootstrap_form form %} - - {% buttons submit='Log In' reset='Cancel' layout='horizontal' %}{% endbuttons %} -
-
-

{% trans "Forgot your password?" %} {% trans "Reset it" %}. - {% trans "Not a member?" %} {% trans "Register" %}.

-
-{% endblock %} - - -{% comment %} -**registration/login.html** - -It's your responsibility to provide the login form in a template called -registration/login.html by default. This template gets passed four -template context variables: - -``form`` - A Form object representing the login form. See the forms - documentation for more on Form objects. - -``next`` - The URL to redirect to after successful login. This may contain a - query string, too. - -``site`` - The current Site, according to the SITE_ID setting. If you don't - have the site framework installed, this will be set to an instance - of RequestSite, which derives the site name and domain from the - current HttpRequest. - -``site_name`` - An alias for site.name. If you don't have the site framework - installed, this will be set to the value of - request.META['SERVER_NAME']. For more on sites, see The - "sites" framework. -{% endcomment %} diff --git a/templates/registration/logout.html b/templates/registration/logout.html deleted file mode 100644 index 2b8646d..0000000 --- a/templates/registration/logout.html +++ /dev/null @@ -1,8 +0,0 @@ -{% extends "registration/registration_base.html" %} -{% load i18n %} - -{% block title %}{% trans "Logged out" %}{% endblock %} - -{% block registration_content %} -

{% trans "Successfully logged out" %}.

-{% endblock %} diff --git a/templates/registration/password_change_done.html b/templates/registration/password_change_done.html deleted file mode 100644 index 55e60e4..0000000 --- a/templates/registration/password_change_done.html +++ /dev/null @@ -1,11 +0,0 @@ -{% extends "registration/registration_base.html" %} -{% load i18n %} - -{% block title %}{% trans "Password changed" %}{% endblock %} - -{% block registration_content %} -

{% trans "Password successfully changed!" %}

-{% endblock %} - - -{# This is used by django.contrib.auth #} diff --git a/templates/registration/password_change_form.html b/templates/registration/password_change_form.html deleted file mode 100644 index fb96ab3..0000000 --- a/templates/registration/password_change_form.html +++ /dev/null @@ -1,17 +0,0 @@ -{% extends "registration/registration_base.html" %} -{% load i18n %} -{% load bootstrap3 %} - -{% block title %}{% trans "Change password" %}{% endblock %} - -{% block registration_content %} -
- {% csrf_token %} - {% bootstrap_form form %} - - {% buttons submit='Change Password' reset='Cancel' layout='horizontal' %}{% endbuttons %} -
-{% endblock %} - - -{# This is used by django.contrib.auth #} diff --git a/templates/registration/password_reset_complete.html b/templates/registration/password_reset_complete.html deleted file mode 100644 index 1bd5d94..0000000 --- a/templates/registration/password_reset_complete.html +++ /dev/null @@ -1,14 +0,0 @@ -{% extends "registration/registration_base.html" %} -{% load i18n %} - -{% block title %}{% trans "Password reset complete" %}{% endblock %} - -{% block registration_content %} -

- {% trans "Your password has been reset!" %} - {% trans "You may now" %} {% trans "log in" %}. -

-{% endblock %} - - -{# This is used by django.contrib.auth #} diff --git a/templates/registration/password_reset_confirm.html b/templates/registration/password_reset_confirm.html deleted file mode 100644 index 6b673f4..0000000 --- a/templates/registration/password_reset_confirm.html +++ /dev/null @@ -1,18 +0,0 @@ -{% extends "registration/registration_base.html" %} -{% load i18n %} -{% load bootstrap3 %} - -{% block title %}{% trans "Confirm password reset" %}{% endblock %} - -{% block registration_content %} -

{% trans "Enter your new password below to reset your password:" %}

-
- {% csrf_token %} - {% bootstrap_form form %} - - {% buttons submit='Set Password' reset='Cancel' layout='horizontal' %}{% endbuttons %} -
-{% endblock %} - - -{# This is used by django.contrib.auth #} diff --git a/templates/registration/password_reset_done.html b/templates/registration/password_reset_done.html deleted file mode 100644 index be4e209..0000000 --- a/templates/registration/password_reset_done.html +++ /dev/null @@ -1,16 +0,0 @@ -{% extends "registration/registration_base.html" %} -{% load i18n %} - -{% block title %}{% trans "Password reset" %}{% endblock %} - -{% block registration_content %} -

- {% blocktrans %} - We have sent you an email with a link to reset your password. Please check - your email and click the link to continue. - {% endblocktrans %} -

-{% endblock %} - - -{# This is used by django.contrib.auth #} diff --git a/templates/registration/password_reset_email.html b/templates/registration/password_reset_email.html deleted file mode 100644 index 67b0253..0000000 --- a/templates/registration/password_reset_email.html +++ /dev/null @@ -1,26 +0,0 @@ -{% load i18n %} -{% load url from future %} - -{% blocktrans %}Greetings{% endblocktrans %} {% if user.get_full_name %}{{ user.get_full_name }}{% else %}{{ user }}{% endif %}, - -{% blocktrans %} -You are receiving this email because you (or someone pretending to be you) -requested that your password be reset on the {{ domain }} site. If you do not -wish to reset your password, please ignore this message. -{% endblocktrans %} - -{% blocktrans %} -To reset your password, please click the following link, or copy and paste it -into your web browser: -{% endblocktrans %} - -{{ protocol }}://{{ domain }}{% url 'auth_password_reset_confirm' uid token %} - -{% blocktrans %}Your username, in case you've forgotten:{% endblocktrans %} {{ user.username }} - - -{% blocktrans %}Best regards{% endblocktrans %}, -{{ site_name }} {% blocktrans %}Management{% endblocktrans %} - - -{# This is used by django.contrib.auth #} diff --git a/templates/registration/password_reset_form.html b/templates/registration/password_reset_form.html deleted file mode 100644 index 5280b18..0000000 --- a/templates/registration/password_reset_form.html +++ /dev/null @@ -1,18 +0,0 @@ -{% extends "registration/registration_base.html" %} -{% load i18n %} -{% load bootstrap3 %} - -{% block title %}{% trans "Reset password" %}{% endblock %} - -{% block registration_content %} -

Forgot your password? Enter your email in the form below and we'll send you instructions for creating a new one.

-
- {% csrf_token %} - {% bootstrap_form form %} - - {% buttons submit='Reset' reset='Cancel' layout='horizontal' %}{% endbuttons %} -
-{% endblock %} - - -{# This is used by django.contrib.auth #} diff --git a/templates/registration/registration_base.html b/templates/registration/registration_base.html deleted file mode 100644 index 16849d1..0000000 --- a/templates/registration/registration_base.html +++ /dev/null @@ -1,15 +0,0 @@ -{% extends "base.html" %} - -{% block extra_media %}{% load static %} - -{% endblock %} - -{% block navbarbrand %} -{{ site.domain }} -{% endblock %} - -{% block content %} -
- {% block registration_content %}{% endblock %} -
-{% endblock %} diff --git a/templates/registration/registration_closed.html b/templates/registration/registration_closed.html deleted file mode 100644 index 1d7414e..0000000 --- a/templates/registration/registration_closed.html +++ /dev/null @@ -1,8 +0,0 @@ -{% extends "registration/registration_base.html" %} -{% load i18n %} - -{% block title %}{% trans "Registration is closed" %}{% endblock %} - -{% block registration_content %} -

{% trans "Sorry, but registration is closed at this moment. Come back later." %}

-{% endblock %} diff --git a/templates/registration/registration_complete.html b/templates/registration/registration_complete.html deleted file mode 100644 index ce35bb0..0000000 --- a/templates/registration/registration_complete.html +++ /dev/null @@ -1,18 +0,0 @@ -{% extends "registration/registration_base.html" %} -{% load i18n %} - -{% block title %}{% trans "Activation email sent" %}{% endblock %} - -{% block registration_content %} -

{% trans "Please check your email to complete the registration process." %}

-{% endblock %} - - -{% comment %} -**registration/registration_complete.html** - -Used after successful completion of the registration form. This -template has no context variables of its own, and should simply inform -the user that an email containing account-activation information has -been sent. -{% endcomment %} diff --git a/templates/registration/registration_form.html b/templates/registration/registration_form.html deleted file mode 100644 index d8a9721..0000000 --- a/templates/registration/registration_form.html +++ /dev/null @@ -1,27 +0,0 @@ -{% extends "registration/registration_base.html" %} -{% load i18n %} -{% load bootstrap3 %} - -{% block title %}{% trans "Register for an account" %}{% endblock %} - -{% block registration_content %} -
- {% csrf_token %} - {% bootstrap_form form %} - - {% buttons submit='Sign Up' reset='Cancel' layout='horizontal' %}{% endbuttons %} -
-{% endblock %} - - -{% comment %} -**registration/registration_form.html** -Used to show the form users will fill out to register. By default, has -the following context: - -``form`` - The registration form. This will be an instance of some subclass - of ``django.forms.Form``; consult `Django's forms documentation - `_ for - information on how to display this in a template. -{% endcomment %}