fix: paid course details on course card template
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
{% for course_row in courses %}
|
||||
{% set course = frappe.db.get_value("LMS Course", course_row.course,
|
||||
["name", "short_introduction", "upcoming", "title", "image", "currency",
|
||||
"enable_certification", "paid_certificate", "price_certificate"], as_dict=True) %}
|
||||
"enable_certification", "paid_course", "course_price"], as_dict=True) %}
|
||||
{{ widgets.CourseCard(course=course, read_only=False) }}
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
||||
@@ -122,9 +122,11 @@
|
||||
|
||||
{{ Notes(course) }}
|
||||
|
||||
{% if course.paid_course %}
|
||||
<div class="vertically-center mb-3 bold-heading">
|
||||
{{ frappe.utils.fmt_money(course.course_price, 0, course.currency) }}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<div class="vertically-center mb-3">
|
||||
<svg class="icon icon-md mr-1">
|
||||
|
||||
Reference in New Issue
Block a user