feat: exercise form and submission list
This commit is contained in:
@@ -45,7 +45,7 @@ export class Quiz {
|
||||
this.wrapper.innerHTML = `<iframe src="/lms/quiz/${quiz}?fromLesson=1" class="w-full h-[500px]"></iframe>`
|
||||
return
|
||||
}
|
||||
this.wrapper.innerHTML = `<div class='border rounded-md p-10 text-center bg-surface-menu-bar mb-2'>
|
||||
this.wrapper.innerHTML = `<div class='border rounded-md p-4 text-center bg-surface-menu-bar mb-4'>
|
||||
<span class="font-medium">
|
||||
Quiz: ${quiz}
|
||||
</span>
|
||||
@@ -68,7 +68,8 @@ export class Quiz {
|
||||
app.mount(this.wrapper)
|
||||
}
|
||||
|
||||
save(blockContent) {
|
||||
save() {
|
||||
if (Object.keys(this.data).length === 0) return {}
|
||||
return {
|
||||
quiz: this.data.quiz,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user