+
{{ __('Submission by') }} {{ user.data?.full_name }}
@@ -115,13 +118,7 @@
:readonly="!canModifyAssignment"
/>
-
-
- {{ __('Write your answer here') }}
-
-
-
-
+
{{ __('Comments by Evaluator') }}:
-
- {{ submissionResource.doc.comments }}
-
+
@@ -204,7 +199,6 @@ const answer = ref(null)
const comments = ref(null)
const router = useRouter()
const user = inject('$user')
-const showTitle = router.currentRoute.value.name == 'AssignmentSubmission'
const isDirty = ref(false)
const props = defineProps({
@@ -216,6 +210,10 @@ const props = defineProps({
type: String,
default: 'new',
},
+ showTitle: {
+ type: Boolean,
+ default: true,
+ },
})
onMounted(() => {
@@ -359,6 +357,7 @@ const addNewSubmission = () => {
assignmentID: props.assignmentID,
submissionName: data.name,
},
+ query: { fromLesson: router.currentRoute.value.query.fromLesson },
})
} else {
markLessonProgress()
diff --git a/frontend/src/components/AssignmentBlock.vue b/frontend/src/components/AssignmentBlock.vue
deleted file mode 100644
index 2a9d12cf..00000000
--- a/frontend/src/components/AssignmentBlock.vue
+++ /dev/null
@@ -1,46 +0,0 @@
-
-
-
-
- {{ __('Please login to access the assignment.') }}
-
-
-
-
-
diff --git a/frontend/src/components/NoSidebarLayout.vue b/frontend/src/components/NoSidebarLayout.vue
new file mode 100644
index 00000000..5e883c3b
--- /dev/null
+++ b/frontend/src/components/NoSidebarLayout.vue
@@ -0,0 +1,11 @@
+
+
+
diff --git a/frontend/src/components/Quiz.vue b/frontend/src/components/Quiz.vue
index 165e666f..25999a19 100644
--- a/frontend/src/components/Quiz.vue
+++ b/frontend/src/components/Quiz.vue
@@ -1,7 +1,7 @@
{{
@@ -29,7 +29,7 @@
).format(quiz.data.passing_percentage)
}}
-
+
{{
__('You can attempt this quiz {0}.').format(
quiz.data.max_attempts == 1
@@ -52,7 +52,7 @@
-
+
{{ quiz.data.title }}
-
+
{{
__(
'You have already exceeded the maximum number of attempts allowed for this quiz.'
@@ -222,11 +222,14 @@
-
-
+
+
{{ __('Quiz Summary') }}
-
+
{{
__(
"Your submission has been successfully saved. The instructor will review and grade it shortly, and you'll be notified of your final result."
@@ -613,7 +616,6 @@ const getInstructions = (question) => {
}
const markLessonProgress = () => {
- console.log(router)
if (router.currentRoute.value.name == 'Lesson') {
call('lms.lms.api.mark_lesson_progress', {
course: router.currentRoute.value.params.courseName,
diff --git a/frontend/src/pages/AssignmentSubmission.vue b/frontend/src/pages/AssignmentSubmission.vue
index 02006eb6..c6fb1c48 100644
--- a/frontend/src/pages/AssignmentSubmission.vue
+++ b/frontend/src/pages/AssignmentSubmission.vue
@@ -1,19 +1,25 @@