Merge pull request #610 from pateljannat/ins-notes
fix: instructor notes
This commit is contained in:
@@ -152,7 +152,9 @@ def get_lesson_details(chapter):
|
|||||||
lesson_details.number = flt(f"{chapter.idx}.{row.idx}")
|
lesson_details.number = flt(f"{chapter.idx}.{row.idx}")
|
||||||
lesson_details.icon = get_lesson_icon(lesson_details.body)
|
lesson_details.icon = get_lesson_icon(lesson_details.body)
|
||||||
if lesson_details.instructor_notes:
|
if lesson_details.instructor_notes:
|
||||||
lesson_details.instructor_notes = markdown_to_html(lesson_details.instructor_notes)
|
lesson_details.instructor_notes_html = markdown_to_html(
|
||||||
|
lesson_details.instructor_notes
|
||||||
|
)
|
||||||
|
|
||||||
lessons.append(lesson_details)
|
lessons.append(lesson_details)
|
||||||
return lessons
|
return lessons
|
||||||
|
|||||||
@@ -449,7 +449,7 @@ const make_instructor_notes_component = () => {
|
|||||||
fields: [
|
fields: [
|
||||||
{
|
{
|
||||||
fieldname: "instructor_notes",
|
fieldname: "instructor_notes",
|
||||||
fieldtype: "Text Editor",
|
fieldtype: "Text",
|
||||||
default: $("#current-instructor-notes").html(),
|
default: $("#current-instructor-notes").html(),
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -161,7 +161,7 @@
|
|||||||
{{ _("Instructor Notes") }}
|
{{ _("Instructor Notes") }}
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
{{ lesson.instructor_notes }}
|
{{ lesson.instructor_notes_html }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
Reference in New Issue
Block a user