Index: lams_admin/src/java/org/lamsfoundation/lams/admin/web/controller/CleanupPreviewLessonsController.java =================================================================== diff -u -r550e1b37b507779064955267ef47e9085f791357 -r1ba327f73cb27c822d8a4ef36c386dd5a1432aef --- lams_admin/src/java/org/lamsfoundation/lams/admin/web/controller/CleanupPreviewLessonsController.java (.../CleanupPreviewLessonsController.java) (revision 550e1b37b507779064955267ef47e9085f791357) +++ lams_admin/src/java/org/lamsfoundation/lams/admin/web/controller/CleanupPreviewLessonsController.java (.../CleanupPreviewLessonsController.java) (revision 1ba327f73cb27c822d8a4ef36c386dd5a1432aef) @@ -69,7 +69,7 @@ @Autowired private WebApplicationContext applicationContext; - @RequestMapping("/start") + @RequestMapping(path = "/start", method = RequestMethod.POST) public String unspecified(HttpServletRequest request, HttpServletResponse response) throws IOException { if (!getSecurityService().isSysadmin(getUserID(), "display cleanup preview lessons", false)) { response.sendError(HttpServletResponse.SC_FORBIDDEN, "User is not a sysadmin"); Index: lams_admin/src/java/org/lamsfoundation/lams/admin/web/controller/CleanupTempFilesController.java =================================================================== diff -u -re2c0c928c2cf3c0527ec942ad9af0ec67a3aa8d7 -r1ba327f73cb27c822d8a4ef36c386dd5a1432aef --- lams_admin/src/java/org/lamsfoundation/lams/admin/web/controller/CleanupTempFilesController.java (.../CleanupTempFilesController.java) (revision e2c0c928c2cf3c0527ec942ad9af0ec67a3aa8d7) +++ lams_admin/src/java/org/lamsfoundation/lams/admin/web/controller/CleanupTempFilesController.java (.../CleanupTempFilesController.java) (revision 1ba327f73cb27c822d8a4ef36c386dd5a1432aef) @@ -66,8 +66,7 @@ private MessageService adminMessageService; @RequestMapping(path = "/start", method = RequestMethod.POST) - public String execute(@ModelAttribute CleanupForm cleanupForm, HttpServletRequest request, - HttpServletResponse response) throws Exception { + public String execute(@ModelAttribute CleanupForm cleanupForm, HttpServletRequest request) throws Exception { // check user is sysadmin if (!(request.isUserInRole(Role.SYSADMIN))) { Index: lams_admin/src/java/org/lamsfoundation/lams/admin/web/controller/CloneLessonsController.java =================================================================== diff -u -re2c0c928c2cf3c0527ec942ad9af0ec67a3aa8d7 -r1ba327f73cb27c822d8a4ef36c386dd5a1432aef --- lams_admin/src/java/org/lamsfoundation/lams/admin/web/controller/CloneLessonsController.java (.../CloneLessonsController.java) (revision e2c0c928c2cf3c0527ec942ad9af0ec67a3aa8d7) +++ lams_admin/src/java/org/lamsfoundation/lams/admin/web/controller/CloneLessonsController.java (.../CloneLessonsController.java) (revision 1ba327f73cb27c822d8a4ef36c386dd5a1432aef) @@ -47,6 +47,7 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.ResponseBody; import org.springframework.web.context.WebApplicationContext; @@ -73,7 +74,7 @@ @Autowired private WebApplicationContext applicationContext; - @RequestMapping("/start") + @RequestMapping(path = "/start", method = RequestMethod.POST) public String execute(HttpServletRequest request, HttpServletResponse response) throws UserAccessDeniedException { if (!(request.isUserInRole(Role.SYSADMIN))) { @@ -160,7 +161,7 @@ } // ajax - @RequestMapping("/availableLessons") + @RequestMapping(path = "/availableLessons", method = RequestMethod.POST) public String availableLessons(HttpServletRequest request, HttpServletResponse response) throws Exception { Integer sourceGroupId = WebUtil.readIntParam(request, "sourceGroupId", true); @@ -192,7 +193,7 @@ } // ajax - @RequestMapping("/selectLearners") + @RequestMapping(path = "/selectLearners", method = RequestMethod.POST) public String selectLearners(HttpServletRequest request, HttpServletResponse response) throws Exception { Integer groupId = WebUtil.readIntParam(request, "groupId", false); @@ -205,7 +206,7 @@ return "organisation/parts/selectLearners"; } - @RequestMapping("/clone") + @RequestMapping(path = "/clone", method = RequestMethod.POST) public String clone(HttpServletRequest request) throws Exception { Integer groupId = WebUtil.readIntParam(request, "groupId", false); Index: lams_admin/src/java/org/lamsfoundation/lams/admin/web/controller/ConfigController.java =================================================================== diff -u -re2c0c928c2cf3c0527ec942ad9af0ec67a3aa8d7 -r1ba327f73cb27c822d8a4ef36c386dd5a1432aef --- lams_admin/src/java/org/lamsfoundation/lams/admin/web/controller/ConfigController.java (.../ConfigController.java) (revision e2c0c928c2cf3c0527ec942ad9af0ec67a3aa8d7) +++ lams_admin/src/java/org/lamsfoundation/lams/admin/web/controller/ConfigController.java (.../ConfigController.java) (revision 1ba327f73cb27c822d8a4ef36c386dd5a1432aef) @@ -35,6 +35,7 @@ import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.ModelAttribute; import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.context.WebApplicationContext; /** @@ -69,15 +70,15 @@ return configurationService; } - @RequestMapping("/start") + @RequestMapping(path = "/start", method = RequestMethod.POST) public String unspecified(HttpServletRequest request) throws Exception { request.setAttribute("config", getConfiguration().arrangeItems(Configuration.ITEMS_NON_LDAP)); return "config/editconfig"; } - @RequestMapping("/save") + @RequestMapping(path = "/save", method = RequestMethod.POST) public String save(@ModelAttribute ConfigForm configForm, HttpServletRequest request) throws Exception { if (request.getAttribute("CANCEL") != null) { @@ -87,7 +88,7 @@ String[] keys = configForm.getKey(); String[] values = configForm.getValue(); - String errorForward = "config"; + String errorForward = "config/editconfig"; for (int i = 0; i < keys.length; i++) { ConfigurationItem item = getConfiguration().getConfigItemByKey(keys[i]); @@ -102,7 +103,7 @@ if (!(values[i] != null && values[i].length() > 0)) { request.setAttribute("error", getRequiredError(item.getDescriptionKey())); request.setAttribute("config", getConfiguration().arrangeItems(Configuration.ITEMS_NON_LDAP)); - return mapping.findForward(errorForward); + return errorForward; } } String format = item.getFormat(); @@ -112,7 +113,7 @@ } catch (NumberFormatException e) { request.setAttribute("error", getNumericError(item.getDescriptionKey())); request.setAttribute("config", getConfiguration().arrangeItems(Configuration.ITEMS_NON_LDAP)); - return mapping.findForward(errorForward); + return errorForward; } } Configuration.updateItem(keys[i], values[i]); Index: lams_admin/src/java/org/lamsfoundation/lams/admin/web/controller/ImportExcelController.java =================================================================== diff -u -re2c0c928c2cf3c0527ec942ad9af0ec67a3aa8d7 -r1ba327f73cb27c822d8a4ef36c386dd5a1432aef --- lams_admin/src/java/org/lamsfoundation/lams/admin/web/controller/ImportExcelController.java (.../ImportExcelController.java) (revision e2c0c928c2cf3c0527ec942ad9af0ec67a3aa8d7) +++ lams_admin/src/java/org/lamsfoundation/lams/admin/web/controller/ImportExcelController.java (.../ImportExcelController.java) (revision 1ba327f73cb27c822d8a4ef36c386dd5a1432aef) @@ -23,7 +23,6 @@ package org.lamsfoundation.lams.admin.web.controller; import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; import org.lamsfoundation.lams.admin.web.form.ImportExcelForm; import org.lamsfoundation.lams.util.WebUtil; @@ -45,8 +44,8 @@ public class ImportExcelController { @RequestMapping("/importexcel") - public String execute(@ModelAttribute ImportExcelForm importExcelForm, HttpServletRequest request, - HttpServletResponse response) throws Exception { + public String execute(@ModelAttribute ImportExcelForm importExcelForm, HttpServletRequest request) + throws Exception { Integer orgId = WebUtil.readIntParam(request, "orgId", true); //if (orgId==null) orgId = (Integer)request.getAttribute("orgId"); Index: lams_admin/src/java/org/lamsfoundation/lams/admin/web/controller/ImportExcelSaveController.java =================================================================== diff -u -re2c0c928c2cf3c0527ec942ad9af0ec67a3aa8d7 -r1ba327f73cb27c822d8a4ef36c386dd5a1432aef --- lams_admin/src/java/org/lamsfoundation/lams/admin/web/controller/ImportExcelSaveController.java (.../ImportExcelSaveController.java) (revision e2c0c928c2cf3c0527ec942ad9af0ec67a3aa8d7) +++ lams_admin/src/java/org/lamsfoundation/lams/admin/web/controller/ImportExcelSaveController.java (.../ImportExcelSaveController.java) (revision 1ba327f73cb27c822d8a4ef36c386dd5a1432aef) @@ -25,7 +25,6 @@ import java.util.List; import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; import org.lamsfoundation.lams.admin.service.AdminServiceProxy; import org.lamsfoundation.lams.admin.service.IImportService; @@ -35,6 +34,7 @@ import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.ModelAttribute; import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.context.WebApplicationContext; import org.springframework.web.multipart.MultipartFile; @@ -59,9 +59,9 @@ @Autowired private WebApplicationContext applicationContext; - @RequestMapping("/importexcelsave") - public String execute(@ModelAttribute ImportExcelForm importExcelForm, HttpServletRequest request, - HttpServletResponse response) throws Exception { + @RequestMapping(path = "/importexcelsave", method = RequestMethod.POST) + public String execute(@ModelAttribute ImportExcelForm importExcelForm, HttpServletRequest request) + throws Exception { if (request.getAttribute("CANCEL") != null) { return "redirect:/sysadminstart.do"; @@ -72,7 +72,7 @@ // validation if (file == null || file.getSize() <= 0) { - return "forward:/importexcel.do"; + return "redirect:/importexcel.do"; } String sessionId = SessionManager.getSession().getId(); @@ -81,7 +81,7 @@ if (importService.getNumRows(file) < IImportService.THRESHOLD) { List results = importService.parseSpreadsheet(file, sessionId); SessionManager.getSession(sessionId).setAttribute(IImportService.IMPORT_RESULTS, results); - return "forward:/importuserresult.do"; + return "redirect:/importuserresult.do"; } else { Thread t = new Thread(new ImportExcelThread(sessionId)); t.start(); Index: lams_admin/src/java/org/lamsfoundation/lams/admin/web/controller/ImportGroupsController.java =================================================================== diff -u -re2c0c928c2cf3c0527ec942ad9af0ec67a3aa8d7 -r1ba327f73cb27c822d8a4ef36c386dd5a1432aef --- lams_admin/src/java/org/lamsfoundation/lams/admin/web/controller/ImportGroupsController.java (.../ImportGroupsController.java) (revision e2c0c928c2cf3c0527ec942ad9af0ec67a3aa8d7) +++ lams_admin/src/java/org/lamsfoundation/lams/admin/web/controller/ImportGroupsController.java (.../ImportGroupsController.java) (revision 1ba327f73cb27c822d8a4ef36c386dd5a1432aef) @@ -25,7 +25,6 @@ import java.util.List; import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; import org.lamsfoundation.lams.admin.service.AdminServiceProxy; import org.lamsfoundation.lams.admin.service.IImportService; @@ -35,6 +34,7 @@ import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.ModelAttribute; import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.context.WebApplicationContext; import org.springframework.web.multipart.MultipartFile; @@ -55,11 +55,10 @@ @Autowired private WebApplicationContext applicationContext; - - @RequestMapping("/importgroups") - public String execute(@ModelAttribute ImportExcelForm importForm, HttpServletRequest request, - HttpServletResponse response) throws Exception { + @RequestMapping(path = "/importgroups", method = RequestMethod.POST) + public String execute(@ModelAttribute ImportExcelForm importForm, HttpServletRequest request) throws Exception { + if (request.getAttribute("CANCEL") != null) { return "redirect:/sysadminstart.do"; } Index: lams_admin/src/java/org/lamsfoundation/lams/admin/web/controller/ImportUserResultController.java =================================================================== diff -u -re2c0c928c2cf3c0527ec942ad9af0ec67a3aa8d7 -r1ba327f73cb27c822d8a4ef36c386dd5a1432aef --- lams_admin/src/java/org/lamsfoundation/lams/admin/web/controller/ImportUserResultController.java (.../ImportUserResultController.java) (revision e2c0c928c2cf3c0527ec942ad9af0ec67a3aa8d7) +++ lams_admin/src/java/org/lamsfoundation/lams/admin/web/controller/ImportUserResultController.java (.../ImportUserResultController.java) (revision 1ba327f73cb27c822d8a4ef36c386dd5a1432aef) @@ -36,6 +36,7 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.context.WebApplicationContext; import org.springframework.web.multipart.MultipartFile; @@ -53,7 +54,7 @@ @Autowired private WebApplicationContext applicationContext; - @RequestMapping("/importuserresult") + @RequestMapping(path = "/importuserresult", method = RequestMethod.POST) public String execute(HttpServletRequest request) throws Exception { MessageService messageService = AdminServiceProxy.getMessageService(applicationContext.getServletContext()); Index: lams_admin/src/java/org/lamsfoundation/lams/admin/web/controller/LdapConfigController.java =================================================================== diff -u -re2c0c928c2cf3c0527ec942ad9af0ec67a3aa8d7 -r1ba327f73cb27c822d8a4ef36c386dd5a1432aef --- lams_admin/src/java/org/lamsfoundation/lams/admin/web/controller/LdapConfigController.java (.../LdapConfigController.java) (revision e2c0c928c2cf3c0527ec942ad9af0ec67a3aa8d7) +++ lams_admin/src/java/org/lamsfoundation/lams/admin/web/controller/LdapConfigController.java (.../LdapConfigController.java) (revision 1ba327f73cb27c822d8a4ef36c386dd5a1432aef) @@ -42,6 +42,7 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.context.WebApplicationContext; /** @@ -93,7 +94,7 @@ return configurationService; } - @RequestMapping("/start") + @RequestMapping(path = "/start", method = RequestMethod.POST) public String execute(HttpServletRequest request) throws Exception { String action = WebUtil.readStrParam(request, "action", true); @@ -117,7 +118,7 @@ return "ldap"; } - @RequestMapping("/sync") + @RequestMapping(path = "/sync", method = RequestMethod.POST) public String sync(HttpServletRequest request) throws Exception { String sessionId = SessionManager.getSession().getId(); @@ -129,15 +130,15 @@ return "ldap"; } - @RequestMapping("/waiting") + @RequestMapping(path = "/waiting", method = RequestMethod.POST) public String waiting(HttpServletRequest request) throws Exception { request.setAttribute("wait", getMessageService().getMessage("msg.ldap.synchronise.wait")); return "ldap"; } - @RequestMapping("/results") + @RequestMapping(path = "/results", method = RequestMethod.POST) public String results(HttpServletRequest request) throws Exception { HttpSession ss = SessionManager.getSession(); Index: lams_admin/src/java/org/lamsfoundation/lams/admin/web/controller/LogEventController.java =================================================================== diff -u -re2c0c928c2cf3c0527ec942ad9af0ec67a3aa8d7 -r1ba327f73cb27c822d8a4ef36c386dd5a1432aef --- lams_admin/src/java/org/lamsfoundation/lams/admin/web/controller/LogEventController.java (.../LogEventController.java) (revision e2c0c928c2cf3c0527ec942ad9af0ec67a3aa8d7) +++ lams_admin/src/java/org/lamsfoundation/lams/admin/web/controller/LogEventController.java (.../LogEventController.java) (revision 1ba327f73cb27c822d8a4ef36c386dd5a1432aef) @@ -45,6 +45,7 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.ResponseBody; import org.springframework.web.context.WebApplicationContext; import org.springframework.web.context.support.WebApplicationContextUtils; @@ -67,7 +68,7 @@ @Autowired private WebApplicationContext applicationContext; - @RequestMapping("/start") + @RequestMapping(path = "/start", method = RequestMethod.POST) public String unspecified(HttpServletRequest request) throws Exception { // check permission Index: lams_admin/src/java/org/lamsfoundation/lams/admin/web/controller/LoginMaintainController.java =================================================================== diff -u -re2c0c928c2cf3c0527ec942ad9af0ec67a3aa8d7 -r1ba327f73cb27c822d8a4ef36c386dd5a1432aef --- lams_admin/src/java/org/lamsfoundation/lams/admin/web/controller/LoginMaintainController.java (.../LoginMaintainController.java) (revision e2c0c928c2cf3c0527ec942ad9af0ec67a3aa8d7) +++ lams_admin/src/java/org/lamsfoundation/lams/admin/web/controller/LoginMaintainController.java (.../LoginMaintainController.java) (revision 1ba327f73cb27c822d8a4ef36c386dd5a1432aef) @@ -37,6 +37,7 @@ import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.ModelAttribute; import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; /** *

@@ -60,7 +61,7 @@ private static final String NEWS_PAGE_PATH_SUFFIX = File.separatorChar + "lams-www.war" + File.separatorChar + "news.html"; - @RequestMapping("/loginmaintain") + @RequestMapping(path = "/loginmaintain", method = RequestMethod.POST) public String execute(@ModelAttribute LoginMaintainForm loginMaintainForm, HttpServletRequest request) throws Exception { Index: lams_admin/src/java/org/lamsfoundation/lams/admin/web/controller/LtiConsumerManagementController.java =================================================================== diff -u -re2c0c928c2cf3c0527ec942ad9af0ec67a3aa8d7 -r1ba327f73cb27c822d8a4ef36c386dd5a1432aef --- lams_admin/src/java/org/lamsfoundation/lams/admin/web/controller/LtiConsumerManagementController.java (.../LtiConsumerManagementController.java) (revision e2c0c928c2cf3c0527ec942ad9af0ec67a3aa8d7) +++ lams_admin/src/java/org/lamsfoundation/lams/admin/web/controller/LtiConsumerManagementController.java (.../LtiConsumerManagementController.java) (revision 1ba327f73cb27c822d8a4ef36c386dd5a1432aef) @@ -57,7 +57,7 @@ /** * Shows all available LTI tool consumers */ - @RequestMapping("/start") + @RequestMapping(path = "/start", method = RequestMethod.POST) public String unspecified(HttpServletRequest request) { initServices(); @@ -71,7 +71,7 @@ /** * Edits specified LTI tool consumer */ - @RequestMapping("/edit") + @RequestMapping(path = "/edit", method = RequestMethod.POST) public String edit(@ModelAttribute LtiConsumerForm ltiConsumerForm, HttpServletRequest request) throws Exception { initServices(); @@ -96,7 +96,7 @@ /** * Disables or enables (depending on "disable" parameter) specified LTI tool consumer */ - @RequestMapping("/disable") + @RequestMapping(path = "/disable", method = RequestMethod.POST) public String disable(HttpServletRequest request) throws Exception { initServices(); @@ -139,30 +139,29 @@ } MultiValueMap errorMap = new LinkedMultiValueMap<>(); - String[] requiredFields = { "serverid", "serverkey", "servername", "prefix" }; + String[] requiredFields = extServerForm.getRequiredFields(); for (String requiredField : requiredFields) { - if (StringUtils.trimToNull(extServerForm.getString(requiredField)) == null) { - errorMap.add(requiredField, - new ActionMessage("error.required", messageService.getMessage("sysadmin." + requiredField))); + if (StringUtils.trimToNull(requiredField) == null) { + errorMap.add("error.required", messageService.getMessage("sysadmin." + requiredField)); } } Integer sid = extServerForm.getSid(); //check duplication if (errorMap.isEmpty()) { - String[] uniqueFields = { "serverid", "prefix" }; + String[] uniqueFields = extServerForm.getUniqueFields(); for (String uniqueField : uniqueFields) { - List list = userManagementService.findByProperty(ExtServer.class, uniqueField, - extServerForm.get(uniqueField)); + List list = userManagementService.findByProperty(ExtServer.class, "uniqueField", + uniqueField); if (list != null && list.size() > 0) { if (sid.equals(0)) {//new map - errorMap.add(uniqueField, new ActionMessage("error.not.unique", - messageService.getMessage("sysadmin." + uniqueField))); + errorMap.add("error.not.unique", + messageService.getMessage("sysadmin." + uniqueField)); } else { ExtServer ltiConsumer = list.get(0); if (!ltiConsumer.getSid().equals(sid)) { - errorMap.add(uniqueField, new ActionMessage("error.not.unique", - messageService.getMessage("sysadmin." + uniqueField))); + errorMap.add("error.not.unique", + messageService.getMessage("sysadmin." + uniqueField)); } } Index: lams_admin/src/java/org/lamsfoundation/lams/admin/web/controller/OrgManageController.java =================================================================== diff -u -re2c0c928c2cf3c0527ec942ad9af0ec67a3aa8d7 -r1ba327f73cb27c822d8a4ef36c386dd5a1432aef --- lams_admin/src/java/org/lamsfoundation/lams/admin/web/controller/OrgManageController.java (.../OrgManageController.java) (revision e2c0c928c2cf3c0527ec942ad9af0ec67a3aa8d7) +++ lams_admin/src/java/org/lamsfoundation/lams/admin/web/controller/OrgManageController.java (.../OrgManageController.java) (revision 1ba327f73cb27c822d8a4ef36c386dd5a1432aef) @@ -48,6 +48,7 @@ import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.ModelAttribute; import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.ResponseBody; import org.springframework.web.context.WebApplicationContext; import org.springframework.web.context.support.WebApplicationContextUtils; @@ -73,7 +74,7 @@ @Autowired private WebApplicationContext applicationContext; - @RequestMapping("/start") + @RequestMapping(path = "/start", method = RequestMethod.POST) public String unspecified(@ModelAttribute OrgManageForm orgManageForm, HttpServletRequest request, HttpServletResponse response) throws Exception { initServices(); Index: lams_admin/src/java/org/lamsfoundation/lams/admin/web/controller/OrgPasswordChangeController.java =================================================================== diff -u -re2c0c928c2cf3c0527ec942ad9af0ec67a3aa8d7 -r1ba327f73cb27c822d8a4ef36c386dd5a1432aef --- lams_admin/src/java/org/lamsfoundation/lams/admin/web/controller/OrgPasswordChangeController.java (.../OrgPasswordChangeController.java) (revision e2c0c928c2cf3c0527ec942ad9af0ec67a3aa8d7) +++ lams_admin/src/java/org/lamsfoundation/lams/admin/web/controller/OrgPasswordChangeController.java (.../OrgPasswordChangeController.java) (revision 1ba327f73cb27c822d8a4ef36c386dd5a1432aef) @@ -59,6 +59,7 @@ import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.ModelAttribute; import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.ResponseBody; import org.springframework.web.context.WebApplicationContext; @@ -166,7 +167,7 @@ return resultJSON.toString(); } - @RequestMapping("/changePassword") + @RequestMapping(path = "/changePassword", method = RequestMethod.POST) public String changePassword(@ModelAttribute OrgPasswordChangeForm orgPasswordChangeForm, HttpServletRequest request, HttpServletResponse response) throws IOException { UserDTO userDTO = getUserDTO(); Index: lams_admin/src/java/org/lamsfoundation/lams/admin/web/controller/OrgSaveController.java =================================================================== diff -u -re2c0c928c2cf3c0527ec942ad9af0ec67a3aa8d7 -r1ba327f73cb27c822d8a4ef36c386dd5a1432aef --- lams_admin/src/java/org/lamsfoundation/lams/admin/web/controller/OrgSaveController.java (.../OrgSaveController.java) (revision e2c0c928c2cf3c0527ec942ad9af0ec67a3aa8d7) +++ lams_admin/src/java/org/lamsfoundation/lams/admin/web/controller/OrgSaveController.java (.../OrgSaveController.java) (revision 1ba327f73cb27c822d8a4ef36c386dd5a1432aef) @@ -51,6 +51,7 @@ import org.springframework.util.MultiValueMap; import org.springframework.web.bind.annotation.ModelAttribute; import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.context.WebApplicationContext; import org.springframework.web.context.support.WebApplicationContextUtils; @@ -89,7 +90,7 @@ @Autowired private WebApplicationContext applicationContext; - @RequestMapping("/orgsave") + @RequestMapping(path = "/orgsave", method = RequestMethod.POST) public String execute(@ModelAttribute OrganisationForm organisationForm, HttpServletRequest request, HttpServletResponse response) throws Exception { @@ -108,12 +109,12 @@ request.setAttribute("org", orgId); org = (Organisation) service.findById(Organisation.class, orgId); if (org.getOrganisationType().getOrganisationTypeId().equals(OrganisationType.CLASS_TYPE)) { - return "forward:/usermanage.do"; + return "redirect:/usermanage.do"; } } else { request.setAttribute("org", organisationForm.getParentId()); } - return "forward:/orgmanage.do"; + return "redirect:/orgmanage.do"; } MultiValueMap errorMap = new LinkedMultiValueMap<>(); @@ -166,10 +167,10 @@ org = service.saveOrganisation(org, user.getUserID()); request.setAttribute("org", organisationForm.getParentId()); - return "forward:/orgmanage.do"; + return "redirect:/orgmanage.do"; } else { request.setAttribute("errorMap", errorMap); - return "forward:/organisation/edit.do"; + return "redirect:/organisation/edit.do"; } } Index: lams_admin/src/java/org/lamsfoundation/lams/admin/web/controller/OrganisationController.java =================================================================== diff -u -re2c0c928c2cf3c0527ec942ad9af0ec67a3aa8d7 -r1ba327f73cb27c822d8a4ef36c386dd5a1432aef --- lams_admin/src/java/org/lamsfoundation/lams/admin/web/controller/OrganisationController.java (.../OrganisationController.java) (revision e2c0c928c2cf3c0527ec942ad9af0ec67a3aa8d7) +++ lams_admin/src/java/org/lamsfoundation/lams/admin/web/controller/OrganisationController.java (.../OrganisationController.java) (revision 1ba327f73cb27c822d8a4ef36c386dd5a1432aef) @@ -172,7 +172,7 @@ return null; } - @RequestMapping("/deleteAllLessonsInit") + @RequestMapping(path = "/deleteAllLessonsInit", method = RequestMethod.POST) public String deleteAllLessonsInit(HttpServletRequest request, HttpServletResponse response) throws IOException { if (!AdminServiceProxy.getSecurityService(applicationContext.getServletContext()).isSysadmin(getUserID(), "display cleanup preview lessons", false)) { Index: lams_admin/src/java/org/lamsfoundation/lams/admin/web/controller/ScheduledJobListController.java =================================================================== diff -u -re2c0c928c2cf3c0527ec942ad9af0ec67a3aa8d7 -r1ba327f73cb27c822d8a4ef36c386dd5a1432aef --- lams_admin/src/java/org/lamsfoundation/lams/admin/web/controller/ScheduledJobListController.java (.../ScheduledJobListController.java) (revision e2c0c928c2cf3c0527ec942ad9af0ec67a3aa8d7) +++ lams_admin/src/java/org/lamsfoundation/lams/admin/web/controller/ScheduledJobListController.java (.../ScheduledJobListController.java) (revision 1ba327f73cb27c822d8a4ef36c386dd5a1432aef) @@ -40,6 +40,7 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.context.WebApplicationContext; import org.springframework.web.context.support.WebApplicationContextUtils; @@ -64,8 +65,7 @@ * Get all waitting queue jobs scheduled in Quartz table and display job name, job start time and description. The * description will be in format "Lesson Name":"the lesson creator", or "The gate name":"The relatived lesson name". */ - @SuppressWarnings("unchecked") - @RequestMapping("/joblist") + @RequestMapping(path = "/joblist", method = RequestMethod.POST) public String execute(HttpServletRequest request) throws Exception { WebApplicationContext ctx = WebApplicationContextUtils Index: lams_admin/src/java/org/lamsfoundation/lams/admin/web/controller/ServerListController.java =================================================================== diff -u -re2c0c928c2cf3c0527ec942ad9af0ec67a3aa8d7 -r1ba327f73cb27c822d8a4ef36c386dd5a1432aef --- lams_admin/src/java/org/lamsfoundation/lams/admin/web/controller/ServerListController.java (.../ServerListController.java) (revision e2c0c928c2cf3c0527ec942ad9af0ec67a3aa8d7) +++ lams_admin/src/java/org/lamsfoundation/lams/admin/web/controller/ServerListController.java (.../ServerListController.java) (revision 1ba327f73cb27c822d8a4ef36c386dd5a1432aef) @@ -32,6 +32,7 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.context.WebApplicationContext; /** @@ -44,7 +45,7 @@ @Autowired private WebApplicationContext applicationContext; - @RequestMapping("/serverlist") + @RequestMapping(path = "/serverlist", method = RequestMethod.POST) public String execute(HttpServletRequest request) throws Exception { List extServers = AdminServiceProxy.getIntegrationService(applicationContext.getServletContext()) .getAllExtServers(); Index: lams_admin/src/java/org/lamsfoundation/lams/admin/web/controller/ServerMaintainController.java =================================================================== diff -u -re2c0c928c2cf3c0527ec942ad9af0ec67a3aa8d7 -r1ba327f73cb27c822d8a4ef36c386dd5a1432aef --- lams_admin/src/java/org/lamsfoundation/lams/admin/web/controller/ServerMaintainController.java (.../ServerMaintainController.java) (revision e2c0c928c2cf3c0527ec942ad9af0ec67a3aa8d7) +++ lams_admin/src/java/org/lamsfoundation/lams/admin/web/controller/ServerMaintainController.java (.../ServerMaintainController.java) (revision 1ba327f73cb27c822d8a4ef36c386dd5a1432aef) @@ -34,6 +34,7 @@ import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.ModelAttribute; import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.context.WebApplicationContext; /** @@ -50,7 +51,7 @@ @Autowired private WebApplicationContext applicationContext; - @RequestMapping("/edit") + @RequestMapping(path = "/edit", method = RequestMethod.POST) public String edit(@ModelAttribute ExtServerForm extServerForm, HttpServletRequest request) throws Exception { Integer sid = WebUtil.readIntParam(request, "sid", true); if (sid != null) { @@ -61,31 +62,31 @@ return "servermaintain"; } - @RequestMapping("/edit") + @RequestMapping(path = "/disable", method = RequestMethod.POST) public String disable(HttpServletRequest request) throws Exception { IIntegrationService service = AdminServiceProxy.getIntegrationService(applicationContext.getServletContext()); Integer sid = WebUtil.readIntParam(request, "sid", false); ExtServer map = service.getExtServer(sid); map.setDisabled(true); service.saveExtServer(map); - return "forward:/serverlist.do"; + return "redirect:/serverlist.do"; } - @RequestMapping("/edit") + @RequestMapping(path = "/enable", method = RequestMethod.POST) public String enable(HttpServletRequest request) throws Exception { IIntegrationService service = AdminServiceProxy.getIntegrationService(applicationContext.getServletContext()); Integer sid = WebUtil.readIntParam(request, "sid", false); ExtServer map = service.getExtServer(sid); map.setDisabled(false); service.saveExtServer(map); - return "forward:/serverlist.do"; + return "redirect:/serverlist.do"; } - @RequestMapping("/edit") + @RequestMapping(path = "/delete", method = RequestMethod.POST) public String delete(HttpServletRequest request) throws Exception { Integer sid = WebUtil.readIntParam(request, "sid", false); AdminServiceProxy.getService(applicationContext.getServletContext()).deleteById(ExtServer.class, sid); - return "forward:/serverlist.do"; + return "redirect:/serverlist.do"; } } Index: lams_admin/src/java/org/lamsfoundation/lams/admin/web/controller/ServerSaveController.java =================================================================== diff -u -re2c0c928c2cf3c0527ec942ad9af0ec67a3aa8d7 -r1ba327f73cb27c822d8a4ef36c386dd5a1432aef --- lams_admin/src/java/org/lamsfoundation/lams/admin/web/controller/ServerSaveController.java (.../ServerSaveController.java) (revision e2c0c928c2cf3c0527ec942ad9af0ec67a3aa8d7) +++ lams_admin/src/java/org/lamsfoundation/lams/admin/web/controller/ServerSaveController.java (.../ServerSaveController.java) (revision 1ba327f73cb27c822d8a4ef36c386dd5a1432aef) @@ -75,25 +75,23 @@ MultiValueMap errorMap = new LinkedMultiValueMap<>(); String[] requiredFields = { "serverid", "serverkey", "servername", "prefix", "userinfoUrl" }; for (String requiredField : requiredFields) { - if (StringUtils.trimToNull(extServerForm.getString(requiredField)) == null) { - errorMap.add(requiredField, "error.required", messageService.getMessage("sysadmin." + requiredField)); + if (StringUtils.trimToNull(requiredField) == null) { + errorMap.add("error.required", messageService.getMessage("sysadmin." + requiredField)); } } Integer sid = extServerForm.getSid(); if (errorMap.isEmpty()) {//check duplication - String[] uniqueFields = { "serverid", "prefix" }; + String[] uniqueFields = extServerForm.getUniqueFields(); for (String uniqueField : uniqueFields) { - List list = userService.findByProperty(ExtServer.class, uniqueField, extServerForm.get(uniqueField)); + List list = userService.findByProperty(ExtServer.class, "uniqueField", uniqueField); if (list != null && list.size() > 0) { if (sid.equals(-1)) {//new map - errorMap.add(uniqueField, "error.not.unique", - messageService.getMessage("sysadmin." + uniqueField)); + errorMap.add("error.not.unique", messageService.getMessage("sysadmin." + uniqueField)); } else { ExtServer map = (ExtServer) list.get(0); if (!map.getSid().equals(sid)) { - errorMap.add(uniqueField, "error.not.unique", - messageService.getMessage("sysadmin." + uniqueField)); + errorMap.add("error.not.unique", messageService.getMessage("sysadmin." + uniqueField)); } } Index: lams_admin/src/java/org/lamsfoundation/lams/admin/web/controller/SessionMaintainController.java =================================================================== diff -u -re2c0c928c2cf3c0527ec942ad9af0ec67a3aa8d7 -r1ba327f73cb27c822d8a4ef36c386dd5a1432aef --- lams_admin/src/java/org/lamsfoundation/lams/admin/web/controller/SessionMaintainController.java (.../SessionMaintainController.java) (revision e2c0c928c2cf3c0527ec942ad9af0ec67a3aa8d7) +++ lams_admin/src/java/org/lamsfoundation/lams/admin/web/controller/SessionMaintainController.java (.../SessionMaintainController.java) (revision 1ba327f73cb27c822d8a4ef36c386dd5a1432aef) @@ -28,6 +28,7 @@ import org.lamsfoundation.lams.web.session.SessionManager; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; /** * @author Marcin Cieslak @@ -36,13 +37,13 @@ @RequestMapping("/sessionmaintain") public class SessionMaintainController { - @RequestMapping("/list") + @RequestMapping(path = "/list", method = RequestMethod.POST) public String list(HttpServletRequest request) { request.setAttribute("sessions", SessionManager.getLoginToSessionIDMappings()); return "sessionmaintain"; } - @RequestMapping("/delete") + @RequestMapping(path = "/delete", method = RequestMethod.POST) public String delete(HttpServletRequest request) { String login = request.getParameter("login"); if (StringUtils.isNotBlank(login)) { Index: lams_admin/src/java/org/lamsfoundation/lams/admin/web/controller/SignupManagementController.java =================================================================== diff -u -re2c0c928c2cf3c0527ec942ad9af0ec67a3aa8d7 -r1ba327f73cb27c822d8a4ef36c386dd5a1432aef --- lams_admin/src/java/org/lamsfoundation/lams/admin/web/controller/SignupManagementController.java (.../SignupManagementController.java) (revision e2c0c928c2cf3c0527ec942ad9af0ec67a3aa8d7) +++ lams_admin/src/java/org/lamsfoundation/lams/admin/web/controller/SignupManagementController.java (.../SignupManagementController.java) (revision 1ba327f73cb27c822d8a4ef36c386dd5a1432aef) @@ -179,6 +179,6 @@ userManagementService.deleteById(SignupOrganisation.class, soid); } - return "forward:signupManagement/list.do"; + return "redirect:signupManagement/list.do"; } } Index: lams_admin/src/java/org/lamsfoundation/lams/admin/web/controller/StatisticsController.java =================================================================== diff -u -re2c0c928c2cf3c0527ec942ad9af0ec67a3aa8d7 -r1ba327f73cb27c822d8a4ef36c386dd5a1432aef --- lams_admin/src/java/org/lamsfoundation/lams/admin/web/controller/StatisticsController.java (.../StatisticsController.java) (revision e2c0c928c2cf3c0527ec942ad9af0ec67a3aa8d7) +++ lams_admin/src/java/org/lamsfoundation/lams/admin/web/controller/StatisticsController.java (.../StatisticsController.java) (revision 1ba327f73cb27c822d8a4ef36c386dd5a1432aef) @@ -35,6 +35,7 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.context.WebApplicationContext; /** @@ -51,7 +52,7 @@ @Autowired private WebApplicationContext applicationContext; - @RequestMapping("/start") + @RequestMapping(path = "/start", method = RequestMethod.POST) public String unspecified(HttpServletRequest request) throws Exception { // check permission @@ -75,7 +76,7 @@ return "statistics"; } - @RequestMapping("/groupStats") + @RequestMapping(path = "/groupStats", method = RequestMethod.POST) public String groupStats(HttpServletRequest request) throws Exception { Integer orgId = WebUtil.readIntParam(request, "orgId"); Index: lams_admin/src/java/org/lamsfoundation/lams/admin/web/controller/SysAdminStartController.java =================================================================== diff -u -re2c0c928c2cf3c0527ec942ad9af0ec67a3aa8d7 -r1ba327f73cb27c822d8a4ef36c386dd5a1432aef --- lams_admin/src/java/org/lamsfoundation/lams/admin/web/controller/SysAdminStartController.java (.../SysAdminStartController.java) (revision e2c0c928c2cf3c0527ec942ad9af0ec67a3aa8d7) +++ lams_admin/src/java/org/lamsfoundation/lams/admin/web/controller/SysAdminStartController.java (.../SysAdminStartController.java) (revision 1ba327f73cb27c822d8a4ef36c386dd5a1432aef) @@ -34,6 +34,7 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.context.WebApplicationContext; /** @@ -48,7 +49,7 @@ @Autowired private WebApplicationContext applicationContext; - @RequestMapping("/sysadminstart") + @RequestMapping(path = "/sysadminstart", method = RequestMethod.POST) public String execute(HttpServletRequest request) throws Exception { service = AdminServiceProxy.getService(applicationContext.getServletContext()); Index: lams_admin/src/java/org/lamsfoundation/lams/admin/web/form/ExtServerForm.java =================================================================== diff -u -r550e1b37b507779064955267ef47e9085f791357 -r1ba327f73cb27c822d8a4ef36c386dd5a1432aef --- lams_admin/src/java/org/lamsfoundation/lams/admin/web/form/ExtServerForm.java (.../ExtServerForm.java) (revision 550e1b37b507779064955267ef47e9085f791357) +++ lams_admin/src/java/org/lamsfoundation/lams/admin/web/form/ExtServerForm.java (.../ExtServerForm.java) (revision 1ba327f73cb27c822d8a4ef36c386dd5a1432aef) @@ -48,6 +48,10 @@ private Integer timeToLiveLoginRequest = 80; + private String[] requiredFields = { "serverid", "serverkey", "servername", "prefix" }; + + private String[] uniqueFields = { "serverid", "prefix" }; + public Integer getSid() { return sid; } @@ -144,4 +148,20 @@ this.timeToLiveLoginRequest = timeToLiveLoginRequest; } + public String[] getRequiredFields() { + return requiredFields; + } + + public void setRequiredFields(String[] requiredFields) { + this.requiredFields = requiredFields; + } + + public String[] getUniqueFields() { + return uniqueFields; + } + + public void setUniqueFields(String[] uniqueFields) { + this.uniqueFields = uniqueFields; + } + } Index: lams_admin/web/cleanup.jsp =================================================================== diff -u -r550e1b37b507779064955267ef47e9085f791357 -r1ba327f73cb27c822d8a4ef36c386dd5a1432aef --- lams_admin/web/cleanup.jsp (.../cleanup.jsp) (revision 550e1b37b507779064955267ef47e9085f791357) +++ lams_admin/web/cleanup.jsp (.../cleanup.jsp) (revision 1ba327f73cb27c822d8a4ef36c386dd5a1432aef) @@ -1,50 +1,77 @@ + + <%@ include file="/taglibs.jsp"%> <%@ page import="org.lamsfoundation.lams.util.FileUtil" %> <%@ page import="org.lamsfoundation.lams.util.TempDirectoryFilter" %> -

+ + + + ${title} -<%-- Error Messages --%> - - - - - - - - + + + + + + + + + + + + +

- -
-
- - - -

-
- - - + <%-- Error Messages --%> + + + + + + + + -
    -
  • <%= TempDirectoryFilter.zip_prefix %>* : KB -
  • <%= TempDirectoryFilter.tmp_prefix %>* : KB -
- -

+ +
+
+ + + +

+
+ + + + +
    +
  • <%= TempDirectoryFilter.zip_prefix %>* : KB +
  • <%= TempDirectoryFilter.tmp_prefix %>* : KB +
+ +

+ +

+ +

+ + + +

: +

+ +
+ " onclick="bCancel=true;" class="btn btn-default"> + " /> +
+ +
+ +
-

- -

+ +
- -

: -

- -
- - " /> -
- -
+ Index: lams_admin/web/cleanupPreviewLessons.jsp =================================================================== diff -u -r550e1b37b507779064955267ef47e9085f791357 -r1ba327f73cb27c822d8a4ef36c386dd5a1432aef --- lams_admin/web/cleanupPreviewLessons.jsp (.../cleanupPreviewLessons.jsp) (revision 550e1b37b507779064955267ef47e9085f791357) +++ lams_admin/web/cleanupPreviewLessons.jsp (.../cleanupPreviewLessons.jsp) (revision 1ba327f73cb27c822d8a4ef36c386dd5a1432aef) @@ -1,71 +1,102 @@ + + <%@ include file="/taglibs.jsp"%> - - + - if (previewCount == 0) { - deleteButton.prop('disabled', true); - return; - } + + + }); + } + + + + -

+ + + +

- + + + + + + + + +  ${previewCount} / ${allLessonCount} + + +
+ +
+
- ${previewCount} / ${allLessonCount} - + + -
- -
\ No newline at end of file Index: lams_admin/web/config/editconfig.jsp =================================================================== diff -u -rce9875cacd54d5d9b3c6a8425c19164e77fe6c49 -r1ba327f73cb27c822d8a4ef36c386dd5a1432aef --- lams_admin/web/config/editconfig.jsp (.../editconfig.jsp) (revision ce9875cacd54d5d9b3c6a8425c19164e77fe6c49) +++ lams_admin/web/config/editconfig.jsp (.../editconfig.jsp) (revision 1ba327f73cb27c822d8a4ef36c386dd5a1432aef) @@ -6,8 +6,7 @@ - - + ${title} @@ -18,63 +17,64 @@ - - - ${title}: - - - - - - - -

- - - - - - - - - <%@ include file="/config/items.jsp"%> - -
- - - - " /> -
-
-
-
- - -

+ + + + + +

- - - - - + + + + + - + - <%@ include file="/config/items.jsp"%> - -
- - - - " /> + +
+
+
- - - - - - + + + + + + + + +
+ +   * + + + <%= ConfigurationItem.BOOLEAN_FORMAT %> + + + + true + false   + + + + + + +
+
+
+ +
+ " onclick="bCancel=true;" class="btn btn-default"> + " /> +
+ + + + Index: lams_admin/web/disabledusers.jsp =================================================================== diff -u -r7475d08afc280b5e2e5ddf04e8bf35e3166aaf80 -r1ba327f73cb27c822d8a4ef36c386dd5a1432aef --- lams_admin/web/disabledusers.jsp (.../disabledusers.jsp) (revision 7475d08afc280b5e2e5ddf04e8bf35e3166aaf80) +++ lams_admin/web/disabledusers.jsp (.../disabledusers.jsp) (revision 1ba327f73cb27c822d8a4ef36c386dd5a1432aef) @@ -1,36 +1,64 @@ + + <%@ include file="/taglibs.jsp"%> -

+ + + + ${title} - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - -
+ + + + + +
+ + + + + ${title}: + + + +

+ + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + " class="btn btn-default btn-sm"> +
+
+ + +
+ + + Index: lams_admin/web/import/importGroups.jsp =================================================================== diff -u -r7475d08afc280b5e2e5ddf04e8bf35e3166aaf80 -r1ba327f73cb27c822d8a4ef36c386dd5a1432aef --- lams_admin/web/import/importGroups.jsp (.../importGroups.jsp) (revision 7475d08afc280b5e2e5ddf04e8bf35e3166aaf80) +++ lams_admin/web/import/importGroups.jsp (.../importGroups.jsp) (revision 1ba327f73cb27c822d8a4ef36c386dd5a1432aef) @@ -1,105 +1,133 @@ + + <%@ include file="/taglibs.jsp"%> <%@ page import="org.lamsfoundation.lams.admin.service.IImportService" %> <%@ page import="java.util.List" %> <%@ page import="org.lamsfoundation.lams.usermanagement.OrganisationType" %> <%@ page import="org.lamsfoundation.lams.util.Configuration"%> <%@ page import="org.lamsfoundation.lams.util.ConfigurationKeys"%> -<%@ page import="org.lamsfoundation.lams.util.FileValidatorUtil" %> +<%@ page import="org.lamsfoundation.lams.util.FileValidatorSpringUtil" %> - + + + + ${title} -<%=Configuration.get(ConfigurationKeys.UPLOAD_FILE_LARGE_MAX_SIZE)%> -<%=FileValidatorUtil.formatSize(Configuration.getAsInt(ConfigurationKeys.UPLOAD_FILE_LARGE_MAX_SIZE))%> -<%=Configuration.get(ConfigurationKeys.EXE_EXTENSIONS)%> + - - - - + - function verifyAndSubmit() { - if ( "undefined" === typeof bCancel || ! bCancel ) { - var fileSelect = document.getElementById('file'); - var files = fileSelect.files; - if (files.length == 0) { - clearFileError(); - showFileError(''); - return false; - } else { - var file = files[0]; - if ( ! validateShowErrorSpreadsheetType(file, '', false) - || ! validateShowErrorFileSize(file, '${UPLOAD_FILE_MAX_SIZE}', '') ) { + <%=Configuration.get(ConfigurationKeys.UPLOAD_FILE_LARGE_MAX_SIZE)%> + <%=FileValidatorSpringUtil.formatSize(Configuration.getAsInt(ConfigurationKeys.UPLOAD_FILE_LARGE_MAX_SIZE))%> + <%=Configuration.get(ConfigurationKeys.EXE_EXTENSIONS)%> + + + + + + + + + + + + + + +

-

- -
- - -

- - - <% - List results = (List)request.getAttribute("results"); - for (int i=0; i"); - List rowResult = (List)results.get(i); - if (rowResult != null && rowResult.size() >= 4) { - if (rowResult.get(3).equals(OrganisationType.COURSE_TYPE.toString())) { - out.print(""); - out.print(""); - } else if (rowResult.get(3).equals(OrganisationType.CLASS_TYPE.toString())) { - out.print(""); - out.print(""); +
+ + +

+
"+rowResult.get(0)+""+rowResult.get(1)+""+rowResult.get(0)+""+rowResult.get(1)+"
+ + <% + List results = (List)request.getAttribute("results"); + for (int i=0; i"); + List rowResult = (List)results.get(i); + if (rowResult != null && rowResult.size() >= 4) { + if (rowResult.get(3).equals(OrganisationType.COURSE_TYPE.toString())) { + out.print(""); + out.print(""); + } else if (rowResult.get(3).equals(OrganisationType.CLASS_TYPE.toString())) { + out.print(""); + out.print(""); + } + } else { // it's an error message + out.print(""); } - } else { // it's an error message - out.print(""); + out.println(""); } - out.println(""); - } - %> -
"+rowResult.get(0)+""+rowResult.get(1)+""+rowResult.get(0)+""+rowResult.get(1)+""); + for (int j=0; j"); + } + out.print(""); - for (int j=0; j"); - } - out.print("
-
-
+ %> + +
+ + +

+

+

+

+

+ + + + + + + +
+ " onclick="bCancel=true;" class="btn btn-default"> + " />   +
+ +
+ +
+
+ + +
-

-

-

-

-

- - - - -
- -   -
- -
- -
Index: lams_admin/web/import/importexcel.jsp =================================================================== diff -u -rce9875cacd54d5d9b3c6a8425c19164e77fe6c49 -r1ba327f73cb27c822d8a4ef36c386dd5a1432aef --- lams_admin/web/import/importexcel.jsp (.../importexcel.jsp) (revision ce9875cacd54d5d9b3c6a8425c19164e77fe6c49) +++ lams_admin/web/import/importexcel.jsp (.../importexcel.jsp) (revision 1ba327f73cb27c822d8a4ef36c386dd5a1432aef) @@ -9,8 +9,7 @@ - - + ${title} @@ -59,15 +58,10 @@ - - - ${title}: - - - - - - + + + +

-
- - - - value="" /> + " onclick="bCancel=true;" id="cancelButton" class="btn btn-default"> + " />  
-
- - -

- -

- -

- -

-

-

-

-
- - : -
    -
  • - -
  • - -
  • -
    - -
  • -
    - -
  • -
    - -
  • -
    -
-
-
-

- -

- - - - - - - -
- - - - value="" /> -   -
- -
-
-
+
Index: lams_admin/web/import/importresult.jsp =================================================================== diff -u -r7475d08afc280b5e2e5ddf04e8bf35e3166aaf80 -r1ba327f73cb27c822d8a4ef36c386dd5a1432aef --- lams_admin/web/import/importresult.jsp (.../importresult.jsp) (revision 7475d08afc280b5e2e5ddf04e8bf35e3166aaf80) +++ lams_admin/web/import/importresult.jsp (.../importresult.jsp) (revision 1ba327f73cb27c822d8a4ef36c386dd5a1432aef) @@ -1,15 +1,39 @@ + + <%@ include file="/taglibs.jsp"%> -

+ + + + ${title} -

-

- - - Row : - -
-
-
-
-

+ + + + + +
+ + + + +

+ +

+

+ + + Row : + +
+
+
+
+

+ +
+ +
+ + + Index: lams_admin/web/import/status.jsp =================================================================== diff -u -r7475d08afc280b5e2e5ddf04e8bf35e3166aaf80 -r1ba327f73cb27c822d8a4ef36c386dd5a1432aef --- lams_admin/web/import/status.jsp (.../status.jsp) (revision 7475d08afc280b5e2e5ddf04e8bf35e3166aaf80) +++ lams_admin/web/import/status.jsp (.../status.jsp) (revision 1ba327f73cb27c822d8a4ef36c386dd5a1432aef) @@ -1,55 +1,56 @@ + + <%@ include file="/taglibs.jsp"%> <%@ page import="org.lamsfoundation.lams.web.session.SessionManager" %> <%@ page import="org.lamsfoundation.lams.admin.service.IImportService" %> - - - - - - - + - function refresh() { - document.location = 'admin/import/status.jsp'; - } - window.setInterval("refresh()",5000); - + - -<% - Integer importTotal = (Integer)SessionManager.getSession().getAttribute(IImportService.STATUS_IMPORT_TOTAL); - Integer imported = (Integer)SessionManager.getSession().getAttribute(IImportService.STATUS_IMPORTED); - String progress = ""; - try { - float percent = imported.floatValue()/importTotal.floatValue() * 100; - progress = (new Float(percent)).toString(); - progress = (progress.length() >= 5 ? progress.substring(0,5) : progress); - } catch (Exception e) {} - out.println((progress.length()>0?progress:"0")+"% completed..."); -%> - + + <% + Integer importTotal = (Integer)SessionManager.getSession().getAttribute(IImportService.STATUS_IMPORT_TOTAL); + Integer imported = (Integer)SessionManager.getSession().getAttribute(IImportService.STATUS_IMPORTED); + String progress = ""; + try { + float percent = imported.floatValue()/importTotal.floatValue() * 100; + progress = (new Float(percent)).toString(); + progress = (progress.length() >= 5 ? progress.substring(0,5) : progress); + } catch (Exception e) {} + out.println((progress.length()>0?progress:"0")+"% completed..."); + %> + - - - -
-

-

${progressMessage}

-
- - + + - +
+

+

${progressMessage}

+
+ + + +
\ No newline at end of file Index: lams_admin/web/joblist.jsp =================================================================== diff -u -r7475d08afc280b5e2e5ddf04e8bf35e3166aaf80 -r1ba327f73cb27c822d8a4ef36c386dd5a1432aef --- lams_admin/web/joblist.jsp (.../joblist.jsp) (revision 7475d08afc280b5e2e5ddf04e8bf35e3166aaf80) +++ lams_admin/web/joblist.jsp (.../joblist.jsp) (revision 1ba327f73cb27c822d8a4ef36c386dd5a1432aef) @@ -1,33 +1,56 @@ + + <%@ include file="/taglibs.jsp"%> -
-
- - - - - - - - - - - - - - - - - - - -
-
- - - - - -
Total jobs: ${fn:length(jobList)}
-
-
+ + + + ${title} + + + + + + + + + + +
+
+ + + + + + + + + + + + + + + + + + + +
+
+ + + + + +
Total jobs: ${fn:length(jobList)}
+
+
+ +
+ +
+ + + Index: lams_admin/web/ldap.jsp =================================================================== diff -u -rce9875cacd54d5d9b3c6a8425c19164e77fe6c49 -r1ba327f73cb27c822d8a4ef36c386dd5a1432aef --- lams_admin/web/ldap.jsp (.../ldap.jsp) (revision ce9875cacd54d5d9b3c6a8425c19164e77fe6c49) +++ lams_admin/web/ldap.jsp (.../ldap.jsp) (revision 1ba327f73cb27c822d8a4ef36c386dd5a1432aef) @@ -1,13 +1,13 @@ <%@ include file="/taglibs.jsp"%> +<%@ page import="org.lamsfoundation.lams.config.ConfigurationItem" %> <%@ page import="org.lamsfoundation.lams.web.session.SessionManager" %> <%@ page import="org.lamsfoundation.lams.usermanagement.service.ILdapService" %> - - + ${title} @@ -28,42 +28,71 @@ - - - ${title}: - - - - - - -

+ + + + + +

-
-
-
-
+
+
+
+
-
- - - <%@ include file="/config/items.jsp"%> -
- " /> - - " /> +
+ + + +
+
+
+
+ + + + + + + + +
+ +   * + + + <%= ConfigurationItem.BOOLEAN_FORMAT %> + + + + true + false   + + + + + + +
-
-
-
-
+ + +
+ " /> + " onclick="bCancel=true;" class="btn btn-default loffset5"> + " /> +
+
+
+
+
+ +
+
+
+
-
-
-
-
-

@@ -82,123 +111,40 @@ - -

-
    - -
  • - + +

    +
      + +
    • +
      -
    • -
      - -
    • -
      - -
    • -
      - -
    • -
      - -
    • -
      -
    +
  • - - " onclick='startSync();'/> - -
-
- - - - -

- -
-
-
-
- -
- - - <%@ include file="/config/items.jsp"%> -
- " /> - - " /> -
-
+ +
  • -
    -
    - -
    -
    -
    -
    - -
    -

    -

    - - -

    + +
  • - - -

    - + +
  • - - -

    -
      - -
    • - -
        - -
      • -
        -
      -
    • -
      - -
    • -
      - -
    • -
      - -
    • -
      - -
    • -
      -
    + +
  • + +
    - " onclick='startSync();'/> + " onclick='startSync();'/> -
    -
    -
    -
    - +
    +
    +
    -
    Index: lams_admin/web/logevent.jsp =================================================================== diff -u -r7475d08afc280b5e2e5ddf04e8bf35e3166aaf80 -r1ba327f73cb27c822d8a4ef36c386dd5a1432aef --- lams_admin/web/logevent.jsp (.../logevent.jsp) (revision 7475d08afc280b5e2e5ddf04e8bf35e3166aaf80) +++ lams_admin/web/logevent.jsp (.../logevent.jsp) (revision 1ba327f73cb27c822d8a4ef36c386dd5a1432aef) @@ -1,243 +1,266 @@ + + <%@ include file="/taglibs.jsp"%> - + + + + ${title} - - - + + + + + + + - - - - - - - - - - + + + + + + + + + + + + + + +

    - $(".tablesorter").each(function() { - $(this).tablesorterPager({ - processAjaxOnInit: false, - initialRows: { - total: 10, - filtered: 10 - }, - savePages: false, - container: $(this).find(".ts-pager"), - output: '{startRow} to {endRow} ({totalRows})', - cssPageDisplay: '.pagedisplay', - cssPageSize: '.pagesize', - cssDisabled: 'disabled', - ajaxUrl : "?method=getEventLog&sessionMapID=${sessionMapID}&page={page}&size={size}&{sortList:column}&{filterList:fcol}&s", - ajaxProcessing: function (data, table) { - if (data && data.hasOwnProperty('rows')) { - var rows = [], - json = {}; - - for (i = 0; i < data.rows.length; i++){ - var logData = data.rows[i]; - - rows += ''; +
    +   + +   +   + + +
    + +
    + + + + + + + +
    +
    - rows += ''; - rows += logData['dateOccurred']; - rows += ''; + +
    - rows += ''; - var typeId = logData['typeId']; - var typeDescription; - if ( typeId ) - typeDescription = typeDescriptions[typeId]; - if ( ! typeDescription ) { - // this should never occur but just in case - typeDescription = '['+typeId+']'; - } - rows += typeDescription; - rows += ''; - rows += ''; - if ( logData['userId'] ) { - rows += definePortraitPopover(logData['userPortraitId'], logData['userId'], logData['userName'], logData['userName']); - } else { - rows += '-'; - } - rows += ''; - rows += ''; - if ( logData['targetUserId'] ) { - rows += definePortraitPopover(logData['targetUserPortraitId'], logData['targetUserId'], logData['targetUserName'], logData['targetUserName']); - } else { - rows += '-'; - } - rows += ''; - - rows += ''; - var lesson = null, activity = null, description = null, lineCount = 0; - if ( logData['lessonId'] ) { - lesson = LESSON_LABEL.replace('{0}',logData['lessonName']).replace('{1}',logData['lessonId']); - lineCount++; - } - if ( logData['activityId'] ) { - activity = ACTIVITY_LABEL.replace('{0}',logData['activityName']).replace('{1}',logData['activityId']); - lineCount++; - } - if ( logData['description'] ) { - description = logData['description']; - lineCount++; - } - if ( lesson != null ) { - rows+=lesson; - if ( lineCount > 1 ) - rows+='
    '; - } - if ( activity != null ) { - rows+=activity; - if ( lineCount > 1 ) - rows+='
    '; - } - if ( description != null ) { - rows+=description; - } - rows += ''; - - rows += ''; - } - - json.total = data.total_rows; - json.rows = $(rows); - return json; - - } - }, - customAjaxUrl: function(table, url) { - var startDate = $("#startDatePicker").datepicker("getDate"); - if ( startDate ) - url += "&startDate="+startDate.getTime(); - var endDate = $("#endDatePicker").datepicker("getDate"); - if ( endDate ) - url += "&endDate="+endDate.getTime(); - var area = $("#areaMenu").val(); - if ( area ) - url += "&area="+area; - var typeId = $("#typeMenu").val(); - if ( typeId ) - url += "&typeId="+typeId; - return url; - }, - }) - .bind('pagerInitialized pagerComplete', function(event, options){ - if ( options.totalRows == 0 ) { - $.tablesorter.showError($(this), ''); - } else { - initializePortraitPopover('${lams}'); - } - }) - - }); - - }); // end document.ready - - function addEventType(typeId, typeDescription, areaCode, areaDescription) { - var areaTypes = areaTypeMenus[areaCode]; - if ( ! areaTypes ) { - areaTypes = []; - areaTypes.push(new Option('','')); - areaTypeMenus[areaCode] = areaTypes; - areaOptions.push(new Option(areaDescription, areaCode)); - } - areaTypes.push(new Option(typeDescription, typeId)); - typeDescriptions[typeId] = typeDescription; - } - - function configureTypeDropdown( areaCode ) { - typeMenu.length = 0; - var newTypeOptions = areaTypeMenus[areaCode]; - if ( newTypeOptions ) { - for ( i=0; i < newTypeOptions.length; i++) { - typeMenu.options[i] = newTypeOptions[i]; - } - } - typeMenu[0].selected = true; - } - - function getEvents() { - $(".tablesorter").trigger('pagerUpdate', 1); - } - - -

    - -
    -   - -   -   - - -
    - -
    - - - - - -
    - - - \ No newline at end of file Index: lams_admin/web/loginmaintain.jsp =================================================================== diff -u -r7475d08afc280b5e2e5ddf04e8bf35e3166aaf80 -r1ba327f73cb27c822d8a4ef36c386dd5a1432aef --- lams_admin/web/loginmaintain.jsp (.../loginmaintain.jsp) (revision 7475d08afc280b5e2e5ddf04e8bf35e3166aaf80) +++ lams_admin/web/loginmaintain.jsp (.../loginmaintain.jsp) (revision 1ba327f73cb27c822d8a4ef36c386dd5a1432aef) @@ -1,19 +1,50 @@ + + <%@ include file="/taglibs.jsp"%> -

    + + + + ${title} - + + + + + + + + + + + +

    + + + + + + + + + + + + +

    + + + + + +
    + " onclick="bCancel=true;" class="btn btn-default"> + " /> +
    +
    +
    - - -

    + +
    - - - -
    - - -
    - Index: lams_admin/web/lti/ltiConsumer.jsp =================================================================== diff -u -rce9875cacd54d5d9b3c6a8425c19164e77fe6c49 -r1ba327f73cb27c822d8a4ef36c386dd5a1432aef --- lams_admin/web/lti/ltiConsumer.jsp (.../ltiConsumer.jsp) (revision ce9875cacd54d5d9b3c6a8425c19164e77fe6c49) +++ lams_admin/web/lti/ltiConsumer.jsp (.../ltiConsumer.jsp) (revision 1ba327f73cb27c822d8a4ef36c386dd5a1432aef) @@ -4,8 +4,7 @@ - - + ${title} @@ -45,16 +44,9 @@ - - - ${title}: - - - - - - + +

    @@ -118,95 +110,12 @@

    -
    - - - -

    - - - - - - - -

    - - <%-- Error Messages --%> - - - - - - - - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
     *
     *
     *
    :
     *
    :
    :${lessonFinishUrl}
    :
    - -
    - - - - " /> -
    -
    - - - -
    - -
    Index: lams_admin/web/lti/ltiConsumerList.jsp =================================================================== diff -u -rce9875cacd54d5d9b3c6a8425c19164e77fe6c49 -r1ba327f73cb27c822d8a4ef36c386dd5a1432aef --- lams_admin/web/lti/ltiConsumerList.jsp (.../ltiConsumerList.jsp) (revision ce9875cacd54d5d9b3c6a8425c19164e77fe6c49) +++ lams_admin/web/lti/ltiConsumerList.jsp (.../ltiConsumerList.jsp) (revision 1ba327f73cb27c822d8a4ef36c386dd5a1432aef) @@ -4,8 +4,7 @@ - - + ${title} @@ -16,16 +15,9 @@ - - - ${title}: - - - - - - + +

    @@ -94,81 +86,6 @@ - - - - -

    - - - -

    - - - - - - - - - - - - - - - - - - - - - - - - -
    - - - - - - - - - - - - -   - - - - - - - - - - - - -   - - - -
    - -

    ${fn:length(ltiConsumers)} 

    - - - -
    - -
    - -
    Index: lams_admin/web/orgPasswordChange.jsp =================================================================== diff -u -r7475d08afc280b5e2e5ddf04e8bf35e3166aaf80 -r1ba327f73cb27c822d8a4ef36c386dd5a1432aef --- lams_admin/web/orgPasswordChange.jsp (.../orgPasswordChange.jsp) (revision 7475d08afc280b5e2e5ddf04e8bf35e3166aaf80) +++ lams_admin/web/orgPasswordChange.jsp (.../orgPasswordChange.jsp) (revision 1ba327f73cb27c822d8a4ef36c386dd5a1432aef) @@ -1,441 +1,462 @@ -<%@ include file="/taglibs.jsp"%> + +<%@ include file="/taglibs.jsp"%> <%@ page import="org.lamsfoundation.lams.util.Configuration"%> <%@ page import="org.lamsfoundation.lams.util.ConfigurationKeys"%> -<%=Configuration.get(ConfigurationKeys.PASSWORD_POLICY_MINIMUM_CHARACTERS)%> -<%=Configuration.get(ConfigurationKeys.PASSWORD_POLICY_UPPERCASE)%> -<%=Configuration.get(ConfigurationKeys.PASSWORD_POLICY_NUMERICS)%> -<%=Configuration.get(ConfigurationKeys.PASSWORD_POLICY_LOWERCASE)%> -<%=Configuration.get(ConfigurationKeys.PASSWORD_POLICY_SYMBOLS)%> - - - + + + + + + - - - - - + + + + + + +

    + + +

    + +
    +

    - grid.resetSelection(); - if (selectAllCheckbox.prop('checked')) { - var excluded = grid.data('excluded'); - // go through each loaded row - $('[role="row"]', grid).each(function(){ - var id = +$(this).attr('id'), - selected = $(this).hasClass('success'); - // if row is not selected and is not excluded, select it - if (!selected && !excluded.includes(id)) { - // select without triggering onSelectRow - grid.jqGrid('setSelection', id, false); - } - }); - } else { - // go through each loaded row - $('[role="row"]', grid).each(function(){ - var id = +$(this).attr('id'), - selected = $(this).hasClass('success'); - // if row is not selected and is included, select it - if (!selected && included.includes(id)) { - // select without triggering onSelectRow - grid.jqGrid('setSelection', id, false); - } - }); - } + + : +
      +
    • + +
    • + + +
    • +
      + +
    • +
      + + +
    • +
      + + + +
    • +
      +
    + +
    + + + + + + + + + +
    +
    + +
    +
    + +
    +
    + + + +

    +
    +
    + +
    +
      +
      +

      + + + + + + + + + + + +
      +
      + +
      + + +
      +
      + +
      + + +
      +
      +
      +
      +
      +
      + +
      +
      +
      +
      + + +
      - changeCheckboxes.trigger('change'); - }, - loadError : function(xhr,st,err) { - $.jgrid.info_dialog('', - '', - ''); - } - }; - var includedLearners = "", - excludedLearners = "", - includedStaff = "", - excludedStaff = ""; - jqGridSettings.url = jqGridURL + 'learner' - $("#learnerGrid").data('excluded', excludedLearners ? JSON.parse(excludedLearners) : null) - .data('included', includedLearners ? JSON.parse(includedLearners) : null) - .jqGrid(jqGridSettings); - jqGridSettings.url = jqGridURL + 'staff' - $("#staffGrid").data('excluded', excludedStaff ? JSON.parse(excludedStaff) : null) - .data('included', includedStaff ? JSON.parse(includedStaff) : null) - .jqGrid(jqGridSettings); - }); - - -

      - - -

      - -
      -

      - - - : -
        -
      • - -
      • - - -
      • -
        - -
      • -
        - - -
      • -
        - - - -
      • -
        -
      - -
      - - - - - - - - - - -
      -
      - -
      -
      - -
      -
      - - - -

      -
      -
      - -
      -
        -
        -

        - - - - - - - - - - - -
        -
        - -
        - - -
        -
        - -
        - - -
        -
        -
        -
        -
        -
        - -
        -
        -
        \ No newline at end of file Index: lams_admin/web/organisation/cloneResult.jsp =================================================================== diff -u -r550e1b37b507779064955267ef47e9085f791357 -r1ba327f73cb27c822d8a4ef36c386dd5a1432aef --- lams_admin/web/organisation/cloneResult.jsp (.../cloneResult.jsp) (revision 550e1b37b507779064955267ef47e9085f791357) +++ lams_admin/web/organisation/cloneResult.jsp (.../cloneResult.jsp) (revision 1ba327f73cb27c822d8a4ef36c386dd5a1432aef) @@ -5,8 +5,7 @@ - - + ${title} @@ -17,80 +16,40 @@ - - - ${title}: - - - - - - - -

        : - <%= OrganisationType.CLASS_TYPE %> - - " class="btn btn-default"> - - : - - " class="btn btn-default"> - - -

        -

        - - - - - - - + + + +

        : + <%= OrganisationType.CLASS_TYPE %> + + " class="btn btn-default"> + + : - -

        - -

        - - " - onclick="document.location='orgmanage.do?org=';" > -
        -
        - - -

        : - <%= OrganisationType.CLASS_TYPE %> - - " class="btn btn-default"> - - : - - " class="btn btn-default"> - - -

        + " class="btn btn-default"> + + +

        -

        +

        - - - - - - - + + + + + + + -

        - -

        +

        + +

        - " - onclick="document.location='orgmanage.do?org=';" > -
        -
        -
        - - + " + onclick="document.location='orgmanage.do?org=';" > + + +
        Index: lams_admin/web/organisation/cloneStart.jsp =================================================================== diff -u -rce9875cacd54d5d9b3c6a8425c19164e77fe6c49 -r1ba327f73cb27c822d8a4ef36c386dd5a1432aef --- lams_admin/web/organisation/cloneStart.jsp (.../cloneStart.jsp) (revision ce9875cacd54d5d9b3c6a8425c19164e77fe6c49) +++ lams_admin/web/organisation/cloneStart.jsp (.../cloneStart.jsp) (revision 1ba327f73cb27c822d8a4ef36c386dd5a1432aef) @@ -5,7 +5,7 @@ - + ${title} @@ -133,16 +133,9 @@ - - - ${title}: - - - - - - - + + +

        : <%= OrganisationType.CLASS_TYPE %> @@ -248,119 +241,7 @@ - - - - - -

        : - <%= OrganisationType.CLASS_TYPE %> - - " class="btn btn-default"> - - : - - " class="btn btn-default"> - - -

        -

        - - - - - - - - - -
        -
        - - - -
        -
        -
        - : - -
        -
        - : - -
        -
        - " onclick="javascript:loadGroupAttributes(chosenGroup());"> -
        -
        -
        - -
        " style="display:none;"> - -
        - -
        " style="display:none;"> - -
        - - -
        - "> - - - - - - -
        -
        - -
        - - +
        Index: lams_admin/web/organisation/courseAdminEdit.jsp =================================================================== diff -u -rce9875cacd54d5d9b3c6a8425c19164e77fe6c49 -r1ba327f73cb27c822d8a4ef36c386dd5a1432aef --- lams_admin/web/organisation/courseAdminEdit.jsp (.../courseAdminEdit.jsp) (revision ce9875cacd54d5d9b3c6a8425c19164e77fe6c49) +++ lams_admin/web/organisation/courseAdminEdit.jsp (.../courseAdminEdit.jsp) (revision 1ba327f73cb27c822d8a4ef36c386dd5a1432aef) @@ -4,8 +4,7 @@ - - + ${title} @@ -16,35 +15,28 @@ - - - ${title}: - + + - - - - - - + - +

        : - " class="btn btn-default"> - + " class="btn btn-default"> +

        - +

        @@ -73,7 +65,7 @@ - + : @@ -89,9 +81,9 @@   - - - . + + + . @@ -100,103 +92,14 @@
        - + " onclick="bCancel=true;" class="btn btn-default"> " /> " />
        -
        -
        - -
        - - - - - - - - - - - - - -

        - : - " class="btn btn-default"> - - -

        - -

        - -

        - -
        - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        : *
        :
        :
        : - - - - - - - -
        : - - - - - -
         
        - - . -
         
        - -
        - - " /> - " /> -
        - -
        -
        -
        -
        + +
        -
        Index: lams_admin/web/organisation/createOrEdit.jsp =================================================================== diff -u -rce9875cacd54d5d9b3c6a8425c19164e77fe6c49 -r1ba327f73cb27c822d8a4ef36c386dd5a1432aef --- lams_admin/web/organisation/createOrEdit.jsp (.../createOrEdit.jsp) (revision ce9875cacd54d5d9b3c6a8425c19164e77fe6c49) +++ lams_admin/web/organisation/createOrEdit.jsp (.../createOrEdit.jsp) (revision 1ba327f73cb27c822d8a4ef36c386dd5a1432aef) @@ -4,8 +4,7 @@ - - + ${title} @@ -39,195 +38,48 @@ - - - ${title}: - - - - - - - - + + +

        - - : " class="btn btn-default"> + + : " class="btn btn-default"> - - : " class="btn btn-default"> + + : " class="btn btn-default">

        - -    + +    - < - + < + - +

        -
        - -