Commit 9f0b5ed2 by Aamir

Merge pull request #8720 from edx/ECOM-1601-credit-help-link

ECOM-1601: Added the help link of credit info
parents ef89c662 935da3a1
...@@ -686,3 +686,6 @@ CREDIT_PROVIDER_SECRET_KEYS = AUTH_TOKENS.get("CREDIT_PROVIDER_SECRET_KEYS", {}) ...@@ -686,3 +686,6 @@ CREDIT_PROVIDER_SECRET_KEYS = AUTH_TOKENS.get("CREDIT_PROVIDER_SECRET_KEYS", {})
if FEATURES.get('ENABLE_LTI_PROVIDER'): if FEATURES.get('ENABLE_LTI_PROVIDER'):
INSTALLED_APPS += ('lti_provider',) INSTALLED_APPS += ('lti_provider',)
AUTHENTICATION_BACKENDS += ('lti_provider.users.LtiBackend', ) AUTHENTICATION_BACKENDS += ('lti_provider.users.LtiBackend', )
##################### Credit Provider help link ####################
CREDIT_HELP_LINK_URL = ENV_TOKENS.get('CREDIT_HELP_LINK_URL', CREDIT_HELP_LINK_URL)
...@@ -2563,6 +2563,9 @@ CREDIT_PROVIDER_SECRET_KEYS = {} ...@@ -2563,6 +2563,9 @@ CREDIT_PROVIDER_SECRET_KEYS = {}
# or denied for credit. # or denied for credit.
CREDIT_PROVIDER_TIMESTAMP_EXPIRATION = 15 * 60 CREDIT_PROVIDER_TIMESTAMP_EXPIRATION = 15 * 60
# The Help link to the FAQ page about the credit
CREDIT_HELP_LINK_URL = "#"
# Default domain for the e-mail address associated with users who are created # Default domain for the e-mail address associated with users who are created
# via the LTI Provider feature. Note that the generated e-mail addresses are # via the LTI Provider feature. Note that the generated e-mail addresses are
# not expected to be active; this setting simply allows administrators to # not expected to be active; this setting simply allows administrators to
......
...@@ -187,14 +187,16 @@ ...@@ -187,14 +187,16 @@
> .credit-eligibility-container { > .credit-eligibility-container {
padding: lh(); padding: lh();
> .credit-help { > .credit-help {
display: inline-block;
background: $blue; background: $blue;
color: $white; color: $white;
width: lh(); width: lh(0.6);
margin: 0; margin: 0;
padding: 0; padding: 0;
border-radius: lh(0.9); border-radius: lh(0.9);
border-color: $white; border-color: $white;
text-shadow: None; text-shadow: None;
@include padding-left(0.2em);
} }
> .detail-collapse{ > .detail-collapse{
border: none; border: none;
......
...@@ -114,7 +114,7 @@ from django.utils.http import urlquote_plus ...@@ -114,7 +114,7 @@ from django.utils.http import urlquote_plus
%elif credit_course_requirements['eligibility_status'] == 'partial_eligible': %elif credit_course_requirements['eligibility_status'] == 'partial_eligible':
<span>${student.get_full_name()}, ${_("You have not yet met the requirements for credit.")}</span> <span>${student.get_full_name()}, ${_("You have not yet met the requirements for credit.")}</span>
%endif %endif
<button class="credit-help"><i class="fa fa-question"></i><span class="sr">Help regarding credit requirement</span></button><br> <a href="${settings.CREDIT_HELP_LINK_URL}" class="credit-help"><i class="fa fa-question"></i><span class="sr">Help regarding course credit requirements</span></a><br>
<div class="requirement-container" data-eligible="${credit_course_requirements['eligibility_status']}"> <div class="requirement-container" data-eligible="${credit_course_requirements['eligibility_status']}">
%for requirement in credit_course_requirements['requirements']: %for requirement in credit_course_requirements['requirements']:
<div class="requirement"> <div class="requirement">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment