projects
/
qomet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
'update'
[qomet.git]
/
public
/
javascripts
/
utils
/
validation.js
diff --git
a/public/javascripts/utils/validation.js
b/public/javascripts/utils/validation.js
index
aa39ebe
..
f604f77
100644
(file)
--- a/
public/javascripts/utils/validation.js
+++ b/
public/javascripts/utils/validation.js
@@
-2,7
+2,7
@@
try { var _ = require("underscore"); } catch (err) {} //for server
let Validator = { };
let Validator = { };
-// Cell in
assessment
.questions array
+// Cell in
evaluation
.questions array
Validator.Question = {
"index": "section", //"2.2.1", "3.2", "1" ...etc
"wording": "string",
Validator.Question = {
"index": "section", //"2.2.1", "3.2", "1" ...etc
"wording": "string",
@@
-32,7
+32,7
@@
Validator.Paper = {
"password": "password",
};
"password": "password",
};
-Validator.
Assessment
= {
+Validator.
Evaluation
= {
"_id": "bson",
"cid": "bson",
"name": "code",
"_id": "bson",
"cid": "bson",
"name": "code",
@@
-42,7
+42,6
@@
Validator.Assessment = {
"display": "alphanumeric", //"one" or "all"
"time": "integer",
"introduction": "string",
"display": "alphanumeric", //"one" or "all"
"time": "integer",
"introduction": "string",
- "conclusion": "string",
"coefficient": "number",
"questions": Validator.Question,
"papers": Validator.Paper,
"coefficient": "number",
"questions": Validator.Question,
"papers": Validator.Paper,
@@
-51,7
+50,6
@@
Validator.Assessment = {
Validator.User = {
"_id": "bson",
"email": "email",
Validator.User = {
"_id": "bson",
"email": "email",
- "forename": "name",
"name": "name",
"initials": "unchecked", //not a user input
"loginToken": "unchecked",
"name": "name",
"initials": "unchecked", //not a user input
"loginToken": "unchecked",
@@
-61,7
+59,6
@@
Validator.User = {
Validator.Student = {
"number": "code",
Validator.Student = {
"number": "code",
- "forename": "name",
"name": "name",
"group": "positiveInteger",
};
"name": "name",
"group": "positiveInteger",
};