diff --git a/properties.schema b/properties.schema index 7c28514..795851a 100644 --- a/properties.schema +++ b/properties.schema @@ -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":{ @@ -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", @@ -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, @@ -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, @@ -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", @@ -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", @@ -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 } } }, @@ -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", @@ -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 } } } @@ -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", @@ -219,7 +238,8 @@ "title": "", "inputType": "Text", "validators": [], - "help": "Aria label for the submit button" + "help": "Aria label for the submit button", + "translatable": true } } }, @@ -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", @@ -243,7 +264,8 @@ "title": "", "inputType": "Text", "validators": [], - "help": "Aria label for the reset button" + "help": "Aria label for the reset button", + "translatable": true } } }, @@ -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", @@ -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 } } }, @@ -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", @@ -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 } } }, @@ -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", @@ -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 } } }, @@ -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", @@ -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 } } }