Skip to content

Commit

Permalink
Merge pull request #138 from adaptlearning/issue/1380
Browse files Browse the repository at this point in the history
schema amends: change boolean selects to checkboxes
  • Loading branch information
moloko authored Jul 3, 2017
2 parents 2d10ffd + 5c3668c commit 99579c7
Showing 1 changed file with 53 additions and 53 deletions.
106 changes: 53 additions & 53 deletions properties.schema
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"type":"object",
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema",
"id": "http://jsonschema.net",
"$ref": "http://localhost/plugins/content/component/model.schema",
Expand All @@ -21,7 +21,7 @@
"translatable": true
}
},
"properties":{
"properties": {
"_supportedLayout": {
"type": "string",
"required": true,
Expand All @@ -39,21 +39,21 @@
"translatable": true
},
"_graphic": {
"type":"object",
"required":false,
"type": "object",
"required": false,
"title": "Main hotgraphic",
"properties":{
"properties": {
"src": {
"type":"string",
"required":false,
"type": "string",
"required": false,
"default": "",
"inputType": "Asset:image",
"validators": [],
"help": "This is the image that appears behind the pins"
},
"alt": {
"type":"string",
"required":false,
"type": "string",
"required": false,
"default": "",
"inputType": "Text",
"validators": [],
Expand All @@ -72,101 +72,101 @@
}
},
"mobileBody": {
"type":"string",
"required":false,
"type": "string",
"required": false,
"default": "",
"inputType": "TextArea",
"validators": [],
"help": "This body text is displayed on mobile devices when this component turns into a Narrative",
"translatable": true
},
"mobileInstruction": {
"type":"string",
"required":false,
"type": "string",
"required": false,
"default": "",
"inputType": "TextArea",
"validators": [],
"help": "This instruction text is displayed on mobile devices when this component turns into a Narrative",
"translatable": true
},
"_hidePagination": {
"type":"boolean",
"required":true,
"type": "boolean",
"required": true,
"default": false,
"title": "Hide pagination",
"inputType": {"type": "Boolean", "options": [false, true]},
"inputType": "Checkbox",
"validators": [],
"help": "If set to 'true', the progress indicator and previous and next links will not be shown on the popup toolbar"
"help": "If enabled, the progress indicator and previous and next links will not be shown on the popup toolbar"
},
"_canCycleThroughPagination": {
"type":"boolean",
"required":true,
"type": "boolean",
"required": true,
"default": false,
"title": "Cycle through item pagination",
"inputType": {"type": "Boolean", "options": [false, true]},
"inputType": "Checkbox",
"validators": [],
"help": "If set to 'true', the items in the open popup will be allowed to cycle through continiously"
"help": "If enabled, the items in the open popup will be allowed to cycle through continiously"
},
"_useGraphicsAsPins": {
"type":"boolean",
"required":true,
"type": "boolean",
"required": true,
"default": false,
"title": "Use graphics as pins",
"inputType": {"type": "Boolean", "options": [false, true]},
"inputType": "Checkbox",
"validators": [],
"help": "If set to 'true', the main graphic will be hidden and pins will be displayed as images which can be positioned using classes"
"help": "If enabled, the main graphic will be hidden and pins will be displayed as images which can be positioned using classes"
},
"_items": {
"type":"array",
"required":true,
"type": "array",
"required": true,
"title": "Hot Graphic Pins",
"items": {
"type":"object",
"required":true,
"properties":{
"type": "object",
"required": true,
"properties": {
"title": {
"type":"string",
"required":true,
"type": "string",
"required": true,
"default": "",
"inputType": "Text",
"validators": [],
"help": "Title displayed in the popup",
"translatable": true
},
"body": {
"type":"string",
"required":true,
"type": "string",
"required": true,
"default": "",
"inputType": "TextArea",
"validators": ["required"],
"help": "Body text displayed in the popup",
"translatable": true
},
"strapline": {
"type":"string",
"required":true,
"type": "string",
"required": true,
"default": "",
"inputType": "Text",
"validators": ["required"],
"help": "Strapline displayed on mobile version",
"translatable": true
},
"_graphic": {
"type":"object",
"required":true,
"type": "object",
"required": true,
"title": "Item Graphic",
"properties":{
"properties": {
"src": {
"type":"string",
"required":true,
"type": "string",
"required": true,
"default": "",
"inputType": "Asset:image",
"validators": ["required"],
"help": "Image displayed in the popup"
},
"alt": {
"type":"string",
"required":false,
"type": "string",
"required": false,
"default": "",
"inputType": "Text",
"validators": [],
Expand All @@ -183,16 +183,16 @@
"translatable": true
},
"title": {
"type":"string",
"required":true,
"type": "string",
"required": true,
"default": "",
"inputType": "Text",
"validators": [],
"help": "Title text for this image",
"translatable": true
},
"_classes": {
"type":"string",
"type": "string",
"required": false,
"default": "",
"title": "Classes",
Expand All @@ -203,7 +203,7 @@
}
},
"_classes": {
"type":"string",
"type": "string",
"required": false,
"default": "",
"title": "Classes",
Expand All @@ -212,18 +212,18 @@
"help": ""
},
"_left": {
"type":"number",
"required":true,
"default":0,
"type": "number",
"required": true,
"default": 0,
"title": "Pin Position - Left",
"inputType": "Number",
"validators": ["required", "number"],
"help": "Left position of pin"
},
"_top": {
"type":"number",
"required":true,
"default":0,
"type": "number",
"required": true,
"default": 0,
"title": "Pin Position - Top",
"inputType": "Number",
"validators": ["required", "number"],
Expand Down

0 comments on commit 99579c7

Please sign in to comment.