Преглед изворни кода

Rename age verification JSON template

Alan Lam пре 8 година
родитељ
комит
35c9f73619
2 измењених фајлова са 18 додато и 198 уклоњено
  1. 18 9
      json/age_verification.json
  2. 0 189
      json/default_template.json

+ 18 - 9
json/bacta.json → json/age_verification.json

@@ -9,21 +9,24 @@
 			"name": "shop_left",
 			"label": "Shop Name (Left)",
 			"maxLength": 32,
-			"required": true
+			"required": true,
+			"customerExport": false
 		},
 		{
 			"type": "text",
 			"name": "shop_right",
 			"label": "Shop Name (Right)",
 			"maxLength": 32,
-			"required": true
+			"required": true,
+			"customerExport": false
 		},
 		{
 			"type": "text",
 			"name": "attire",
 			"label": "Tester Clothing",
 			"maxLength": 50,
-			"required": true
+			"required": true,
+			"customerExport": false
 		},
 		{
 			"type": "file",
@@ -67,28 +70,32 @@
 			"type": "text",
 			"name": "challenger_name",
 			"label": "Name",
-			"maxLength": 32
+			"maxLength": 32,
+			"customerExport": false
 		},
 		{
 			"type": "textarea",
 			"name": "challenger_description",
 			"label": "Description",
 			"maxLength": 250,
-			"helpText": "Describe the person who challenged you and any comments you feel that are relevant. For example: \"She was about 150cm tall and had long red hair and glasses. She approached me and asked me if I wanted some water and then asked if I had any ID.\""
+			"helpText": "Describe the person who challenged you and any comments you feel that are relevant. For example: \"She was about 150cm tall and had long red hair and glasses. She approached me and asked me if I wanted some water and then asked if I had any ID.\"",
+			"customerExport": false
 		},
 		{
 			"type": "dropdown",
 			"name": "challenger_gender",
 			"label": "Gender",
 			"values": ["", "M", "F"],
-			"displayStrings": ["No challenge/Don't know", "M", "F"]
+			"displayStrings": ["No challenge/Don't know", "M", "F"],
+			"customerExport": false
 		},
 		{
 			"type": "dropdown",
 			"name": "challenger_eye_contact",
 			"label": "Eye Contact",
 			"values": ["", "0", "1"],
-			"displayStrings": ["No challenge/Don't know", "No", "Yes"]
+			"displayStrings": ["No challenge/Don't know", "No", "Yes"],
+			"customerExport": false
 		},
 
 		{
@@ -99,14 +106,16 @@
 			"type": "text",
 			"name": "play_machine",
 			"label": "Machine Played",
-			"maxLength": 20
+			"maxLength": 20,
+			"customerExport": false
 		},
 		{
 			"type": "dropdown",
 			"name": "play_jackpot",
 			"label": "Jackpot Value",
 			"values": ["", 5, 10, 15, 20, 25, 35, 50, 100, 500],
-			"displayStrings": ["Did not play/Don't know", "£5", "£10", "£15", "£20", "£25", "£35", "£50", "£100", "£500"]
+			"displayStrings": ["Did not play/Don't know", "£5", "£10", "£15", "£20", "£25", "£35", "£50", "£100", "£500"],
+			"customerExport": false
 		},
 		{
 			"type": "dropdown",

+ 0 - 189
json/default_template.json

@@ -1,189 +0,0 @@
-{
-	"beforeTest": [
-		{
-			"type": "header",
-			"content": "Before the Test"
-		},
-		{
-			"type": "text",
-			"name": "shop_left",
-			"label": "Shop Name (Left)",
-			"maxLength": 32,
-			"required": true
-		},
-		{
-			"type": "text",
-			"name": "shop_right",
-			"label": "Shop Name (Right)",
-			"maxLength": 32,
-			"required": true
-		},
-		{
-			"type": "text",
-			"name": "attire",
-			"label": "Tester Clothing",
-			"maxLength": 50,
-			"required": true
-		},
-		{
-			"type": "file",
-			"label": "Selfie",
-			"name": "selfie",
-			"required": true
-		},
-		{
-			"type": "file",
-			"label": "Location Photo",
-			"name": "location_photo",
-			"required": true
-		}
-	],
-	"duringTest": [
-		{
-			"type": "header",
-			"content": "Challenge Details"
-		},
-		{
-			"type": "dropdown",
-			"name": "challenge_stage",
-			"label": "Stage",
-			"values": ["", 1, 2, 3, 4, 5],
-			"displayStrings": ["Select stage", "Challenge on entry", "Challenge during browsing", "Challenge during play", "Challenge on exit", "No challenge"],
-			"required": true
-		},
-		{
-			"type": "textarea",
-			"name": "challenge_description",
-			"label": "Description",
-			"maxLength": 250,
-			"helpText": "Describe how the challenge took place. For example: \"While entering I was approached politely and asked for ID.\""
-		},
-
-		{
-			"type": "header",
-			"content": "Challenger Details (if challenged)"
-		},
-		{
-			"type": "text",
-			"name": "challenger_name",
-			"label": "Name",
-			"maxLength": 32
-		},
-		{
-			"type": "textarea",
-			"name": "challenger_description",
-			"label": "Description",
-			"maxLength": 250,
-			"helpText": "Describe the person who challenged you and any comments you feel that are relevant. For example: \"She was about 150cm tall and had long red hair and glasses. She approached me and asked me if I wanted some water and then asked if I had any ID.\""
-		},
-		{
-			"type": "dropdown",
-			"name": "challenger_gender",
-			"label": "Gender",
-			"values": ["", "M", "F"],
-			"displayStrings": ["No challenge/Don't know", "M", "F"]
-		},
-		{
-			"type": "dropdown",
-			"name": "challenger_eye_contact",
-			"label": "Eye Contact",
-			"values": ["", "0", "1"],
-			"displayStrings": ["No challenge/Don't know", "No", "Yes"]
-		},
-
-		{
-			"type": "header",
-			"content": "Play Details"
-		},
-		{
-			"type": "text",
-			"name": "play_machine",
-			"label": "Machine Played",
-			"maxLength": 32
-		},
-		{
-			"type": "dropdown",
-			"name": "play_jackpot",
-			"label": "Jackpot Value",
-			"values": ["", 5, 10, 15, 20, 25, 35, 50, 100, 500],
-			"displayStrings": ["Did not play/Don't know", "£5", "£10", "£15", "£20", "£25", "£35", "£50", "£100", "£500"]
-		},
-		{
-			"type": "dropdown",
-			"name": "play_machine_stake",
-			"label": "Stake Played",
-			"values": ["", 0.1, 0.2, 0.25, 0.3, 0.5, 1, 2],
-			"displayStrings": ["Did not play/Don't know", "10p", "20p", "25p", "30p", "50p", "£1", "£2"],
-			"helpText": "This is how much the machine charges you per spin."
-		},
-		{
-			"type": "dropdown",
-			"name": "play_minutes",
-			"label": "Time Played (Minutes)",
-			"values": ["", "1", "2", "3", "4", "5"],
-			"displayStrings": ["Did not play/Don't know", "1 minute", "2 minutes", "3 minutes", "4 minutes", "5 minutes or more"]
-		},
-		{
-			"type": "number",
-			"name": "play_spent",
-			"label": "Total Spent",
-			"maxLength": 10,
-			"min": 0,
-			"max": 20,
-			"step": 0.01,
-			"prependText": "£",
-			"helpText": "For example: Enter 1.50 if you have spent £1.50."
-		},
-
-		{
-			"type": "header",
-			"content": "Signage Details"
-		},
-		{
-			"type": "dropdown",
-			"name": "citizen_card_brochure_displayed",
-			"label": "Citizen Card Brochure Displayed",
-			"values": ["", "0", "1"],
-			"displayStrings": ["Don't know", "No", "Yes"]
-		},
-		{
-			"type": "dropdown",
-			"name": "think_21_25",
-			"label": "Think 21 or Think 25",
-			"values": ["", "Think 21", "Think 25"],
-			"displayStrings": ["Don't know", "Think 21", "Think 25"]
-		},
-		{
-			"type": "dropdown",
-			"name": "think_21_badge",
-			"label": "Think 21/25 Badge Worn by Staff",
-			"values": ["", "0", "1"],
-			"displayStrings": ["Don't know", "No", "Yes"]
-		},
-		{
-			"type": "dropdown",
-			"name": "think_21_poster",
-			"label": "Think 21/25 Poster Displayed",
-			"values": ["", "0", "1"],
-			"displayStrings": ["Don't know", "No", "Yes"]
-		},
-		{
-			"type": "textarea",
-			"name": "think_21_poster_notes",
-			"label": "Think 21/25 Poster Details",
-			"maxLength": 200,
-			"helpText": "Describe the location of the poster that was displayed."
-		},
-
-		{
-			"type": "header",
-			"content": "Notes"
-		},
-		{
-			"type": "textarea",
-			"name": "additional_notes",
-			"label": "Additional Notes",
-			"maxLength": 200
-		}
-	]
-}