From 18b5d10d6485f6f6e0490e00daf49321eedacafc Mon Sep 17 00:00:00 2001 From: Agrendalath Date: Thu, 27 Apr 2023 16:30:00 +0200 Subject: [PATCH 1/2] feat: add Waffle Flag to disable resetting self-paced deadlines by learners --- openedx/features/course_experience/api/v1/tests/test_views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openedx/features/course_experience/api/v1/tests/test_views.py b/openedx/features/course_experience/api/v1/tests/test_views.py index afc671dbf91f..8cef39053b3e 100644 --- a/openedx/features/course_experience/api/v1/tests/test_views.py +++ b/openedx/features/course_experience/api/v1/tests/test_views.py @@ -15,7 +15,7 @@ from lms.djangoapps.courseware.tests.helpers import MasqueradeMixin from openedx.core.djangoapps.schedules.models import Schedule from openedx.features.course_experience import RELATIVE_DATES_DISABLE_RESET_FLAG, RELATIVE_DATES_FLAG -from xmodule.modulestore.tests.factories import CourseFactory # lint-amnesty, pylint: disable=wrong-import-order +from xmodule.modulestore.tests.factories import CourseFactory @ddt.ddt From b0094144cd3710625973f247f9f671fcd592177c Mon Sep 17 00:00:00 2001 From: Daniel Valenzuela Date: Wed, 13 Mar 2024 21:33:03 -0300 Subject: [PATCH 2/2] feat: warn when relative dates are past due and can't be shifted --- lms/templates/problem.html | 16 +++++++++------- lms/templates/vert_module.html | 2 +- openedx/features/course_experience/utils.py | 10 ++++++++-- .../call_to_action.py | 16 ++++++++++++---- 4 files changed, 30 insertions(+), 14 deletions(-) diff --git a/lms/templates/problem.html b/lms/templates/problem.html index 60d27b4ff5ad..4c70bf50c019 100644 --- a/lms/templates/problem.html +++ b/lms/templates/problem.html @@ -68,7 +68,8 @@

(${submit_disabled_cta['description']}) % else: -
+ + % if submit_disabled_cta.get('link'): % for form_name, form_value in submit_disabled_cta['form_values'].items(): @@ -76,13 +77,14 @@

${submit_disabled_cta['link_name']} - - + % endif + + - (${submit_disabled_cta['description']}) - + + (${submit_disabled_cta['description']}) + % endif % endif
diff --git a/lms/templates/vert_module.html b/lms/templates/vert_module.html index 0e52e3c7f426..7df5b8b5b46e 100644 --- a/lms/templates/vert_module.html +++ b/lms/templates/vert_module.html @@ -44,7 +44,7 @@

${unit_title}

- % else: + % elif vertical_banner_cta.get('link'):