Index: lams_tool_assessment/src/java/org/lamsfoundation/lams/tool/assessment/web/controller/AuthoringController.java =================================================================== diff -u -r3d4019df4427943688421ed16aac8c9ffdad257a -r1260e45458aeab2dd1bc862fb07096f514444aad --- lams_tool_assessment/src/java/org/lamsfoundation/lams/tool/assessment/web/controller/AuthoringController.java (.../AuthoringController.java) (revision 3d4019df4427943688421ed16aac8c9ffdad257a) +++ lams_tool_assessment/src/java/org/lamsfoundation/lams/tool/assessment/web/controller/AuthoringController.java (.../AuthoringController.java) (revision 1260e45458aeab2dd1bc862fb07096f514444aad) @@ -213,7 +213,7 @@ throw new ServletException(e); } - return "pages/authoring/authoring5"; + return "pages/authoring/authoring"; } /** @@ -349,7 +349,7 @@ request.setAttribute(CommonConstants.LAMS_AUTHORING_SUCCESS_FLAG, Boolean.TRUE); request.setAttribute(AssessmentConstants.ATTR_SESSION_MAP_ID, sessionMap.getSessionID()); - return "pages/authoring/authoring5"; + return "pages/authoring/authoring"; } /** @@ -485,9 +485,9 @@ //in case of edit in monitor and at least one attempted user, we show authoring page with restricted options boolean isAuthoringRestricted = (boolean) sessionMap.get(AssessmentConstants.ATTR_IS_AUTHORING_RESTRICTED); if (isAuthoringRestricted) { - return "pages/authoring/parts/questionlistRestricted5"; + return "pages/authoring/parts/questionlistRestricted"; } else { - return "pages/authoring/parts/questionlist5"; + return "pages/authoring/parts/questionlist"; } } @@ -563,7 +563,7 @@ // set session map ID so that itemlist.jsp can get sessionMAP request.setAttribute(AssessmentConstants.ATTR_SESSION_MAP_ID, sessionMapID); - return "pages/authoring/parts/questionlist5"; + return "pages/authoring/parts/questionlist"; } /** @@ -580,7 +580,7 @@ } // set session map ID so that itemlist.jsp can get sessionMAP request.setAttribute(AssessmentConstants.ATTR_SESSION_MAP_ID, sessionMapID); - return "pages/authoring/parts/questionlist5"; + return "pages/authoring/parts/questionlist"; } /** @@ -629,7 +629,7 @@ // set session map ID so that itemlist.jsp can get sessionMAP request.setAttribute(AssessmentConstants.ATTR_SESSION_MAP_ID, sessionMapID); - return "pages/authoring/parts/questionlist5"; + return "pages/authoring/parts/questionlist"; } /** @@ -663,7 +663,7 @@ List delList = getDeletedQuestionReferences(sessionMap); delList.add(questionReference); - return "pages/authoring/parts/questionlist5"; + return "pages/authoring/parts/questionlist"; } @RequestMapping(path = "/toggleQuestionRequired", method = RequestMethod.POST) Index: lams_tool_assessment/web/WEB-INF/tags/AuthoringButton.tag =================================================================== diff -u -r1abddf98cd1cef4c2bd78bedfa702e0908932ccd -r1260e45458aeab2dd1bc862fb07096f514444aad --- lams_tool_assessment/web/WEB-INF/tags/AuthoringButton.tag (.../AuthoringButton.tag) (revision 1abddf98cd1cef4c2bd78bedfa702e0908932ccd) +++ lams_tool_assessment/web/WEB-INF/tags/AuthoringButton.tag (.../AuthoringButton.tag) (revision 1260e45458aeab2dd1bc862fb07096f514444aad) @@ -24,7 +24,7 @@ /** * AuthoringButton.tag - * Author: Dapeng Ni + * Author: Dapeng Ni, Marcin Cieslak * Description: Creates the save/cancel button for authoring page */ @@ -122,12 +122,14 @@ window.close(); } -
- - - - - - +
+ + + +
\ No newline at end of file Fisheye: Tag 1260e45458aeab2dd1bc862fb07096f514444aad refers to a dead (removed) revision in file `lams_tool_assessment/web/WEB-INF/tags/AuthoringButton5.tag'. Fisheye: No comparison available. Pass `N' to diff? Index: lams_tool_assessment/web/WEB-INF/tags/OutcomeAuthor.tag =================================================================== diff -u -r6d2a3554753de6920d704a64c03dc48cc11599a8 -r1260e45458aeab2dd1bc862fb07096f514444aad --- lams_tool_assessment/web/WEB-INF/tags/OutcomeAuthor.tag (.../OutcomeAuthor.tag) (revision 6d2a3554753de6920d704a64c03dc48cc11599a8) +++ lams_tool_assessment/web/WEB-INF/tags/OutcomeAuthor.tag (.../OutcomeAuthor.tag) (revision 1260e45458aeab2dd1bc862fb07096f514444aad) @@ -1,6 +1,6 @@ <% /** - * Outcome.tag + * OutcomeAuthor.tag * Author: Marcin Cieslak * Description: Outcome selection in authoring */ @@ -24,21 +24,23 @@ <%-- ---------------------------------------%> - - - - -
- - -
-
- :
-
-
-
- -
- - -
-
- - -
-
- :
-
-
+
+ +
+
+ +
+
- - +
+
:
+
+
+
\ No newline at end of file Fisheye: Tag 1260e45458aeab2dd1bc862fb07096f514444aad refers to a dead (removed) revision in file `lams_tool_assessment/web/WEB-INF/tags/OutcomeAuthor5.tag'. Fisheye: No comparison available. Pass `N' to diff? Index: lams_tool_assessment/web/WEB-INF/tlds/lams/lams.tld =================================================================== diff -u -r0bc73958f17fe53a99f0e38e96a7eda971b9ad8c -r1260e45458aeab2dd1bc862fb07096f514444aad --- lams_tool_assessment/web/WEB-INF/tlds/lams/lams.tld (.../lams.tld) (revision 0bc73958f17fe53a99f0e38e96a7eda971b9ad8c) +++ lams_tool_assessment/web/WEB-INF/tlds/lams/lams.tld (.../lams.tld) (revision 1260e45458aeab2dd1bc862fb07096f514444aad) @@ -429,12 +429,4 @@ Input /WEB-INF/tags/Input.tag - - OutcomeAuthor5 - /WEB-INF/tags/OutcomeAuthor5.tag - - - AuthoringButton5 - /WEB-INF/tags/AuthoringButton5.tag - Index: lams_tool_assessment/web/pages/authoring/advance.jsp =================================================================== diff -u -r57504156db251a3ca6eb0949f66c08304b11eb87 -r1260e45458aeab2dd1bc862fb07096f514444aad --- lams_tool_assessment/web/pages/authoring/advance.jsp (.../advance.jsp) (revision 57504156db251a3ca6eb0949f66c08304b11eb87) +++ lams_tool_assessment/web/pages/authoring/advance.jsp (.../advance.jsp) (revision 1260e45458aeab2dd1bc862fb07096f514444aad) @@ -1,321 +1,173 @@ <%@ include file="/common/taglibs.jsp"%> <%@ page import="org.lamsfoundation.lams.confidencelevel.ConfidenceLevelDTO"%> - - - - - - - -
- -
- - -
style="display:none;"> - -
-
- -
- - - - - -
- -
- -
- -
- -
- -
- -
- - - -
- -
- - - -
-
- + + + + + + +
-
- -
- - - -
- -
- -
style="display:none;"> - -
- -
-
- -
- -
- -
- -
- -
- -
- -
-
- -
- -
- -
- -
- -
- -
- -
- -
- -
+
\ No newline at end of file Fisheye: Tag 1260e45458aeab2dd1bc862fb07096f514444aad refers to a dead (removed) revision in file `lams_tool_assessment/web/pages/authoring/advance5.jsp'. Fisheye: No comparison available. Pass `N' to diff? Index: lams_tool_assessment/web/pages/authoring/authoring.jsp =================================================================== diff -u -r57504156db251a3ca6eb0949f66c08304b11eb87 -r1260e45458aeab2dd1bc862fb07096f514444aad --- lams_tool_assessment/web/pages/authoring/authoring.jsp (.../authoring.jsp) (revision 57504156db251a3ca6eb0949f66c08304b11eb87) +++ lams_tool_assessment/web/pages/authoring/authoring.jsp (.../authoring.jsp) (revision 1260e45458aeab2dd1bc862fb07096f514444aad) @@ -1,99 +1,176 @@ <%@ include file="/common/taglibs.jsp"%> <%@ page import="org.lamsfoundation.lams.tool.assessment.AssessmentConstants"%> - - + + + + - + + + + <fmt:message key="label.author.title" /> - <%@ include file="/common/tabbedheader.jsp"%> - - - - + + + + + + - - - - - - - - - - - - + return true; + } + + $(document).ready(function(){ + $('[data-toggle="tooltip"]').bootstrapTooltip(); + + $("#attemptsAllowedRadio").change(function() { + $("#passingMark").val("0"); + $("#passingMark").prop("disabled", true); + $("#attemptsAllowed").prop("disabled", false); + }); + + $("#passingMarkRadio").change(function() { + $("#attemptsAllowed").val("0"); + $("#attemptsAllowed").prop("disabled", true); + $("#passingMark").prop("disabled", false); + }); + + $("#display-summary").change(function(){ + $('#display-summary-area').toggle('slow'); + $('#allowQuestionFeedback').prop("checked", false); + $('#allowDiscloseAnswers').prop("checked", false); + $('#allowRightAnswersAfterQuestion, #allowWrongAnswersAfterQuestion').prop("checked", false).prop('disabled', false); + $('#allowRightAnswersAfterQuestion, #allowWrongAnswersAfterQuestion').parent().removeClass('text-muted'); + $('#allowHistoryResponsesAfterAttempt').prop("checked", false); + }); - - - - - - - - - - - - - - - -
- -
-
+ $('#allowDiscloseAnswers').change(function(){ + if ($(this).prop('checked')) { + $('#allowRightAnswersAfterQuestion, #allowWrongAnswersAfterQuestion').prop('checked', false).prop('disabled', true); + } else { + $('#allowRightAnswersAfterQuestion, #allowWrongAnswersAfterQuestion').prop('disabled', false); + } + $('#allowRightAnswersAfterQuestion, #allowWrongAnswersAfterQuestion').parent().toggleClass('text-muted'); + }); + + $("#useSelectLeaderToolOuput").change(function() { + if ($(this).prop('checked')) { + $("#display-summary").prop("checked", true).prop("disabled", true); + $('#display-summary-area').show('slow'); + $('#questionEtherpadEnabled').closest('.checkbox').show('slow'); + $('#allowDiscloseAnswers').prop('disabled', false); + } else { + $("#display-summary").prop("disabled", false); + $('#questionEtherpadEnabled').prop("checked", false).closest('.checkbox').hide('slow'); + $('#allowDiscloseAnswers').prop("checked", false).prop('disabled', true).change(); + } + }).change(); - + $("#enable-confidence-levels").change(function(){ + $('#confidence-levels-type-area').toggle('slow'); + }); + + $("#passingMark").prop("disabled", true); + $("#attemptsAllowed").prop("disabled", true); + $("#display-summary").prop("disabled", true); + + $('#allowRightAnswersAfterQuestion, #allowWrongAnswersAfterQuestion').prop('disabled', true); + $('#allowRightAnswersAfterQuestion, #allowWrongAnswersAfterQuestion').parent().addClass('text-muted'); + + + $('#confidence-levels-type-area').css('display', 'none'); + + + + $('#reflectInstructions').keyup(function(){ + $('#reflectOnActivity').prop('checked', !isEmpty($(this).val().trim())); + }); + }); + + + + + + + + + + - -
- + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
+ -
+ \ No newline at end of file Fisheye: Tag 1260e45458aeab2dd1bc862fb07096f514444aad refers to a dead (removed) revision in file `lams_tool_assessment/web/pages/authoring/authoring5.jsp'. Fisheye: No comparison available. Pass `N' to diff? Index: lams_tool_assessment/web/pages/authoring/basic.jsp =================================================================== diff -u -radd24141d43ff78942c251760e1614925db89464 -r1260e45458aeab2dd1bc862fb07096f514444aad --- lams_tool_assessment/web/pages/authoring/basic.jsp (.../basic.jsp) (revision add24141d43ff78942c251760e1614925db89464) +++ lams_tool_assessment/web/pages/authoring/basic.jsp (.../basic.jsp) (revision 1260e45458aeab2dd1bc862fb07096f514444aad) @@ -1,189 +1,5 @@ <%@ include file="/common/taglibs.jsp"%> - - - - - - - - - - - - -
- -
- - - - <%@ include file="/pages/authoring/parts/questionlistRestricted.jsp"%> - - - <%@ include file="/pages/authoring/parts/questionlist.jsp"%> - - -
- - - -
- - - - - - - - - -
- - -
-
-
- - - -
- -
- -
-
-
-
Fisheye: Tag 1260e45458aeab2dd1bc862fb07096f514444aad refers to a dead (removed) revision in file `lams_tool_assessment/web/pages/authoring/basic5.jsp'. Fisheye: No comparison available. Pass `N' to diff? Index: lams_tool_assessment/web/pages/authoring/feedback.jsp =================================================================== diff -u --- lams_tool_assessment/web/pages/authoring/feedback.jsp (revision 0) +++ lams_tool_assessment/web/pages/authoring/feedback.jsp (revision 1260e45458aeab2dd1bc862fb07096f514444aad) @@ -0,0 +1,7 @@ +<%@ include file="/common/taglibs.jsp"%> + + + Fisheye: Tag 1260e45458aeab2dd1bc862fb07096f514444aad refers to a dead (removed) revision in file `lams_tool_assessment/web/pages/authoring/feedback5.jsp'. Fisheye: No comparison available. Pass `N' to diff? Index: lams_tool_assessment/web/pages/authoring/leader.jsp =================================================================== diff -u --- lams_tool_assessment/web/pages/authoring/leader.jsp (revision 0) +++ lams_tool_assessment/web/pages/authoring/leader.jsp (revision 1260e45458aeab2dd1bc862fb07096f514444aad) @@ -0,0 +1,15 @@ +<%@ include file="/common/taglibs.jsp"%> + + + + + + Fisheye: Tag 1260e45458aeab2dd1bc862fb07096f514444aad refers to a dead (removed) revision in file `lams_tool_assessment/web/pages/authoring/leader5.jsp'. Fisheye: No comparison available. Pass `N' to diff? Index: lams_tool_assessment/web/pages/authoring/parts/questionlist.jsp =================================================================== diff -u -rcf258bae4dd72eab7a6f5bc895b96966caafaf06 -r1260e45458aeab2dd1bc862fb07096f514444aad --- lams_tool_assessment/web/pages/authoring/parts/questionlist.jsp (.../questionlist.jsp) (revision cf258bae4dd72eab7a6f5bc895b96966caafaf06) +++ lams_tool_assessment/web/pages/authoring/parts/questionlist.jsp (.../questionlist.jsp) (revision 1260e45458aeab2dd1bc862fb07096f514444aad) @@ -19,78 +19,76 @@ break; } if (qbMessage) { - alert(qbMessage); + $('#toast-question').toast('show').find('.toast-body').text(qbMessage); } $(document).ready(function(){ - //init questions sorting - new Sortable($('#referencesTable tbody')[0], { - animation: 150, - direction: 'vertical', - store: { - set: function (sortable) { - //update all sequenceIds - for (var i = 0; i < sortable.el.rows.length; i++) { - var tr = sortable.el.rows[i]; - var input = $("input[name^=sequenceId]", tr); - input.val(i); - var displayOrder = $(".reference-display-order", tr); - displayOrder.text(i + 1 + ")"); - } - - //prepare SequenceIds parameter - var serializedSequenceIds = ""; - $("[name^=sequenceId]").each(function() { - serializedSequenceIds += "&" + this.name + "=" + this.value; - }); - - $.ajax({ - url: '', - type: 'POST', - data: { - sessionMapID: "${sessionMapID}", - sequenceIds: serializedSequenceIds + new Sortable($('#referencesTable tbody')[0], { + animation: 150, + direction: 'vertical', + store: { + set: function (sortable) { + //update all sequenceIds + for (var i = 0; i < sortable.el.rows.length; i++) { + var tr = sortable.el.rows[i]; + var input = $("input[name^=sequenceId]", tr); + input.val(i); + var displayOrder = $(".reference-display-order", tr); + displayOrder.text(i + 1 + ")"); } - }); - - //update names - $("[name^=sequenceId]").each(function() { - var newSequenceId = this.value; - //update name of the hidden input - this.name = "sequenceId" + newSequenceId; - }); + + //prepare SequenceIds parameter + var serializedSequenceIds = ""; + $("[name^=sequenceId]").each(function() { + serializedSequenceIds += "&" + this.name + "=" + this.value; + }); + + $.ajax({ + url: '', + type: 'POST', + data: { + sessionMapID: "${sessionMapID}", + sequenceIds: serializedSequenceIds + } + }); + + //update names + $("[name^=sequenceId]").each(function() { + var newSequenceId = this.value; + //update name of the hidden input + this.name = "sequenceId" + newSequenceId; + }); + } } - } - }); + }); }); -
- - - - - - - - - +
- # - - - - -
+ + + + + + + + - - - - - - -
+ # + + + + +
+ ${status.count}) + @@ -103,12 +101,12 @@ - + v. ${question.qbQuestion.version} - + @@ -141,27 +139,32 @@ - + + + " alt="" onClick="javascript:toggleQuestionRequired(this)"> - - "> + + + "> - "> + + ">
-
+ + + + \ No newline at end of file Fisheye: Tag 1260e45458aeab2dd1bc862fb07096f514444aad refers to a dead (removed) revision in file `lams_tool_assessment/web/pages/authoring/parts/questionlist5.jsp'. Fisheye: No comparison available. Pass `N' to diff? Index: lams_tool_assessment/web/pages/authoring/parts/questionlistRestricted.jsp =================================================================== diff -u -rf7837f2892736221011a0eb6cbef1027b6692224 -r1260e45458aeab2dd1bc862fb07096f514444aad --- lams_tool_assessment/web/pages/authoring/parts/questionlistRestricted.jsp (.../questionlistRestricted.jsp) (revision f7837f2892736221011a0eb6cbef1027b6692224) +++ lams_tool_assessment/web/pages/authoring/parts/questionlistRestricted.jsp (.../questionlistRestricted.jsp) (revision 1260e45458aeab2dd1bc862fb07096f514444aad) @@ -1,96 +1,94 @@ <%@ include file="/common/taglibs.jsp"%> - -
- - - - - - +
- # - - - - -
+ + + + + - - - - - + + - - - - + + + + + + - - - -
+ # + + + + +
- ${status.count}) - - + + +
+ ${status.count}) + + + + + + + + + + + + + + v. ${question.qbQuestion.version} + + + + - - - + + + + + + + + + + + + + + + + + + + + + + + + - - - - v. ${question.qbQuestion.version} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - " - alt="" - onClick="javascript:toggleQuestionRequired(this)"> - + + + " + alt="" + onClick="javascript:toggleQuestionRequired(this)"> + - - - "> - - -
-
+ + + + "> + + + + + + \ No newline at end of file Fisheye: Tag 1260e45458aeab2dd1bc862fb07096f514444aad refers to a dead (removed) revision in file `lams_tool_assessment/web/pages/authoring/parts/questionlistRestricted5.jsp'. Fisheye: No comparison available. Pass `N' to diff? Index: lams_tool_assessment/web/pages/authoring/questions.jsp =================================================================== diff -u --- lams_tool_assessment/web/pages/authoring/questions.jsp (revision 0) +++ lams_tool_assessment/web/pages/authoring/questions.jsp (revision 1260e45458aeab2dd1bc862fb07096f514444aad) @@ -0,0 +1,219 @@ +<%@ include file="/common/taglibs.jsp"%> + + + +
+
+ + + <%@ include file="/pages/authoring/parts/questionlistRestricted.jsp"%> + + + <%@ include file="/pages/authoring/parts/questionlist.jsp"%> + + +
+ + + +
+ + + +
+ + +
+ +
+ +
+
+ + + +
+
\ No newline at end of file Fisheye: Tag 1260e45458aeab2dd1bc862fb07096f514444aad refers to a dead (removed) revision in file `lams_tool_assessment/web/pages/authoring/questions5.jsp'. Fisheye: No comparison available. Pass `N' to diff? Index: lams_tool_assessment/web/pages/authoring/reflection.jsp =================================================================== diff -u --- lams_tool_assessment/web/pages/authoring/reflection.jsp (revision 0) +++ lams_tool_assessment/web/pages/authoring/reflection.jsp (revision 1260e45458aeab2dd1bc862fb07096f514444aad) @@ -0,0 +1,15 @@ +<%@ include file="/common/taglibs.jsp"%> + + + + + +
+
+ +
+
Fisheye: Tag 1260e45458aeab2dd1bc862fb07096f514444aad refers to a dead (removed) revision in file `lams_tool_assessment/web/pages/authoring/reflection5.jsp'. Fisheye: No comparison available. Pass `N' to diff?