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