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

OO-1068: show the message that the test is already used in a course and the edition is limited

parent aaeb7d62
No related branches found
No related tags found
No related merge requests found
......@@ -313,10 +313,10 @@ public class QTIEditorMainController extends MainLayoutBasicController implement
if(notEditable) {
//test not editable
VelocityContainer notEditable = createVelocityContainer("notEditable");
notEditableButton = LinkFactory.createButton("ok", notEditable, this);
VelocityContainer notEditableVc = createVelocityContainer("notEditable");
notEditableButton = LinkFactory.createButton("ok", notEditableVc, this);
Panel panel = new Panel("notEditable");
panel.setContent(notEditable);
panel.setContent(notEditableVc);
columnLayoutCtr = new LayoutMain3ColsController(ureq, getWindowControl(), null, panel, null);
putInitialPanel(columnLayoutCtr.getInitialComponent());
return;
......@@ -390,7 +390,7 @@ public class QTIEditorMainController extends MainLayoutBasicController implement
String text = translate("qti.restricted.edit.warning") + "<br/><br/>" + createReferenceesMsg(ureq);
proceedRestricedEditDialog = DialogBoxUIFactory.createYesNoDialog(ureq, getWindowControl(), null, text);
listenTo(proceedRestricedEditDialog);
//activate is done by the activate method of the editor.
proceedRestricedEditDialog.activate();
}
}
......
<fieldset>
<legend>$r.translate("error.header")</legend>
<p>
$r.translate("info.alien.test")
<p>
$r.render("ok")
<div class="o_warning">$r.translate("info.alien.test")</div>
<div class="o_button_group">$r.render("ok")</div>
</fieldset>
\ No newline at end of file
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