fix: add partial_fbe.html

This commit is contained in:
Phillip Shiu
2021-09-01 09:25:40 -04:00
parent 2e5b922692
commit 359f3cf3f6
3 changed files with 42 additions and 0 deletions

View File

@@ -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)

View File

@@ -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" />
<%!

View File

@@ -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">
<div class="choice-bullets track-selection-type-partial-fbe">
<ul>
<li>${Text(_("Showcase a {link_start}verified certificate{link_end} of completion on your resumé to advance your career")).format(
link_start=HTML('<b><u><a class="verified" href="https://www.edx.org/verified-certificate" target="_blank">'),
link_end=HTML('</a></u></b>'),
)}</li>
<li>${Text(_("Support our {start_bold}mission{end_bold} to increase access to high-quality education for everyone, everywhere")).format(
start_bold=HTML('<b>'),
end_bold=HTML('</b>'),
)}</li>
</ul>
</div>
</%block>
<%block name="track_selection_audit_bullets">
<div class="choice-bullets track-selection-type-partial-fbe">
<ul>
<li>${_("Get access to the course material, including videos and readings")}</li>
<li>${_("Some graded content may be lost")}</li>
</ul>
</div>
</%block>