Index: lams_admin/web/orgPasswordChange.jsp
===================================================================
diff -u -r2fbf5cd0355af8ea46cf304ba448431486c79b77 -r1e56f3aea99f6dd9c95b548e73d4696a992c25d7
--- lams_admin/web/orgPasswordChange.jsp (.../orgPasswordChange.jsp) (revision 2fbf5cd0355af8ea46cf304ba448431486c79b77)
+++ lams_admin/web/orgPasswordChange.jsp (.../orgPasswordChange.jsp) (revision 1e56f3aea99f6dd9c95b548e73d4696a992c25d7)
@@ -1,8 +1,7 @@
<%@ include file="/taglibs.jsp"%>
-<%@ taglib uri="tags-lams" prefix="lams"%>
+
<%@ page import="org.lamsfoundation.lams.util.Configuration"%>
<%@ page import="org.lamsfoundation.lams.util.ConfigurationKeys"%>
-<%@ page import="org.apache.struts.action.ActionMessages"%>
<%=Configuration.get(ConfigurationKeys.PASSWORD_POLICY_MINIMUM_CHARACTERS)%>
<%=Configuration.get(ConfigurationKeys.PASSWORD_POLICY_UPPERCASE)%>
<%=Configuration.get(ConfigurationKeys.PASSWORD_POLICY_NUMERICS)%>
@@ -51,6 +50,11 @@
.ui-jqgrid-btable tr.success > td {
background-color: transparent !important;
}
+
+ #formValidationErrors {
+ display: none;
+ text-align: center;
+ }
@@ -120,18 +124,17 @@
// Setup form validation
$("#OrgPasswordChangeForm").validate({
- debug : true,
- errorClass : 'help-block',
- // validation rules
+ errorLabelContainer : '#formValidationErrors',
+ errorClass : 'errorMessage',
rules : {
- learnerPassword : {
+ learnerPass : {
required: false,
minlength : ,
maxlength : 25,
charactersAllowed : true,
pwcheck : true
},
- staffPassword: {
+ staffPass: {
required: false,
minlength : ,
maxlength : 25,
@@ -143,24 +146,26 @@
// Specify the validation error messages
messages : {
- learnerPassword : {
+ learnerPass : {
required : "",
- minlength : "",
- maxlength : "",
+ minlength : " ",
+ maxlength : " ",
charactersAllowed : " ` ~ ! @ # $ % ^ & * ( ) _ - + = { } [ ] \ | : ; \" ' < > , . ? /",
pwcheck : ""
},
- staffPassword: {
+ staffPass: {
required : "",
- minlength : "",
- maxlength : "",
+ minlength : " ",
+ maxlength : " ",
charactersAllowed : " ` ~ ! @ # $ % ^ & * ( ) _ - + = { } [ ] \ | : ; \" ' < > , . ? /",
pwcheck : ""
}
},
submitHandler : function(form) {
+ $('#excludedLearners').val(JSON.stringify(excludedLearners));
+ $('#excludedStaff').val(JSON.stringify(excludedStaff));
form.submit();
}
});
@@ -188,9 +193,9 @@
],
colModel : [
{
- 'name' : 'name',
- 'index' : 'firstName',
- 'title' : false
+ 'name' : 'name',
+ 'index' : 'firstName',
+ 'title' : false
},
{
'name' : 'login',
@@ -251,48 +256,45 @@
-