web template for recently published courses
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
<div>
|
||||
<h3 class="section-title">{{ _(title) }}</h3>
|
||||
{% if subtitle %}
|
||||
<p> {{ _(subtitle) }} </p>
|
||||
{% endif %}
|
||||
|
||||
<div class="cards-parent mt-10">
|
||||
{% set courses = frappe.db.get_list('LMS Course',
|
||||
fields=["name", "short_introduction", "upcoming", "title", "image", "currency", "enable_certification", "paid_course"], order_by="published_on desc", page_length=courses_count) %}
|
||||
{% for course in courses %}
|
||||
{{ widgets.CourseCard(course=course, read_only=False) }}
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
||||
<a class="d-flex justify-content-center align-items-center mt-12" href="/lms/courses">
|
||||
<span>{{ _("Explore More") }}</span>
|
||||
</a>
|
||||
</div>
|
||||
@@ -0,0 +1,42 @@
|
||||
{
|
||||
"__islocal": true,
|
||||
"__unsaved": 1,
|
||||
"creation": "2024-06-17 00:39:23.948378",
|
||||
"docstatus": 0,
|
||||
"doctype": "Web Template",
|
||||
"fields": [
|
||||
{
|
||||
"__islocal": 1,
|
||||
"__unsaved": 1,
|
||||
"fieldname": "title",
|
||||
"fieldtype": "Data",
|
||||
"label": "Title",
|
||||
"reqd": 0
|
||||
},
|
||||
{
|
||||
"__islocal": 1,
|
||||
"__unsaved": 1,
|
||||
"fieldname": "subtitle",
|
||||
"fieldtype": "Data",
|
||||
"label": "Subtitle",
|
||||
"reqd": 0
|
||||
},
|
||||
{
|
||||
"__islocal": 1,
|
||||
"__unsaved": 1,
|
||||
"fieldname": "courses_count",
|
||||
"fieldtype": "Data",
|
||||
"label": "Count of courses to display",
|
||||
"reqd": 0
|
||||
}
|
||||
],
|
||||
"idx": 0,
|
||||
"modified": "2024-06-17 00:39:23.948378",
|
||||
"modified_by": "Administrator",
|
||||
"module": "LMS",
|
||||
"name": "Recently Published Courses",
|
||||
"owner": "Administrator",
|
||||
"standard": 1,
|
||||
"template": "",
|
||||
"type": "Section"
|
||||
}
|
||||
Reference in New Issue
Block a user