diff --git a/edx-platform/pearson-pathways-theme/lms/templates/courseware/course_about.html b/edx-platform/pearson-pathways-theme/lms/templates/courseware/course_about.html index 8c1ebd83..a919377f 100644 --- a/edx-platform/pearson-pathways-theme/lms/templates/courseware/course_about.html +++ b/edx-platform/pearson-pathways-theme/lms/templates/courseware/course_about.html @@ -217,21 +217,44 @@

%endif - % if pre_requisite_courses: - <% prc_target = reverse('about_course', args=[text_type(pre_requisite_courses[0]['key'])]) %> -
  • - -

    ${_("Prerequisites")}

    - ## Multiple pre-requisite courses are not supported on frontend that's why we are pulling first element - ${pre_requisite_courses[0]['display']} -

    - ${Text(_("You must successfully complete {link_start}{prc_display}{link_end} before you begin this course.")).format( - link_start=HTML('').format(prc_target), - link_end=HTML(''), - prc_display=pre_requisite_courses[0]['display'], - )} -

    -
  • + % if course_requirements: + % if student_not_enrollment_in_requirement: +
  • + +

    ${_("Prerequisites")}

    + ## Multiple pre-requisite courses are not supported on frontend that's why we are pulling first element + + + ${course_requirements['display']} + + +

    + ${Text(_("You must successfully complete {link_start}{prc_display}{link_end} before you begin this course.")).format( + link_start=HTML('').format( + ecommerce_payment_page=ecommerce_payment_page, + student_not_enrollment_in_requirement=student_not_enrollment_in_requirement, + ), + link_end=HTML(''), + prc_display=course_requirements['display'], + )} +

    +
  • + %else: + <% prc_target = reverse('about_course', args=[text_type(course_requirements['key'])]) %> +
  • + +

    ${_("Prerequisites")}

    + ## Multiple pre-requisite courses are not supported on frontend that's why we are pulling first element + ${course_requirements['display']} +

    + ${Text(_("You must successfully complete {link_start}{prc_display}{link_end} before you begin this course.")).format( + link_start=HTML('').format(prc_target), + link_end=HTML(''), + prc_display=course_requirements['display'], + )} +

    +
  • + %endif % endif % if get_course_about_section(request, course, "prerequisites"): diff --git a/edx-platform/pearson-pathways-theme/lms/templates/dashboard.html b/edx-platform/pearson-pathways-theme/lms/templates/dashboard.html index bd69f21e..29edaf39 100644 --- a/edx-platform/pearson-pathways-theme/lms/templates/dashboard.html +++ b/edx-platform/pearson-pathways-theme/lms/templates/dashboard.html @@ -237,7 +237,7 @@

    ${_("My Courses")}

    is_course_blocked = (session_id in block_courses) course_verification_status = verification_status_by_course.get(session_id, {}) course_requirements = courses_requirements_not_met.get(session_id) - student_not_enrollment_in_requirement = sku_not_enrollment_in_requirement + student_not_enrollment_in_requirement = sku_not_enrollment_in_requirement.get(session_id) related_programs = inverted_programs.get(six.text_type(entitlement.course_uuid if is_unfulfilled_entitlement else session_id)) show_consent_link = (session_id in consent_required_courses) course_overview = enrollment.course_overview diff --git a/edx-platform/pearson-pathways-theme/lms/templates/dashboard/_dashboard_course_listing.html b/edx-platform/pearson-pathways-theme/lms/templates/dashboard/_dashboard_course_listing.html index 9726d69e..54e25c51 100644 --- a/edx-platform/pearson-pathways-theme/lms/templates/dashboard/_dashboard_course_listing.html +++ b/edx-platform/pearson-pathways-theme/lms/templates/dashboard/_dashboard_course_listing.html @@ -500,8 +500,16 @@

    ${_('Your current verification will expire soon.')} - You must successfully complete ${Text(_("{prc_display}")).format( - prc_display=course_requirements['courses'][0]['display'])} before you begin this course. +

    + ${Text(_("You must successfully complete {link_start}{prc_display}{link_end} before you begin this course.")).format( + link_start=HTML('').format( + ecommerce_payment_page=ecommerce_payment_page, + student_not_enrollment_in_requirement=student_not_enrollment_in_requirement, + ), + link_end=HTML(''), + prc_display=course_requirements['courses'][0]['display'], + )} +

    %else: ## Multiple pre-requisite courses are not supported on frontend that's why we are pulling first element