feat: dashboard web templates

This commit is contained in:
Jannat Patel
2021-10-21 12:53:36 +05:30
parent 5ae5bab76b
commit bb62f626fd
10 changed files with 174 additions and 102 deletions

View File

@@ -130,9 +130,8 @@
Courses Mentored
</div>
<div class="cards-parent">
{% for mentorship in member.get_mentored_courses() %}
{% set course_details = frappe.get_doc("LMS Course", mentorship.course) %}
{{ widgets.CourseCard(course=course_details, read_only=read_only) }}
{% for course in member.get_mentored_courses() %}
{{ widgets.CourseCard(course=course, read_only=read_only) }}
{% endfor %}
</div>
</div>