Skip to content

Commit

Permalink
Merge pull request #123 from adaptlearning/issue/1066
Browse files Browse the repository at this point in the history
Added 'translatable' to properties.schema
  • Loading branch information
moloko committed Jun 6, 2016
2 parents ea3db6e + 26d1961 commit bad3f54
Showing 1 changed file with 87 additions and 57 deletions.
144 changes: 87 additions & 57 deletions properties.schema
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"required": true,
"default": "This component is a multiple choice question. Once you have selected an option select the submit button below",
"inputType": "Text",
"validators": []
"validators": [],
"translatable": true
}
},
"properties":{
Expand All @@ -26,7 +27,48 @@
"default": "",
"inputType": "Text",
"validators": [],
"help": "This is the instruction text"
"help": "This is the instruction text",
"translatable": true
},
"_items": {
"type":"array",
"required":true,
"title": "Items",
"items": {
"type":"object",
"required":true,
"properties":{
"text": {
"type":"string",
"required":true,
"default": "",
"title": "Item Text",
"inputType": "Text",
"validators": ["required"],
"help": "This text will display as the item text",
"translatable": true
},
"_shouldBeSelected": {
"type":"boolean",
"required":true,
"default": true,
"title": "Should Be Selected",
"inputType": {"type": "Boolean", "options": [true, false]},
"validators": [],
"help": "Set this item to 'true' if this is one of the correct answers"
},
"feedback": {
"type":"string",
"required":false,
"default": "",
"title": "Option Specific Feedback",
"inputType": "Text",
"validators": [],
"help": "This text will be displayed as feedback if there is only one selectable item for this component",
"translatable": true
}
}
}
},
"_attempts": {
"type":"number",
Expand All @@ -46,6 +88,15 @@
"validators": [],
"help": "Select 'true' to allow the user to view the 'model answer' should they answer the question incorrectly"
},
"_canShowFeedback": {
"type":"boolean",
"required":true,
"default": true,
"title": "Display Feedback",
"inputType": {"type": "Boolean", "options": [true, false]},
"validators": [],
"help": "Select 'true' to allow the user to view feedback on their answer"
},
"_shouldDisplayAttempts": {
"type":"boolean",
"required":false,
Expand Down Expand Up @@ -91,44 +142,6 @@
"validators": ["number", "required"],
"help": "How many items are selectable"
},
"_items": {
"type":"array",
"required":true,
"title": "Items",
"items": {
"type":"object",
"required":true,
"properties":{
"text": {
"type":"string",
"required":true,
"default": "",
"title": "Item Text",
"inputType": "Text",
"validators": ["required"],
"help": "This text will display as the item text"
},
"_shouldBeSelected": {
"type":"boolean",
"required":true,
"default": true,
"title": "Should Be Selected",
"inputType": {"type": "Boolean", "options": [true, false]},
"validators": [],
"help": "Set this item to 'true' if this is one of the correct answers"
},
"feedback": {
"type":"string",
"required":false,
"default": "",
"title": "Option Specific Feedback",
"inputType": "Text",
"validators": [],
"help": "This text will be displayed as feedback if there is only one selectable item for this component"
}
}
}
},
"_feedback": {
"type":"object",
"required":true,
Expand All @@ -141,7 +154,8 @@
"title": "Correct",
"inputType": "TextArea",
"validators": ["required"],
"help": "Correct feedback for this question"
"help": "Correct feedback for this question",
"translatable": true
},
"_incorrect": {
"type":"object",
Expand All @@ -155,7 +169,8 @@
"title": "Incorrect Final",
"inputType": "TextArea",
"validators": ["required"],
"help": "Incorrect feedback for the final attempt"
"help": "Incorrect feedback for the final attempt",
"translatable": true
},
"notFinal": {
"type":"string",
Expand All @@ -164,7 +179,8 @@
"title": "Incorrect Not Final",
"inputType": "TextArea",
"validators": [],
"help": "Incorrect feedback for any attempt apart from the last attempt"
"help": "Incorrect feedback for any attempt apart from the last attempt",
"translatable": true
}
}
},
Expand All @@ -179,7 +195,8 @@
"title": "Partly Correct Final",
"inputType": "TextArea",
"validators": [],
"help": "Partly correct feedback for the final attempt"
"help": "Partly correct feedback for the final attempt",
"translatable": true
},
"notFinal": {
"type":"string",
Expand All @@ -188,7 +205,8 @@
"title": "Partly Correct Not Final",
"inputType": "TextArea",
"validators": [],
"help": "Partly correct feedback for any attempt apart from the last attempt"
"help": "Partly correct feedback for any attempt apart from the last attempt",
"translatable": true
}
}
}
Expand All @@ -210,7 +228,8 @@
"title": "",
"inputType": "QuestionButton",
"validators": [],
"help": "Button label text for the submit button"
"help": "Button label text for the submit button",
"translatable": true
},
"ariaLabel": {
"type":"string",
Expand All @@ -219,7 +238,8 @@
"title": "",
"inputType": "Text",
"validators": [],
"help": "Aria label for the submit button"
"help": "Aria label for the submit button",
"translatable": true
}
}
},
Expand All @@ -234,7 +254,8 @@
"title": "",
"inputType": "QuestionButton",
"validators": [],
"help": "Button label text for the reset button"
"help": "Button label text for the reset button",
"translatable": true
},
"ariaLabel": {
"type":"string",
Expand All @@ -243,7 +264,8 @@
"title": "",
"inputType": "Text",
"validators": [],
"help": "Aria label for the reset button"
"help": "Aria label for the reset button",
"translatable": true
}
}
},
Expand All @@ -258,7 +280,8 @@
"title": "",
"inputType": "QuestionButton",
"validators": [],
"help": "Button label text to show the model answer"
"help": "Button label text to show the model answer",
"translatable": true
},
"ariaLabel": {
"type":"string",
Expand All @@ -267,7 +290,8 @@
"title": "",
"inputType": "Text",
"validators": [],
"help": "Aria label for the show model answer button"
"help": "Aria label for the show model answer button",
"translatable": true
}
}
},
Expand All @@ -282,7 +306,8 @@
"title": "",
"inputType": "QuestionButton",
"validators": [],
"help": "Button label text to hide the model answer"
"help": "Button label text to hide the model answer",
"translatable": true
},
"ariaLabel": {
"type":"string",
Expand All @@ -291,7 +316,8 @@
"title": "",
"inputType": "Text",
"validators": [],
"help": "Aria label for the hide model answer button"
"help": "Aria label for the hide model answer button",
"translatable": true
}
}
},
Expand All @@ -306,7 +332,8 @@
"title": "",
"inputType": "QuestionButton",
"validators": [],
"help": "Button label text to show feedback"
"help": "Button label text to show feedback",
"translatable": true
},
"ariaLabel": {
"type":"string",
Expand All @@ -315,7 +342,8 @@
"title": "",
"inputType": "Text",
"validators": [],
"help": "Aria label for the show feedback button"
"help": "Aria label for the show feedback button",
"translatable": true
}
}
},
Expand All @@ -326,7 +354,8 @@
"title": "Attempts Remaining Text",
"inputType": "Text",
"validators": [],
"help": "Shown when there are multiple attempts left"
"help": "Shown when there are multiple attempts left",
"translatable": true
},
"remainingAttemptText": {
"type":"string",
Expand All @@ -335,7 +364,8 @@
"title": "Final Attempt Text",
"inputType": "Text",
"validators": [],
"help": "Shown when there is one attempt left"
"help": "Shown when there is one attempt left",
"translatable": true
}
}
}
Expand Down

0 comments on commit bad3f54

Please sign in to comment.