diff --git a/src/main/webapp/app/exam/participate/exercises/quiz/quiz-exam-submission.component.ts b/src/main/webapp/app/exam/participate/exercises/quiz/quiz-exam-submission.component.ts
index f967003238ba..26aa88a762d5 100644
--- a/src/main/webapp/app/exam/participate/exercises/quiz/quiz-exam-submission.component.ts
+++ b/src/main/webapp/app/exam/participate/exercises/quiz/quiz-exam-submission.component.ts
@@ -1,4 +1,4 @@
-import { ChangeDetectorRef, Component, Input, OnInit, QueryList, ViewChildren } from '@angular/core';
+import { ChangeDetectorRef, Component, Input, OnInit, QueryList, ViewChildren, output } from '@angular/core';
import { Exercise, ExerciseType, IncludedInOverallScore } from 'app/entities/exercise.model';
import { AbstractQuizSubmission } from 'app/entities/quiz/abstract-quiz-exam-submission.model';
import { AnswerOption } from 'app/entities/quiz/answer-option.model';
@@ -53,6 +53,8 @@ export class QuizExamSubmissionComponent extends ExamSubmissionComponent impleme
@Input() examTimeline = false;
@Input() quizConfiguration: QuizConfiguration;
+ saveCurrentExercise = output
();
+
selectedAnswerOptions = new Map();
dragAndDropMappings = new Map();
shortAnswerSubmittedTexts = new Map();
@@ -285,4 +287,11 @@ export class QuizExamSubmissionComponent extends ExamSubmissionComponent impleme
this.submissionVersion = submissionVersion;
this.updateViewFromSubmissionVersion();
}
+
+ /**
+ * Trigger save action in exam participation component
+ */
+ notifyTriggerSave() {
+ this.saveCurrentExercise.emit();
+ }
}
diff --git a/src/main/webapp/app/exam/participate/exercises/text/text-exam-submission.component.html b/src/main/webapp/app/exam/participate/exercises/text/text-exam-submission.component.html
index cc0a6fba438f..4087130be3ea 100644
--- a/src/main/webapp/app/exam/participate/exercises/text/text-exam-submission.component.html
+++ b/src/main/webapp/app/exam/participate/exercises/text/text-exam-submission.component.html
@@ -1,17 +1,20 @@
@if (exercise) {
-
-
- {{ exercise.exerciseGroup?.title }}
-
-
- ({{ exercise.maxPoints }} {{ 'artemisApp.examParticipation.points' | artemisTranslate }}@if (exercise.bonusPoints) {
+
+
+
+ {{ exercise.exerciseGroup?.title }}
+
, {{ exercise.bonusPoints }} {{ 'artemisApp.examParticipation.bonus' | artemisTranslate }}
- }) @if (exercise.includedInOverallScore !== IncludedInOverallScore.INCLUDED_COMPLETELY) {
-
- }
-
+ [jhiTranslate]="exercise.bonusPoints ? 'artemisApp.examParticipation.bonus' : 'artemisApp.examParticipation.points'"
+ [translateValues]="{ points: exercise.maxPoints, bonusPoints: exercise.bonusPoints }"
+ >
+
+ @if (exercise.includedInOverallScore !== IncludedInOverallScore.INCLUDED_COMPLETELY) {
+
+ }
+
+
+
@@ -40,7 +43,7 @@
-