From b98cbd4c2cddec4e5daf9defa74d96c2d4accc99 Mon Sep 17 00:00:00 2001 From: Daniel Valenzuela Date: Wed, 13 Mar 2024 21:33:03 -0300 Subject: [PATCH] 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 b785e4aa685d..e239c32cd2e3 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'):