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

OO-1750: hide shuffle answers option for fib and essay, hide hints for essay

parent a099af51
No related branches found
No related tags found
No related merge requests found
...@@ -252,6 +252,7 @@ public class ItemMetadataFormController extends FormBasicController { ...@@ -252,6 +252,7 @@ public class ItemMetadataFormController extends FormBasicController {
// Shuffle Answers // Shuffle Answers
shuffle = uifactory.addRadiosHorizontal("shuffle", "form.imd.shuffle", formLayout, yesnoKeys, yesnoValues); shuffle = uifactory.addRadiosHorizontal("shuffle", "form.imd.shuffle", formLayout, yesnoKeys, yesnoValues);
shuffle.setEnabled(!isRestrictedEditMode); shuffle.setEnabled(!isRestrictedEditMode);
shuffle.setVisible(t != Question.TYPE_ESSAY && t != Question.TYPE_FIB);
if (item.getQuestion().isShuffle()) { if (item.getQuestion().isShuffle()) {
shuffle.select("y", true); shuffle.select("y", true);
} else { } else {
...@@ -263,6 +264,7 @@ public class ItemMetadataFormController extends FormBasicController { ...@@ -263,6 +264,7 @@ public class ItemMetadataFormController extends FormBasicController {
showHints = uifactory.addRadiosHorizontal("showHints", "form.imd.solutionhints.show", formLayout, yesnoKeys, yesnoValues); showHints = uifactory.addRadiosHorizontal("showHints", "form.imd.solutionhints.show", formLayout, yesnoKeys, yesnoValues);
showHints.setEnabled(!isRestrictedEditMode); showHints.setEnabled(!isRestrictedEditMode);
showHints.addActionListener(FormEvent.ONCLICK); // Radios/Checkboxes need onclick because of IE bug OLAT-5753 showHints.addActionListener(FormEvent.ONCLICK); // Radios/Checkboxes need onclick because of IE bug OLAT-5753
showHints.setVisible(t != Question.TYPE_ESSAY);
hint = uifactory.addRichTextElementForStringData("hint", "form.imd.solutionhints", item.getQuestion().getHintText(), 8, -1, hint = uifactory.addRichTextElementForStringData("hint", "form.imd.solutionhints", item.getQuestion().getHintText(), 8, -1,
true, qti.getBaseDir(), null, formLayout, ureq.getUserSession(), getWindowControl()); true, qti.getBaseDir(), null, formLayout, ureq.getUserSession(), getWindowControl());
......
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