fix: course card descriptions
This commit is contained in:
@@ -533,7 +533,16 @@ def get_courses_under_review():
|
|||||||
return frappe.get_all(
|
return frappe.get_all(
|
||||||
"LMS Course",
|
"LMS Course",
|
||||||
{"status": "Under Review"},
|
{"status": "Under Review"},
|
||||||
["name", "upcoming", "title", "image", "enable_certification", "status", "published"],
|
[
|
||||||
|
"name",
|
||||||
|
"upcoming",
|
||||||
|
"title",
|
||||||
|
"short_introduction",
|
||||||
|
"image",
|
||||||
|
"enable_certification",
|
||||||
|
"status",
|
||||||
|
"published",
|
||||||
|
],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,8 @@
|
|||||||
<div class="cards-parent mt-10">
|
<div class="cards-parent mt-10">
|
||||||
{% for course_row in courses %}
|
{% for course_row in courses %}
|
||||||
{% set course = frappe.db.get_value("LMS Course", course_row.course,
|
{% set course = frappe.db.get_value("LMS Course", course_row.course,
|
||||||
["name", "upcoming", "title", "image", "enable_certification", "paid_certificate", "price_certificate", "currency"], as_dict=True) %}
|
["name", "short_introduction", "upcoming", "title", "image", "currency",
|
||||||
|
"enable_certification", "paid_certificate", "price_certificate"], as_dict=True) %}
|
||||||
{{ widgets.CourseCard(course=course, read_only=False) }}
|
{{ widgets.CourseCard(course=course, read_only=False) }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -100,6 +100,7 @@ def get_enrolled_courses():
|
|||||||
"name",
|
"name",
|
||||||
"upcoming",
|
"upcoming",
|
||||||
"title",
|
"title",
|
||||||
|
"short_introduction",
|
||||||
"image",
|
"image",
|
||||||
"enable_certification",
|
"enable_certification",
|
||||||
"paid_certificate",
|
"paid_certificate",
|
||||||
@@ -145,6 +146,7 @@ def get_authored_courses(member=None, only_published=True):
|
|||||||
"name",
|
"name",
|
||||||
"upcoming",
|
"upcoming",
|
||||||
"title",
|
"title",
|
||||||
|
"short_introduction",
|
||||||
"image",
|
"image",
|
||||||
"enable_certification",
|
"enable_certification",
|
||||||
"status",
|
"status",
|
||||||
|
|||||||
Reference in New Issue
Block a user