Updated the messages when a learner leave an organization.
This commit is contained in:
@@ -682,12 +682,16 @@ class StudentAccountLoginAndRegistrationTest(ThirdPartyAuthTestMixin, UrlResetMi
|
||||
else:
|
||||
self.assertContains(response, text=enterprise_sidebar_div_id)
|
||||
welcome_message = settings.ENTERPRISE_SPECIFIC_BRANDED_WELCOME_TEMPLATE
|
||||
expected_message = welcome_message.format(
|
||||
start_bold=u'<b>',
|
||||
end_bold=u'</b>',
|
||||
line_break=u'<br/>',
|
||||
expected_message = Text(welcome_message).format(
|
||||
start_bold=HTML('<b>'),
|
||||
end_bold=HTML('</b>'),
|
||||
line_break=HTML('<br/>'),
|
||||
enterprise_name=ec_name,
|
||||
platform_name=settings.PLATFORM_NAME
|
||||
platform_name=settings.PLATFORM_NAME,
|
||||
privacy_policy_link_start=HTML("<a href='{pp_url}' target='_blank'>").format(
|
||||
pp_url=settings.MKTG_URLS.get('PRIVACY', 'https://www.edx.org/edx-privacy-policy')
|
||||
),
|
||||
privacy_policy_link_end=HTML("</a>"),
|
||||
)
|
||||
self.assertContains(response, expected_message)
|
||||
if logo_url:
|
||||
|
||||
@@ -3348,11 +3348,11 @@ ENTERPRISE_CUSTOMER_LOGO_IMAGE_SIZE = 512 # Enterprise logo image size limit i
|
||||
|
||||
ENTERPRISE_PLATFORM_WELCOME_TEMPLATE = _(u'Welcome to {platform_name}.')
|
||||
ENTERPRISE_SPECIFIC_BRANDED_WELCOME_TEMPLATE = _(
|
||||
u'{start_bold}{enterprise_name}{end_bold} has partnered with {start_bold}'
|
||||
'{platform_name}{end_bold} to offer you always available, high-quality learning '
|
||||
'programs to help you advance your knowledge and your career. '
|
||||
'{line_break}Please continue with registration, or log in if you are an existing user, '
|
||||
'and press continue to start learning.'
|
||||
'You have left the {start_bold}{enterprise_name}{end_bold} website and are now on the {platform_name} site. '
|
||||
'{enterprise_name} has partnered with {platform_name} to offer you high-quality, always available learning '
|
||||
'programs to help you advance your knowledge and career. '
|
||||
'{line_break}Please note that {platform_name} has a different {privacy_policy_link_start}Privacy Policy'
|
||||
'{privacy_policy_link_end} from {enterprise_name}.'
|
||||
)
|
||||
ENTERPRISE_TAGLINE = ''
|
||||
ENTERPRISE_EXCLUDED_REGISTRATION_FIELDS = {
|
||||
|
||||
@@ -95,7 +95,11 @@ def get_enterprise_sidebar_context(enterprise_customer):
|
||||
end_bold=HTML('</b>'),
|
||||
line_break=HTML('<br/>'),
|
||||
enterprise_name=enterprise_customer['name'],
|
||||
platform_name=platform_name
|
||||
platform_name=platform_name,
|
||||
privacy_policy_link_start=HTML("<a href='{pp_url}' target='_blank'>").format(
|
||||
pp_url=settings.MKTG_URLS.get('PRIVACY', 'https://www.edx.org/edx-privacy-policy')
|
||||
),
|
||||
privacy_policy_link_end=HTML("</a>"),
|
||||
)
|
||||
|
||||
platform_welcome_template = configuration_helpers.get_value(
|
||||
|
||||
Reference in New Issue
Block a user