Add modal window when clicking "Release SEB Lock" #3
This commit is contained in:
parent
def31a4669
commit
072930abb2
2 changed files with 4 additions and 0 deletions
|
@ -104,6 +104,8 @@ public class ExamForm implements TemplateComposer {
|
||||||
new LocTextKey("sebserver.exam.form.quizurl");
|
new LocTextKey("sebserver.exam.form.quizurl");
|
||||||
private static final LocTextKey FORM_LMSSETUP_TEXT_KEY =
|
private static final LocTextKey FORM_LMSSETUP_TEXT_KEY =
|
||||||
new LocTextKey("sebserver.exam.form.lmssetup");
|
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 =
|
private final static LocTextKey CONSISTENCY_MESSAGE_TITLE =
|
||||||
new LocTextKey("sebserver.exam.consistency.title");
|
new LocTextKey("sebserver.exam.consistency.title");
|
||||||
|
@ -407,6 +409,7 @@ public class ExamForm implements TemplateComposer {
|
||||||
&& BooleanUtils.isFalse(isRestricted))
|
&& BooleanUtils.isFalse(isRestricted))
|
||||||
|
|
||||||
.newAction(ActionDefinition.EXAM_DISABLE_SEB_RESTRICTION)
|
.newAction(ActionDefinition.EXAM_DISABLE_SEB_RESTRICTION)
|
||||||
|
.withConfirm(() -> ACTION_MESSAGE_SEB_RESTRICTION_RELEASE)
|
||||||
.withEntityKey(entityKey)
|
.withEntityKey(entityKey)
|
||||||
.withExec(action -> this.examSEBRestrictionSettings.setSEBRestriction(action, false, this.restService))
|
.withExec(action -> this.examSEBRestrictionSettings.setSEBRestriction(action, false, this.restService))
|
||||||
.publishIf(() -> sebRestrictionAvailable && readonly && modifyGrant && !importFromQuizData
|
.publishIf(() -> sebRestrictionAvailable && readonly && modifyGrant && !importFromQuizData
|
||||||
|
|
|
@ -457,6 +457,7 @@ sebserver.exam.action.sebrestriction.enable=Apply SEB Lock
|
||||||
sebserver.exam.action.sebrestriction.disable=Release SEB Lock
|
sebserver.exam.action.sebrestriction.disable=Release SEB Lock
|
||||||
sebserver.exam.action.sebrestriction.details=SEB Restriction Details
|
sebserver.exam.action.sebrestriction.details=SEB Restriction Details
|
||||||
sebserver.exam.action.createClientToStartExam=Export Exam Connection Configuration
|
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.<br/>Are you sure you want to release the SEB restriction?
|
||||||
|
|
||||||
sebserver.exam.info.pleaseSelect=At first please select an Exam from the list
|
sebserver.exam.info.pleaseSelect=At first please select an Exam from the list
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue