From 0f2d60534dedf62ba1ced746cb4d60f75a0288b7 Mon Sep 17 00:00:00 2001 From: emmanuel Date: Fri, 20 Oct 2023 04:16:07 +0000 Subject: [PATCH] CLASSROOMIO-T-154: Notify tutors when a student submits an exercise CLASSROOMIO-T-154: Fix textarea grade issue CLASSROOMIO-T-154: Get it to work properly Merge branch 'CLASSROOMIO-T-154' of https://gitlab.com/thenextgreat/classroomio into CLASSROOMIO-T-154 CLASSROOMIO-T-154: PR fixes CLASSROOMIO-T-154:Updated the code Merge branch 'main' into CLASSROOMIO-T-154 CLASSROOMIO-T-154:Notify tutors when a student submits an exercise Co-authored-by: Ifeanyi Nwosu Co-authored-by: Rotimi Best Merge-request: CLASSROOMIO-MR-109 Merged-by: Best Admin --- .../Lesson/Exercise/MarkExerciseModal.svelte | 37 ++++++++-------- .../Lesson/Exercise/ViewMode.svelte | 43 +++++++++++++++++-- .../components/Lesson/Exercise/index.svelte | 10 +++-- .../Course/components/Navigation/index.svelte | 4 +- .../Question/CheckboxQuestion/index.svelte | 21 +++------ src/lib/components/Question/Grade.svelte | 21 +++++++++ .../Question/RadioQuestion/index.svelte | 23 +++------- .../Question/TextareaQuestion/index.svelte | 25 +++-------- src/lib/utils/functions/course.ts | 3 ++ .../services/notification/notification.ts | 6 ++- src/lib/utils/types/index.ts | 1 + .../exercise_submission_update/+server.js | 38 ++++++++++++++++ .../email/course/submission_update/+server.js | 2 +- src/routes/courses/[id]/people/+page.svelte | 5 +-- .../courses/[id]/submissions/+page.svelte | 11 ++--- 15 files changed, 159 insertions(+), 91 deletions(-) create mode 100644 src/lib/components/Question/Grade.svelte create mode 100644 src/routes/api/email/course/exercise_submission_update/+server.js diff --git a/src/lib/components/Course/components/Lesson/Exercise/MarkExerciseModal.svelte b/src/lib/components/Course/components/Lesson/Exercise/MarkExerciseModal.svelte index e7741398..1597751c 100644 --- a/src/lib/components/Course/components/Lesson/Exercise/MarkExerciseModal.svelte +++ b/src/lib/components/Course/components/Lesson/Exercise/MarkExerciseModal.svelte @@ -88,23 +88,6 @@ />
-
- +
+
+ { + handleSave(data); + }} + label="Submit Grades" + variant={VARIANTS.CONTAINED_SUCCESS} + className="py-3 px-8 w-full" + /> +