Credit eligibility requirements display on student progress page
ECOM-1523
This commit is contained in:
@@ -42,6 +42,9 @@ from lms.envs.common import (
|
||||
# technically accessible through the CMS via legacy URLs.
|
||||
PROFILE_IMAGE_BACKEND, PROFILE_IMAGE_DEFAULT_FILENAME, PROFILE_IMAGE_DEFAULT_FILE_EXTENSION,
|
||||
PROFILE_IMAGE_SECRET_KEY, PROFILE_IMAGE_MIN_BYTES, PROFILE_IMAGE_MAX_BYTES,
|
||||
# The following setting is included as it is used to check whether to
|
||||
# display credit eligibility table on the CMS or not.
|
||||
ENABLE_CREDIT_ELIGIBILITY
|
||||
)
|
||||
from path import path
|
||||
from warnings import simplefilter
|
||||
@@ -174,7 +177,7 @@ FEATURES = {
|
||||
'SHOW_BUMPER_PERIODICITY': 7 * 24 * 3600,
|
||||
|
||||
# Enable credit eligibility feature
|
||||
'ENABLE_CREDIT_ELIGIBILITY': False,
|
||||
'ENABLE_CREDIT_ELIGIBILITY': ENABLE_CREDIT_ELIGIBILITY,
|
||||
|
||||
# Can the visibility of the discussion tab be configured on a per-course basis?
|
||||
'ALLOW_HIDING_DISCUSSION_TAB': False,
|
||||
@@ -248,7 +251,6 @@ from lms.envs.common import (
|
||||
COURSE_KEY_PATTERN, COURSE_ID_PATTERN, USAGE_KEY_PATTERN, ASSET_KEY_PATTERN
|
||||
)
|
||||
|
||||
|
||||
######################### CSRF #########################################
|
||||
|
||||
# Forwards-compatibility with Django 1.7
|
||||
|
||||
@@ -102,7 +102,7 @@ var GradingView = ValidatingView.extend({
|
||||
renderMinimumGradeCredit: function() {
|
||||
var minimum_grade_credit = this.model.get('minimum_grade_credit');
|
||||
this.$el.find('#course-minimum_grade_credit').val(
|
||||
parseFloat(minimum_grade_credit) * 100 + '%'
|
||||
Math.round(parseFloat(minimum_grade_credit) * 100) + '%'
|
||||
);
|
||||
},
|
||||
setGracePeriod : function(event) {
|
||||
|
||||
Reference in New Issue
Block a user