Skip to content

Commit

Permalink
Merge pull request #47 from adaptlearning/schema-updates-backbone-forms
Browse files Browse the repository at this point in the history
Updated schemas to backbone forms
  • Loading branch information
darylhedley committed Nov 14, 2014
2 parents 29656c7 + 6ea058b commit b877ef2
Showing 1 changed file with 30 additions and 11 deletions.
41 changes: 30 additions & 11 deletions properties.schema
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@
"_isEnabled": {
"type":"boolean",
"required":true,
"title":"Enabled"
"title":"Is Enabled",
"inputType": {"type": "Boolean", "options": [true, false]},
"validators": [],
"help": "If set to 'true', this course will be tracked by SCORM"
},
"_tracking": {
"type":"object",
Expand All @@ -28,17 +31,26 @@
"_requireAssessmentPassed": {
"type":"boolean",
"required":false,
"title":"Assessment pass required"
"title":"Assessment pass required",
"inputType": {"type": "Boolean", "options": [true, false]},
"validators": [],
"help": ""
},
"_requireCourseCompleted": {
"type":"boolean",
"required":false,
"title":"Course completion required"
"title":"Course completion required",
"inputType": {"type": "Boolean", "options": [true, false]},
"validators": [],
"help": ""
},
"_shouldSubmitScore": {
"type":"boolean",
"required":false,
"title":"Submit score"
"title":"Submit score",
"inputType": {"type": "Boolean", "options": [true, false]},
"validators": [],
"help": ""
}
}
},
Expand All @@ -47,22 +59,29 @@
"required":false,
"title": "Reporting",
"properties":{
"_comment": {
"type":"string",
"required":false,
"title": "Comment"
},
"_onTrackingCriteriaMet": {
"type":"string",
"required":false,
"title":"Tracking success status",
"enum": ["completed", "passed", "failed", "incomplete"]
"enum": ["completed", "passed", "failed", "incomplete"],
"inputType": {
"type": "Select",
"options": ["completed", "passed", "failed", "incomplete"]
},
"validators": [],
"help": ""
},
"_onAssessmentFailure": {
"type":"string",
"required":false,
"title":"Assessment failure status",
"enum": ["completed", "passed", "failed", "incomplete"]
"enum": ["completed", "passed", "failed", "incomplete"],
"inputType": {
"type": "Select",
"options": ["completed", "passed", "failed", "incomplete"]
},
"validators": [],
"help": ""
}
}
}
Expand Down

0 comments on commit b877ef2

Please sign in to comment.