From c39c050cb71cd6887966f927c36536798fbbd269 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 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'):