Merge pull request #28016 from edx/syoon/AA-844
feat: AA-883 Basic prototype for self paced due dates in Studio
This commit is contained in:
@@ -46,6 +46,12 @@ class InheritanceMixin(XBlockMixin):
|
||||
help=_("Enter the default date by which problems are due."),
|
||||
scope=Scope.settings,
|
||||
)
|
||||
# This attribute is for custom pacing in self paced courses for Studio if CUSTOM_PLS flag is active
|
||||
due_num_weeks = Integer(
|
||||
display_name=_("Number of Weeks Due By"),
|
||||
help=_("Enter the number of weeks the problems are due by relative to the learner's start date"),
|
||||
scope=Scope.settings,
|
||||
)
|
||||
visible_to_staff_only = Boolean(
|
||||
help=_("If true, can be seen only by course staff, regardless of start date."),
|
||||
default=False,
|
||||
|
||||
@@ -1051,7 +1051,7 @@ def allowed_metadata_by_category(category):
|
||||
return {
|
||||
'vertical': [],
|
||||
'chapter': ['start'],
|
||||
'sequential': ['due', 'format', 'start', 'graded']
|
||||
'sequential': ['due', 'due_num_weeks', 'format', 'start', 'graded']
|
||||
}.get(category, ['*'])
|
||||
|
||||
|
||||
|
||||
@@ -78,6 +78,12 @@ class SequenceFields: # lint-amnesty, pylint: disable=missing-class-docstring
|
||||
help=_("Enter the date by which problems are due."),
|
||||
scope=Scope.settings,
|
||||
)
|
||||
# This attribute is for custom pacing in self paced courses for Studio if CUSTOM_PLS flag is active
|
||||
due_num_weeks = Integer(
|
||||
display_name=_("Number of Weeks Due By"),
|
||||
help=_("Enter the number of weeks the problems are due by relative to the learner's start date"),
|
||||
scope=Scope.settings,
|
||||
)
|
||||
|
||||
hide_after_due = Boolean(
|
||||
display_name=_("Hide sequence content After Due Date"),
|
||||
|
||||
Reference in New Issue
Block a user