Index: lams_central/web/css/components.scss =================================================================== diff -u -rdf411d8446000acfdb5937f46a7a7e8ef4b656e0 -r6ca7c6f9b49fe23c7f11e22e40334749c6b7d13f --- lams_central/web/css/components.scss (.../components.scss) (revision df411d8446000acfdb5937f46a7a7e8ef4b656e0) +++ lams_central/web/css/components.scss (.../components.scss) (revision 6ca7c6f9b49fe23c7f11e22e40334749c6b7d13f) @@ -1,16 +1,14 @@ @import "bootstrap5.custom.scss"; @import "_lams_variables.scss"; -#container-main { +#container-main, .container-main { @extend .container-lg; -} - -@media (width <= 768px) { - #container-main { + + @include media-breakpoint-down(md) { --bs-gutter-x: 0.1rem; --bs-gutter-y: 0.1rem; padding-right: calc(var(--bs-gutter-x) * -5.5); - padding-left: calc(var(--bs-gutter-x) * 0.5); + padding-left: calc(var(--bs-gutter-x) * 0.5); } } @@ -25,6 +23,10 @@ padding-top: 1rem; } +.font-size-init { + font-size: initial; +} + /* For Boostrap 3 & 5 compability */ .img-responsive { max-width: 100%; @@ -103,6 +105,68 @@ font-size: var(--bs-body-font-size); } } + + .lcard { + border-top-left-radius: 1.25rem; + border-top-right-radius: 0rem; + border-bottom-right-radius: 1.25rem; + border: 0; + margin-bottom: 2rem; + @extend .shadow; + + >.card-header { + border-top-left-radius: 1.25rem; + border-top-right-radius: 0rem; + font-size: 1.3rem; + padding: 1rem; + @extend .text-bg-secondary; + + *:not(.badge, .badge *, .btn, .btn *, button, button *) { + @extend .text-bg-secondary; + } + + @include media-breakpoint-down(md) { + font-size: 14px; + } + } + } + + .activity-bottom-buttons { + margin-top: 1rem; + padding-top: 1rem; + border-top: $border-thin-grey; + display: flex; + flex-direction: row-reverse; + clear: both; + } + + h6, .h6, h5, .h5, h4, .h4, h3, .h3, h2, .h2, h1, .h1 { + color: var(--bs-gray-dark); + } + + h1, .h1 { + font-size: calc(1.2rem + 1vw); + } + + h2, .h2 { + font-size: calc(1.2rem + 0.7vw); + } + + h3, .h3 { + font-size: calc(1.2rem + 0.5vw); + } + + h4, .h4 { + font-size: calc(1.1rem + 0.3vw); + } + + h5, .h5 { + font-size: 1.1rem; + } + + h6, .h6 { + font-size: 1rem; + } } body.component .btn-success, @@ -645,6 +709,22 @@ background-color: var(--bs-gray-200); } +/*----------.div-hover----------------*/ +.div-hover > div { + align-items: center; + border-top: 1px solid #ddd; + padding: 12px; +} + +@media (width <= 768px) { + .div-hover > div { + padding: 3px; + } +} +.div-hover > div:hover { + background-color: var(--bs-gray-200); +} + /* jqGrid text wrapping */ .ui-jqgrid tr.jqgrow td, .ui-jqgrid tr.ui-subgrid td { white-space:normal !important; Index: lams_monitoring/web/includes/javascript/monitorLesson.js =================================================================== diff -u -rd2e5991474ab481bbdb37b36fc26546d21d7c52d -r6ca7c6f9b49fe23c7f11e22e40334749c6b7d13f --- lams_monitoring/web/includes/javascript/monitorLesson.js (.../monitorLesson.js) (revision d2e5991474ab481bbdb37b36fc26546d21d7c52d) +++ lams_monitoring/web/includes/javascript/monitorLesson.js (.../monitorLesson.js) (revision 6ca7c6f9b49fe23c7f11e22e40334749c6b7d13f) @@ -410,6 +410,7 @@ }, success : function(response) { + // update lesson state label lessonStateId = +response.lessonStateID; var label = null, @@ -477,17 +478,19 @@ lessonFinishDateSpan = $('#lessonFinishDateSpan'), lessonStateChanger = $('#lessonStateChanger'), stateLabel = $('#lessonStateLabel'); + switch (lessonStateId) { - //created but not started lesson + // created but not started lesson case 1: scheduleControls.css('display','inline'); if ( response.finishDate ) { lessonFinishDateSpan.text(LABELS.LESSON_FINISH.replace("%0",response.finishDate)).css('display','inline'); $("#scheduleDisableLessonButton").html(LABELS.RESCHEDULE); $("#disableLessonButton").css('display', 'none'); + } else { + lessonFinishDateSpan.hide(); } startDateField.hide(); - lessonFinishDateSpan.hide(); lessonStateChanger.hide(); break; //scheduled lesson @@ -977,7 +980,7 @@ cache : false, type : 'POST', success : function() { - loadTab(); + document.location.reload(); } }); } Index: lams_monitoring/web/monitor.jsp =================================================================== diff -u -r6859554ab9421fe19d47ab72fb34a5c03ea2a89a -r6ca7c6f9b49fe23c7f11e22e40334749c6b7d13f --- lams_monitoring/web/monitor.jsp (.../monitor.jsp) (revision 6859554ab9421fe19d47ab72fb34a5c03ea2a89a) +++ lams_monitoring/web/monitor.jsp (.../monitor.jsp) (revision 6ca7c6f9b49fe23c7f11e22e40334749c6b7d13f) @@ -507,7 +507,7 @@ -
+
@@ -819,8 +819,12 @@ Index: lams_tool_assessment/src/java/org/lamsfoundation/lams/tool/assessment/web/controller/LearningController.java =================================================================== diff -u -rcc5613c2fcc477b2ed37af8ae2cc469648b9d71a -r6ca7c6f9b49fe23c7f11e22e40334749c6b7d13f --- lams_tool_assessment/src/java/org/lamsfoundation/lams/tool/assessment/web/controller/LearningController.java (.../LearningController.java) (revision cc5613c2fcc477b2ed37af8ae2cc469648b9d71a) +++ lams_tool_assessment/src/java/org/lamsfoundation/lams/tool/assessment/web/controller/LearningController.java (.../LearningController.java) (revision 6ca7c6f9b49fe23c7f11e22e40334749c6b7d13f) @@ -74,6 +74,7 @@ import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.http.HttpStatus; import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RequestParam; @@ -293,7 +294,7 @@ //user is allowed to answer questions if assessment activity doesn't have leaders or he is the leader boolean hasEditRight = - !assessment.isUseSelectLeaderToolOuput() || assessment.isUseSelectLeaderToolOuput() && isUserLeader; + (!assessment.isUseSelectLeaderToolOuput() || assessment.isUseSelectLeaderToolOuput() && isUserLeader) && !mode.isTeacher(); //showResults if user has finished the last result boolean showResults = (lastResult != null) && (lastResult.getFinishDate() != null); @@ -464,7 +465,7 @@ /** * Shows next page. It's available only to leaders as non-leaders see all questions on one page. */ - @RequestMapping("/nextPage") + @PostMapping("/nextPage") public String nextPage(HttpServletRequest request) throws ServletException, IllegalAccessException, InvocationTargetException, NoSuchMethodException { return nextPage(request, false, -1); @@ -586,7 +587,7 @@ * @throws IllegalAccessException */ @SuppressWarnings("unchecked") - @RequestMapping("/submitAll") + @PostMapping("/submitAll") public String submitAll(HttpServletRequest request) throws ServletException, IllegalAccessException, InvocationTargetException, NoSuchMethodException { SessionMap sessionMap = getSessionMap(request); @@ -689,7 +690,7 @@ /** * auto saves responses */ - @RequestMapping("/autoSaveAnswers") + @PostMapping("/autoSaveAnswers") @ResponseStatus(HttpStatus.OK) @ResponseBody public String autoSaveAnswers(HttpServletRequest request, HttpServletResponse response) Index: lams_tool_assessment/web/pages/learning/results/essay.jsp =================================================================== diff -u -ra3b76a7a959ef77d75f311cc86fa65193e429289 -r6ca7c6f9b49fe23c7f11e22e40334749c6b7d13f --- lams_tool_assessment/web/pages/learning/results/essay.jsp (.../essay.jsp) (revision a3b76a7a959ef77d75f311cc86fa65193e429289) +++ lams_tool_assessment/web/pages/learning/results/essay.jsp (.../essay.jsp) (revision 6ca7c6f9b49fe23c7f11e22e40334749c6b7d13f) @@ -56,7 +56,7 @@ - + <%-- Show answers for all other teams, and just rating if someone has already commented on this team's answer --%> Index: lams_tool_assessment/web/pages/learning/results/multiplechoice.jsp =================================================================== diff -u -rb0232d1a0ff0f3a575ab1aa27ca713673ff1e153 -r6ca7c6f9b49fe23c7f11e22e40334749c6b7d13f --- lams_tool_assessment/web/pages/learning/results/multiplechoice.jsp (.../multiplechoice.jsp) (revision b0232d1a0ff0f3a575ab1aa27ca713673ff1e153) +++ lams_tool_assessment/web/pages/learning/results/multiplechoice.jsp (.../multiplechoice.jsp) (revision 6ca7c6f9b49fe23c7f11e22e40334749c6b7d13f) @@ -46,30 +46,31 @@ checked="checked" - disabled="disabled" - /> + class="form-check-input" + value="${true}" + checked="checked" + disabled="disabled"/> checked="checked" - disabled="disabled" - /> + class="form-check-input" + value="${option.displayOrder}" + checked="checked" + disabled="disabled"/> - - + + Index: lams_tool_assessment/web/pages/monitoring/monitoring.jsp =================================================================== diff -u -r57b97cb04c093e9f9d136b453711b329fb0858ed -r6ca7c6f9b49fe23c7f11e22e40334749c6b7d13f --- lams_tool_assessment/web/pages/monitoring/monitoring.jsp (.../monitoring.jsp) (revision 57b97cb04c093e9f9d136b453711b329fb0858ed) +++ lams_tool_assessment/web/pages/monitoring/monitoring.jsp (.../monitoring.jsp) (revision 6ca7c6f9b49fe23c7f11e22e40334749c6b7d13f) @@ -5,156 +5,7 @@ - - - <c:out value="${assessment.title}" /> - - <%@ include file="/common/tabbedheader.jsp" %> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - <%-- codeStyles is a set, so each code style will be listed only once --%> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file + + Index: lams_tool_assessment/web/pages/monitoring/parts/advanceoptions.jsp =================================================================== diff -u -r3d1c6963589452c441b1670c2eecf3eb85a128a5 -r6ca7c6f9b49fe23c7f11e22e40334749c6b7d13f --- lams_tool_assessment/web/pages/monitoring/parts/advanceoptions.jsp (.../advanceoptions.jsp) (revision 3d1c6963589452c441b1670c2eecf3eb85a128a5) +++ lams_tool_assessment/web/pages/monitoring/parts/advanceoptions.jsp (.../advanceoptions.jsp) (revision 6ca7c6f9b49fe23c7f11e22e40334749c6b7d13f) @@ -172,12 +172,29 @@ - +
+ +
+ +
+ + + + + + + + +
+
+ +
+
Index: lams_tool_assessment/web/pages/monitoring/parts/usersummary.jsp =================================================================== diff -u -rc57ea16d86b357cfd35a9603c804c9eecb8079fb -r6ca7c6f9b49fe23c7f11e22e40334749c6b7d13f --- lams_tool_assessment/web/pages/monitoring/parts/usersummary.jsp (.../usersummary.jsp) (revision c57ea16d86b357cfd35a9603c804c9eecb8079fb) +++ lams_tool_assessment/web/pages/monitoring/parts/usersummary.jsp (.../usersummary.jsp) (revision 6ca7c6f9b49fe23c7f11e22e40334749c6b7d13f) @@ -1,76 +1,76 @@ <%@ include file="/common/taglibs.jsp"%> + - - - <%@ include file="/common/header.jsp"%> + + + + + + + + + + + - pre { - background-color: initial; - border: none; - } + + + + + + + + + + <%-- codeStyles is a set, so each code style will be listed only once --%> + + + + + + + + + + + + + + - - - - - - - - <%-- codeStyles is a set, so each code style will be listed only once --%> - - - - - - - - - - - - - - - - + }); - + function refreshSummaryPage() { + if (isEdited) { + self.parent.window.parent.location.href = "?toolContentID=${sessionMap.toolContentID}&contentFolderID=${sessionMap.contentFolderID}"; + } else { + self.parent.tb_remove(); + } + } + -
-
-
- -
-
+

+ ${title} +

-
- + - - - - - +
+
+
+ +
+
+ +
+
-
- - - +
+
+ +
+
+ ${userSummary.numberOfAttempts} +
+
- - - - +
+
+ +
+
+ + + + +
+
- - - - -
- - - -
- - - ${userSummary.numberOfAttempts} -
- - - - -
- - -
${userSummary.lastAttemptGrade}
-
+
+
+ +
+
+
${userSummary.lastAttemptGrade}
+
+
+
- -
-
-
-
- - - - - - - - - -
- - - -
- - - -
-
-
+ +
+
+ +
+ +
+
+ +
+ +
+
+
+ <%--Display Etherpad for each question --%> + +
+ - -
+
+
+
+
+
+
- <%--Display Etherpad for each question --%> - -
- - -
-
- -
-
-
-
- - - - - - -
- - - - - -
- - \ No newline at end of file +
+ +
+ + Index: lams_tool_assessment/web/pages/monitoring/statisticpart.jsp =================================================================== diff -u -r1d81e132bc101883c5643fcf54d2d40d45c5cf2e -r6ca7c6f9b49fe23c7f11e22e40334749c6b7d13f --- lams_tool_assessment/web/pages/monitoring/statisticpart.jsp (.../statisticpart.jsp) (revision 1d81e132bc101883c5643fcf54d2d40d45c5cf2e) +++ lams_tool_assessment/web/pages/monitoring/statisticpart.jsp (.../statisticpart.jsp) (revision 6ca7c6f9b49fe23c7f11e22e40334749c6b7d13f) @@ -1,12 +1,17 @@ <%@ include file="/common/taglibs.jsp"%> + + + + + - - + - + - -

- + + + + - -
-
- - -
-
-
-
-
- -
+ +
+
+ + +
+
+
+
+
+ +
@@ -150,16 +152,19 @@ -

+
+ +
-
-
- - -
-
-
-
+ +
+
+ + +
+
+
+
@@ -220,23 +225,24 @@
-
-

+
+ +
+ -
-
- - : - +
+
+ :
-
+ +
-
+
@@ -304,23 +310,23 @@ - - -
-
-
- -
- -