feat: edit existing lesson

This commit is contained in:
Jannat Patel
2023-05-03 17:41:18 +05:30
parent bbdfaa32e9
commit 4336839932
7 changed files with 168 additions and 44 deletions

View File

@@ -75,7 +75,7 @@ const save_course = (e) => {
indicator: "green",
});
setTimeout(() => {
window.location.href = `/courses/${data.message}`;
window.location.href = `/courses/${data.message}/outline`;
}, 1000);
},
});

View File

@@ -52,9 +52,12 @@
{{ chapter.title }}
</div>
</div>
{% if chapter.description %}
<div class="mb-2 ml-5 chapter-description">
{{ chapter.description }}
</div>
{% endif %}
{% for lesson in lessons %}
<div class="outline-lesson level">