diff --git a/src/main/java/ch/ethz/seb/sebserver/gui/content/ExamForm.java b/src/main/java/ch/ethz/seb/sebserver/gui/content/ExamForm.java index 030a3ebe..55de20bc 100644 --- a/src/main/java/ch/ethz/seb/sebserver/gui/content/ExamForm.java +++ b/src/main/java/ch/ethz/seb/sebserver/gui/content/ExamForm.java @@ -104,6 +104,8 @@ public class ExamForm implements TemplateComposer { new LocTextKey("sebserver.exam.form.quizurl"); private static final LocTextKey FORM_LMSSETUP_TEXT_KEY = new LocTextKey("sebserver.exam.form.lmssetup"); + private final static LocTextKey ACTION_MESSAGE_SEB_RESTRICTION_RELEASE = + new LocTextKey("sebserver.exam.action.sebrestriction.release.confirm"); private final static LocTextKey CONSISTENCY_MESSAGE_TITLE = new LocTextKey("sebserver.exam.consistency.title"); @@ -407,6 +409,7 @@ public class ExamForm implements TemplateComposer { && BooleanUtils.isFalse(isRestricted)) .newAction(ActionDefinition.EXAM_DISABLE_SEB_RESTRICTION) + .withConfirm(() -> ACTION_MESSAGE_SEB_RESTRICTION_RELEASE) .withEntityKey(entityKey) .withExec(action -> this.examSEBRestrictionSettings.setSEBRestriction(action, false, this.restService)) .publishIf(() -> sebRestrictionAvailable && readonly && modifyGrant && !importFromQuizData diff --git a/src/main/resources/messages.properties b/src/main/resources/messages.properties index c0af9223..ad9c9669 100644 --- a/src/main/resources/messages.properties +++ b/src/main/resources/messages.properties @@ -457,6 +457,7 @@ sebserver.exam.action.sebrestriction.enable=Apply SEB Lock sebserver.exam.action.sebrestriction.disable=Release SEB Lock sebserver.exam.action.sebrestriction.details=SEB Restriction Details sebserver.exam.action.createClientToStartExam=Export Exam Connection Configuration +sebserver.exam.action.sebrestriction.release.confirm=You are about to release the SEB restriction lock for this exam on the LMS.
Are you sure you want to release the SEB restriction? sebserver.exam.info.pleaseSelect=At first please select an Exam from the list