From 754022f1afd81116fa9df77efc5bc5896fc50fdd Mon Sep 17 00:00:00 2001 From: Diana Huang Date: Thu, 21 Nov 2019 17:07:41 -0500 Subject: [PATCH] Remove old logistration templates. --- lms/templates/login-sidebar.html | 23 --- lms/templates/login.html | 257 -------------------------- lms/templates/register-form.html | 274 ---------------------------- lms/templates/register-shib.html | 198 -------------------- lms/templates/register-sidebar.html | 48 ----- lms/templates/register.html | 133 -------------- 6 files changed, 933 deletions(-) delete mode 100644 lms/templates/login-sidebar.html delete mode 100644 lms/templates/login.html delete mode 100644 lms/templates/register-form.html delete mode 100644 lms/templates/register-shib.html delete mode 100644 lms/templates/register-sidebar.html delete mode 100644 lms/templates/register.html diff --git a/lms/templates/login-sidebar.html b/lms/templates/login-sidebar.html deleted file mode 100644 index 49d5393360..0000000000 --- a/lms/templates/login-sidebar.html +++ /dev/null @@ -1,23 +0,0 @@ -<%page expression_filter="h"/> -<%! -from django.utils.translation import ugettext as _ -from django.urls import reverse -%> - -
-

${_("Helpful Information")}

-
- -
-

${_("Not Enrolled?")}

-

${_("Sign up for {platform_name} today!").format(platform_name=platform_name)}

- - ## Disable help unless the FAQ marketing link is enabled - % if settings.MKTG_URL_LINK_MAP.get('FAQ'): -

${_("Need Help?")}

-

${_("Looking for help signing in or with your {platform_name} account?").format(platform_name=platform_name)} - - ${_("View our help section for answers to commonly asked questions.")} -

- % endif -
diff --git a/lms/templates/login.html b/lms/templates/login.html deleted file mode 100644 index 2e889a8225..0000000000 --- a/lms/templates/login.html +++ /dev/null @@ -1,257 +0,0 @@ -<%page expression_filter="h"/> -<%inherit file="main.html" /> -<%namespace name='static' file='static_content.html'/> - -<%! -from django.urls import reverse -from django.utils.translation import ugettext as _ -from openedx.core.djangolib.markup import HTML, Text -import third_party_auth -from third_party_auth import provider, pipeline -%> - -<%! -from openedx.core.djangolib.js_utils import js_escaped_string, dump_js_escaped_json -%> - -<%block name="pagetitle">${_("Log into your {platform_name} Account").format(platform_name=platform_name)} - -<%block name="bodyclass">view-login - -<%block name="js_extra"> - - - -<%include file="forgot_password_modal.html" /> - -
-
-

- ${_("Please log in")} - ${_("to access your account and courses")} -

-
-
- -
-
-
- - - - - - - - - % if third_party_auth_error: - - % endif - -

- ${Text(_('Please provide the following information to log into your {platform_name} account. Required fields are noted by {strong_start}bold text and an asterisk (*){strong_end}.')).format( - strong_start=HTML(''), - strong_end=HTML(''), - platform_name=platform_name)} -

- -
-

${_('Required Information')}

- -
    -
  1. - - - ${_("This is the e-mail address you used to register with {platform}").format(platform=platform_name)} -
  2. -
  3. - - - - ${_('Forgot password?')} - -
  4. -
-
- -
- -
-
- - % if third_party_auth.is_enabled(): - - - ## Developers: this is a sentence fragment, which is usually frowned upon. The design of the pags uses this fragment to provide an "else" clause underneath a number of choices. It's OK to leave it. - ## Translators: this is the last choice of a number of choices of how to log in to the site. - ${_('or')} - - -
- - % for enabled in provider.Registry.displayed_for_login(): - ## Translators: provider_name is the name of an external, third-party user authentication provider (like Google or LinkedIn). - ## xss-lint: disable=mako-invalid-html-filter - - % endfor - -
- - % endif - -
- - -
diff --git a/lms/templates/register-form.html b/lms/templates/register-form.html deleted file mode 100644 index 1c09324989..0000000000 --- a/lms/templates/register-form.html +++ /dev/null @@ -1,274 +0,0 @@ -<%page expression_filter="h"/> -<%! -import third_party_auth -import six -from third_party_auth import pipeline, provider -from django.utils.translation import ugettext as _ -from openedx.core.djangolib.markup import HTML, Text -from django_countries import countries -from student.models import UserProfile -%> - - - - - - - - -% if third_party_auth.is_enabled(): - - % if not running_pipeline: - -
- - % for enabled in provider.Registry.displayed_for_login(): - ## Translators: provider_name is the name of an external, third-party user authentication service (like Google or LinkedIn). - - % endfor - -
- - - ## Developers: this is a sentence fragment, which is usually frowned upon. The design of the pags uses this fragment to provide an "else" clause underneath a number of choices. It's OK to leave it. - ## Translators: this is the last choice of a number of choices of how to log in to the site. - ${_('or')} - - -

- ${_('Create your own {platform_name} account below').format(platform_name=platform_name)} - ${Text(_('Required fields are noted by {strong_start}bold text and an asterisk (*){strong_end}.')).format( - strong_start=HTML(''), - strong_end=HTML(''))} -

- - - % else: - -

- ## Translators: selected_provider is the name of an external, third-party user authentication service (like Google or LinkedIn). - ${Text(_("You've successfully signed in with {selected_provider}.")).format(selected_provider=HTML('{selected_provider}').format(selected_provider=selected_provider))}
- ${_("We just need a little more information before you start learning with {platform_name}.").format(platform_name=settings.PLATFORM_NAME)} -

- - % endif - -% else: - -

- ${_("Please complete the following fields to register for an account. ")}
- ${Text(_('Required fields are noted by {strong_start}bold text and an asterisk (*){strong_end}.')).format( \ - strong_start=HTML(''), strong_end=HTML(''))} -

- -% endif - -
-

${_('Required Information')}

- - % if has_extauth_info is UNDEFINED: - -
    -
  1. - - -
  2. - -
  3. - - - ${_("Your legal name, used for any certificates you earn.")} -
  4. -
  5. - - - ${_('Will be shown in any discussions or forums you participate in')} (${_('cannot be changed later')}) -
  6. - - % if third_party_auth.is_enabled() and running_pipeline: - - - - % else: - -
  7. - - -
  8. - - % endif -
- - % else: - -
-

${_("Welcome {username}").format(username=extauth_id)}

-

${_("Enter a Public Display Name:")}

-
- -
    - - % if ask_for_email: - -
  1. - - -
  2. - - % endif - -
  3. - - - ${_('Will be shown in any discussions or forums you participate in')} (${_('cannot be changed later')}) -
  4. - - % if ask_for_fullname: - -
  5. - - - ${_("Your legal name, used for any certificates you earn.")} -
  6. - - % endif - -
- - % endif -
- -
-

${_("Additional Personal Information")}

- -
    - % if settings.REGISTRATION_EXTRA_FIELDS['city'] != 'hidden': -
  1. - - -
  2. - % endif - % if settings.REGISTRATION_EXTRA_FIELDS['country'] != 'hidden': -
  3. -
    - - -
    -
  4. - % endif - % if settings.REGISTRATION_EXTRA_FIELDS['level_of_education'] != 'hidden': -
  5. -
    - - -
    -
  6. - % endif - % if settings.REGISTRATION_EXTRA_FIELDS['gender'] != 'hidden': -
  7. -
    - - -
    -
  8. - % endif - % if settings.REGISTRATION_EXTRA_FIELDS['year_of_birth'] != 'hidden': -
  9. -
    - - -
    - % endif -
  10. -
-
- -
-
    - % if settings.REGISTRATION_EXTRA_FIELDS['mailing_address'] != 'hidden': -
  1. - - -
  2. - % endif - - % if settings.REGISTRATION_EXTRA_FIELDS['goals'] != 'hidden': -
  3. - - -
  4. - % endif -
-
- -
-

${_("Account Acknowledgements")}

- -
    -
  1. - - % if has_extauth_info is UNDEFINED or ask_for_tos : -
    - - -
    - % endif - - % if settings.REGISTRATION_EXTRA_FIELDS['honor_code'] != 'hidden': - ## check if we have an Honor Code link in our marketing map - % if marketing_link('HONOR') and marketing_link('HONOR') != '#': -
    - - <% - honor_code_path = marketing_link('HONOR') - %> - -
    - % endif - % endif -
  2. -
-
- -
- -
diff --git a/lms/templates/register-shib.html b/lms/templates/register-shib.html deleted file mode 100644 index 475b8f0eb6..0000000000 --- a/lms/templates/register-shib.html +++ /dev/null @@ -1,198 +0,0 @@ -<%page expression_filter="h"/> -<%inherit file="main.html" /> -<%namespace name='static' file='static_content.html'/> -<%namespace file='main.html' import="login_query"/> -<%! -from django.utils.translation import ugettext as _ -from openedx.core.djangolib.markup import HTML, Text -from openedx.core.djangolib.js_utils import js_escaped_string -from django.urls import reverse -from django.utils import html -from django_countries import countries -from student.models import UserProfile -from datetime import date -import calendar -%> - -<%block name="pagetitle">${_("Preferences for {platform_name}").format(platform_name=settings.PLATFORM_NAME)} - -<%block name="bodyclass">view-register - -<%block name="js_extra"> - - - -
-
-

${_("Welcome {username}! Please set your preferences below").format(username=extauth_id, - platform_name=settings.PLATFORM_NAME)}

-
-
- -<%block name="login_button"> -
-
-
- - - - - - -

- ${Text(_('Required fields are noted by {strong_start}bold text and an asterisk (*){strong_end}.')).format( - strong_start=HTML(''), - strong_end=HTML('')),} -

- -
- ${_('Required Information')} - -
-

${_("Enter a public username:")}

-
- -
    - -
  1. - - - ${_('Will be shown in any discussions or forums you participate in')} -
  2. - - % if ask_for_email: - -
  3. - - -
  4. - - % endif - - - % if ask_for_fullname: - -
  5. - - -
  6. - - % endif - -
- -
- -
- ${_("Account Acknowledgements")} - -
    -
  1. - - % if ask_for_tos : - -
    - - -
    - - % endif - -
    - - <% - honor_code_path = marketing_link('HONOR') - %> - -
    -
  2. -
-
- -% if course_id and enrollment_action: - - -% endif - -
- -
-
-
- -
diff --git a/lms/templates/register-sidebar.html b/lms/templates/register-sidebar.html deleted file mode 100644 index a3a43cfb33..0000000000 --- a/lms/templates/register-sidebar.html +++ /dev/null @@ -1,48 +0,0 @@ -<%page expression_filter="h"/> -<%! -from django.utils.translation import ugettext as _ -from django.urls import reverse -%> -<%namespace file='main.html' import="login_query"/> -<%namespace name='static' file='static_content.html'/> - - -
-

${_("Registration Help")}

-
- -% if has_extauth_info is UNDEFINED: - -
-

${_("Already registered?")}

-

- -

-
- -% endif - -## TODO: Use a %block tag or something to allow themes to -## override in a more generalizable fashion. -
-

${_("Welcome to {platform_name}").format(platform_name=platform_name)}

-

${_("Registering with {platform_name} gives you access to all of our current and future free courses. Not ready to take a course just yet? Registering puts you on our mailing list - we will update you as courses are added.").format(platform_name=platform_name)}

-
- -
-

${_("Next Steps")}

-

${_("As part of joining {platform_name}, you will receive an email message with instructions for activating your account. Don't see the email? Check your spam folder and mark {platform_name} emails as 'not spam'. At {platform_name}, we communicate mostly through email.").format(platform_name=platform_name)}

-
- -% if settings.MKTG_URL_LINK_MAP.get('FAQ'): -
-

${_("Need Help?")}

-

${_("Need help registering with {platform_name}?").format(platform_name=platform_name)} - - ${_("View our FAQs for answers to commonly asked questions.")} - - ${_("You can find the answers to most of your questions in our list of FAQs. After you enroll in a course, you can also find answers in the course discussions.")}

-
-% endif diff --git a/lms/templates/register.html b/lms/templates/register.html deleted file mode 100644 index 5a1bf45bc0..0000000000 --- a/lms/templates/register.html +++ /dev/null @@ -1,133 +0,0 @@ -<%page expression_filter="h"/> -<%inherit file="main.html" /> -<%namespace name='static' file='static_content.html'/> -<%namespace file='main.html' import="login_query"/> -<%! -from django.utils.translation import ugettext as _ -from openedx.core.djangolib.js_utils import js_escaped_string -from django.urls import reverse -from django.utils import html -from django_countries import countries -from student.models import UserProfile -from datetime import date -import third_party_auth -from third_party_auth import pipeline, provider -import calendar -%> - -<%block name="pagetitle">${_("Register for {platform_name}").format(platform_name=platform_name)} - -<%block name="bodyclass">view-register - -<%block name="js_extra"> - - - -
-
-

- ${_("Welcome!")} - ${_("Register below to create your {platform_name} account").format(platform_name=platform_name)} -

-
-
- -
-
-
-<% - # allow for theming override on the registration form - registration_form = static.get_template_path('register-form.html') -%> - <%include file="${registration_form}" /> -
-
- - -