From 041157a85f3961cf82027b70212d35cdadc7e420 Mon Sep 17 00:00:00 2001 From: Jannat Patel Date: Tue, 28 Jun 2022 18:00:53 +0530 Subject: [PATCH 1/2] fix: subtitle field for testimonial and course cards --- .../course_cards/course_cards.html | 3 +++ .../course_cards/course_cards.json | 14 +++++++---- .../multiple_testimonials.html | 24 ++++++++++++------- .../multiple_testimonials.json | 8 ++++++- 4 files changed, 35 insertions(+), 14 deletions(-) diff --git a/lms/lms/web_template/course_cards/course_cards.html b/lms/lms/web_template/course_cards/course_cards.html index cb532555..73749156 100644 --- a/lms/lms/web_template/course_cards/course_cards.html +++ b/lms/lms/web_template/course_cards/course_cards.html @@ -1,6 +1,9 @@
{% include "public/icons/symbol-defs.svg" %}

{{ _(title) }}

+ {% if subtitle %} +

{{ _(subtitle) }}

+ {% endif %}
{% for course_row in courses %} {% set course = frappe.db.get_value("LMS Course", course_row.course, diff --git a/lms/lms/web_template/course_cards/course_cards.json b/lms/lms/web_template/course_cards/course_cards.json index 8d58dcd9..fd9c696e 100644 --- a/lms/lms/web_template/course_cards/course_cards.json +++ b/lms/lms/web_template/course_cards/course_cards.json @@ -5,21 +5,25 @@ "doctype": "Web Template", "fields": [ { - "__unsaved": 1, "fieldname": "title", "fieldtype": "Data", "label": "Title", - "reqd": 0 + "reqd": 1 }, { "__unsaved": 1, + "fieldname": "subtitle", + "fieldtype": "Small Text", + "label": "Subtitle", + "reqd": 0 + }, + { "fieldname": "courses", "fieldtype": "Table Break", "label": "Courses", "reqd": 0 }, { - "__unsaved": 1, "fieldname": "course", "fieldtype": "Link", "label": "Course", @@ -27,8 +31,8 @@ "reqd": 0 } ], - "idx": 0, - "modified": "2021-08-26 10:35:35.903834", + "idx": 2, + "modified": "2022-06-28 17:15:55.981008", "modified_by": "Administrator", "module": "LMS", "name": "Course Cards", diff --git a/lms/lms/web_template/multiple_testimonials/multiple_testimonials.html b/lms/lms/web_template/multiple_testimonials/multiple_testimonials.html index b316f910..db408d92 100644 --- a/lms/lms/web_template/multiple_testimonials/multiple_testimonials.html +++ b/lms/lms/web_template/multiple_testimonials/multiple_testimonials.html @@ -1,17 +1,25 @@ -

{{ _(title) }}

-