From 359f3cf3f634e5fd6837c7a1dd257a18e44941d0 Mon Sep 17 00:00:00 2001 From: Phillip Shiu Date: Wed, 1 Sep 2021 09:25:40 -0400 Subject: [PATCH] fix: add partial_fbe.html --- common/djangoapps/course_modes/views.py | 3 ++ .../track_selection_types/full_fbe.html | 5 +++ .../track_selection_types/partial_fbe.html | 34 +++++++++++++++++++ 3 files changed, 42 insertions(+) create mode 100644 lms/templates/course_modes/track_selection_types/partial_fbe.html diff --git a/common/djangoapps/course_modes/views.py b/common/djangoapps/course_modes/views.py index b2cc6dc2ba..8d888cc080 100644 --- a/common/djangoapps/course_modes/views.py +++ b/common/djangoapps/course_modes/views.py @@ -269,6 +269,9 @@ class ChooseModeView(View): # Happy path conditions. if verified_mode and fbe_is_on and not enterprise_customer: return render_to_response("course_modes/track_selection_types/full_fbe.html", context) + elif verified_mode and not fbe_is_on and not enterprise_customer: + return render_to_response("course_modes/track_selection_types/partial_fbe.html", context) + # failover: old choose.html page #return render_to_response("course_modes/choose.html", context) @method_decorator(transaction.non_atomic_requests) diff --git a/lms/templates/course_modes/track_selection_types/full_fbe.html b/lms/templates/course_modes/track_selection_types/full_fbe.html index aeddd28395..3c2684389e 100644 --- a/lms/templates/course_modes/track_selection_types/full_fbe.html +++ b/lms/templates/course_modes/track_selection_types/full_fbe.html @@ -1,3 +1,8 @@ +## This template is for full Feature Based Enrollment (FBE). This means a +## learner in the default audit track will have a limited time to complete the +## course (course access duration) and may have some of the content of the +## course unavailable (gated content). + <%page expression_filter="h"/> <%inherit file="../track_selection.html" /> <%! diff --git a/lms/templates/course_modes/track_selection_types/partial_fbe.html b/lms/templates/course_modes/track_selection_types/partial_fbe.html new file mode 100644 index 0000000000..141a62e44f --- /dev/null +++ b/lms/templates/course_modes/track_selection_types/partial_fbe.html @@ -0,0 +1,34 @@ +## This template is for partial Feature Based Enrollment (FBE). This means a +## learner in the default audit track may either have a limited time to +## complete the course (course access duration), or may have some of the +## content of the course unavailable (gated content), but not both. + +<%page expression_filter="h"/> +<%inherit file="../track_selection.html" /> +<%! +from django.utils.translation import ugettext as _ +from openedx.core.djangolib.markup import HTML, Text +%> +<%block name="track_selection_certificate_bullets"> +
+ +
+ + +<%block name="track_selection_audit_bullets"> +
+ +
+