-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PAE-845 Add custom prerequisites functionality to improve learner experience #189
base: open-release/juniper.stage
Are you sure you want to change the base?
Conversation
There is another page where you have to extend this feature in order to be consistent. Please take a look at course_about.html and check the about course page lms-site/courses/{id-course-with-prerequisite}/about. So here, It will still be behaving as normal. @anfbermudezme |
edx-platform/pearson-pathways-theme/lms/templates/dashboard/_dashboard_course_listing.html
Outdated
Show resolved
Hide resolved
c9b2bd8
to
8bbe3fb
Compare
6965d8d
to
f765e1d
Compare
<div class="prerequisites"> | ||
You must successfully complete <a href="${ecommerce_payment_page}?sku=${student_not_enrollment_in_requirement}">${Text(_("{prc_display}")).format( | ||
prc_display=course_requirements['courses'][0]['display'],)}</a> before you begin this course. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use the same syntax as the existing code. @anfbermudezme
<p class="tip"> | ||
${Text(_("You must successfully complete {link_start}{prc_display}{link_end} before you begin this course.")).format( | ||
link_start=HTML('<a href="{ecommerce_payment_page}?sku={student_not_enrollment_in_requirement}">').format( | ||
ecommerce_payment_page=ecommerce_payment_page, | ||
student_not_enrollment_in_requirement=student_not_enrollment_in_requirement, | ||
), | ||
link_end=HTML('</a>'), | ||
prc_display=course_requirements['courses'][0]['display'], | ||
)} | ||
</p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use the same syntax as the existing code. @anfbermudezme
This PR is on hold down due to business decisions
To improve the learner experience, Following the logic:
For this, add backend functionality to sort courses_requirements_not_met variable if the learner is enrolled and if the learnor is not enrolled find the sku for verified mode of the course requirement, to redirect the link:
For this it's necessary pull the PR's https://github.com/Pearson-Advance/pearson-core/pull/25 and Pearson-Advance/edx-platform#59.
Also in the course about view for the course with prerequisites the links have the same behavior of the learner dashboard, that means, About course if the learner is enrolled and basket sku if the learner is not enrolled.