Skip to content
Snippets Groups Projects
Commit 048532a7 authored by srosse's avatar srosse
Browse files

OO-3111: more read only for QTI question

parent a0d30a23
No related branches found
No related tags found
No related merge requests found
......@@ -119,7 +119,9 @@ public class ChoiceScoreController extends AssessmentItemRefEditorController imp
String[] choiceKeys = new String[0];
String[] choiceValues = new String[0];
maxChoicesEl = uifactory.addDropdownSingleselect("max.choices", formLayout, choiceKeys, choiceValues, null);
maxChoicesEl.setEnabled(!restrictedEdit && !readOnly);
minChoicesEl = uifactory.addDropdownSingleselect("min.choices", formLayout, choiceKeys, choiceValues, null);
minChoicesEl.setEnabled(!restrictedEdit && !readOnly);
updateMinMaxChoices();
String[] modeValues = new String[]{
......
......@@ -176,6 +176,7 @@ public class MultipleChoiceEditorController extends FormBasicController {
String choiceId = "answer" + count++;
RichTextElement choiceEl = uifactory.addRichTextElementForQTI21(choiceId, "form.imd.answer", choiceContent, 8, -1, itemContainer,
answersCont, ureq.getUserSession(), getWindowControl());
choiceEl.setEnabled(!readOnly);
choiceEl.getEditorConfiguration().setSimplestTextModeAllowed(TextMode.oneLine);
choiceEl.setUserObject(choice);
answersCont.add("choiceId", choiceEl);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment