feat: testimonials template
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
<div class="course-home-headings section-heading text-center"> {{ _(title) }} </div>
|
||||
<div class="cards-parent">
|
||||
{% for testimonial_row in testimonials_table %}
|
||||
{% set review = frappe.db.get_value("LMS Course Review", testimonial_row.testimonials, ["owner", "review"], as_dict=True) %}
|
||||
<div class="common-card-style testimonial-card">
|
||||
{% set member = frappe.get_doc("User", review.owner) %}
|
||||
<div class="d-flex">
|
||||
{{ widgets.Avatar(member=member, avatar_class="avatar-testimonial") }}
|
||||
<div>
|
||||
<div class="" >{{ member.full_name }}</div>
|
||||
{% if member.profession %}<div style="font-size: 14px;">{{ member.profession }}</div> {% endif %}
|
||||
</div>
|
||||
</div>
|
||||
{{ review.review }}
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
@@ -0,0 +1,42 @@
|
||||
{
|
||||
"__unsaved": 1,
|
||||
"creation": "2021-11-16 15:22:21.788234",
|
||||
"docstatus": 0,
|
||||
"doctype": "Web Template",
|
||||
"fields": [
|
||||
{
|
||||
"__islocal": 1,
|
||||
"__unsaved": 1,
|
||||
"fieldname": "title",
|
||||
"fieldtype": "Data",
|
||||
"label": "Title",
|
||||
"reqd": 0
|
||||
},
|
||||
{
|
||||
"__islocal": 1,
|
||||
"__unsaved": 1,
|
||||
"fieldname": "testimonials_table",
|
||||
"fieldtype": "Table Break",
|
||||
"label": "Testimonials",
|
||||
"reqd": 0
|
||||
},
|
||||
{
|
||||
"__islocal": 1,
|
||||
"__unsaved": 1,
|
||||
"fieldname": "testimonials",
|
||||
"fieldtype": "Link",
|
||||
"label": "Testimonials",
|
||||
"options": "LMS Course Review",
|
||||
"reqd": 0
|
||||
}
|
||||
],
|
||||
"idx": 0,
|
||||
"modified": "2021-11-16 17:17:49.089989",
|
||||
"modified_by": "Administrator",
|
||||
"module": "Community",
|
||||
"name": "Multiple Testimonials",
|
||||
"owner": "Administrator",
|
||||
"standard": 1,
|
||||
"template": "",
|
||||
"type": "Section"
|
||||
}
|
||||
Reference in New Issue
Block a user