Explorar el Código

Updated default templates.

Alan Lam hace 8 años
padre
commit
5726182c81
Se han modificado 2 ficheros con 120 adiciones y 27 borrados
  1. 18 17
      json/bacta.json
  2. 102 10
      json/default_template.json

+ 18 - 17
json/bacta.json

@@ -8,21 +8,21 @@
 			"type": "text",
 			"type": "text",
 			"name": "shop_left",
 			"name": "shop_left",
 			"label": "Shop Name (Left)",
 			"label": "Shop Name (Left)",
-			"maxLength": 50,
+			"maxLength": 32,
 			"required": true
 			"required": true
 		},
 		},
 		{
 		{
 			"type": "text",
 			"type": "text",
 			"name": "shop_right",
 			"name": "shop_right",
 			"label": "Shop Name (Right)",
 			"label": "Shop Name (Right)",
-			"maxLength": 50,
+			"maxLength": 32,
 			"required": true
 			"required": true
 		},
 		},
 		{
 		{
 			"type": "text",
 			"type": "text",
 			"name": "attire",
 			"name": "attire",
-			"label": "Attire",
-			"maxLength": 100,
+			"label": "Tester Clothing",
+			"maxLength": 50,
 			"required": true
 			"required": true
 		},
 		},
 		{
 		{
@@ -55,7 +55,7 @@
 			"type": "textarea",
 			"type": "textarea",
 			"name": "challenge_description",
 			"name": "challenge_description",
 			"label": "Description",
 			"label": "Description",
-			"maxLength": 200,
+			"maxLength": 250,
 			"helpText": "Describe how the challenge took place. For example: \"While entering I was approached politely and asked for ID.\""
 			"helpText": "Describe how the challenge took place. For example: \"While entering I was approached politely and asked for ID.\""
 		},
 		},
 
 
@@ -67,13 +67,13 @@
 			"type": "text",
 			"type": "text",
 			"name": "challenger_name",
 			"name": "challenger_name",
 			"label": "Name",
 			"label": "Name",
-			"maxLength": 50
+			"maxLength": 32
 		},
 		},
 		{
 		{
 			"type": "textarea",
 			"type": "textarea",
 			"name": "challenger_description",
 			"name": "challenger_description",
 			"label": "Description",
 			"label": "Description",
-			"maxLength": 200,
+			"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.\""
 		},
 		},
 		{
 		{
@@ -99,23 +99,21 @@
 			"type": "text",
 			"type": "text",
 			"name": "play_machine",
 			"name": "play_machine",
 			"label": "Machine Played",
 			"label": "Machine Played",
-			"maxLength": 50
+			"maxLength": 32
 		},
 		},
 		{
 		{
-			"type": "number",
+			"type": "dropdown",
 			"name": "play_jackpot",
 			"name": "play_jackpot",
 			"label": "Jackpot Value",
 			"label": "Jackpot Value",
-			"maxLength": 10,
-			"min": 1,
-			"max": 20000
+			"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": "number",
+			"type": "dropdown",
 			"name": "play_machine_stake",
 			"name": "play_machine_stake",
 			"label": "Stake Played",
 			"label": "Stake Played",
-			"maxLength": 10,
-			"min": 0,
-			"step": 0.01,
+			"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."
 			"helpText": "This is how much the machine charges you per spin."
 		},
 		},
 		{
 		{
@@ -131,7 +129,10 @@
 			"label": "Total Spent",
 			"label": "Total Spent",
 			"maxLength": 10,
 			"maxLength": 10,
 			"min": 0,
 			"min": 0,
-			"step": 0.01
+			"max": 20,
+			"step": 0.01,
+			"prependText": "£",
+			"helpText": "For example: Enter 1.50 if you have spent £1.50."
 		},
 		},
 
 
 		{
 		{

+ 102 - 10
json/default_template.json

@@ -8,21 +8,21 @@
 			"type": "text",
 			"type": "text",
 			"name": "shop_left",
 			"name": "shop_left",
 			"label": "Shop Name (Left)",
 			"label": "Shop Name (Left)",
-			"maxLength": 50,
+			"maxLength": 32,
 			"required": true
 			"required": true
 		},
 		},
 		{
 		{
 			"type": "text",
 			"type": "text",
 			"name": "shop_right",
 			"name": "shop_right",
 			"label": "Shop Name (Right)",
 			"label": "Shop Name (Right)",
-			"maxLength": 50,
+			"maxLength": 32,
 			"required": true
 			"required": true
 		},
 		},
 		{
 		{
 			"type": "text",
 			"type": "text",
 			"name": "attire",
 			"name": "attire",
-			"label": "Attire",
-			"maxLength": 100,
+			"label": "Tester Clothing",
+			"maxLength": 50,
 			"required": true
 			"required": true
 		},
 		},
 		{
 		{
@@ -30,12 +30,18 @@
 			"label": "Selfie",
 			"label": "Selfie",
 			"name": "selfie",
 			"name": "selfie",
 			"required": true
 			"required": true
+		},
+		{
+			"type": "file",
+			"label": "Location Photo",
+			"name": "location_photo",
+			"required": true
 		}
 		}
 	],
 	],
 	"duringTest": [
 	"duringTest": [
 		{
 		{
 			"type": "header",
 			"type": "header",
-			"content": "Challenge"
+			"content": "Challenge Details"
 		},
 		},
 		{
 		{
 			"type": "dropdown",
 			"type": "dropdown",
@@ -49,24 +55,26 @@
 			"type": "textarea",
 			"type": "textarea",
 			"name": "challenge_description",
 			"name": "challenge_description",
 			"label": "Description",
 			"label": "Description",
-			"maxLength": 200
+			"maxLength": 250,
+			"helpText": "Describe how the challenge took place. For example: \"While entering I was approached politely and asked for ID.\""
 		},
 		},
 
 
 		{
 		{
 			"type": "header",
 			"type": "header",
-			"content": "Challenger (if challenged)"
+			"content": "Challenger Details (if challenged)"
 		},
 		},
 		{
 		{
 			"type": "text",
 			"type": "text",
 			"name": "challenger_name",
 			"name": "challenger_name",
 			"label": "Name",
 			"label": "Name",
-			"maxLength": 50
+			"maxLength": 32
 		},
 		},
 		{
 		{
 			"type": "textarea",
 			"type": "textarea",
 			"name": "challenger_description",
 			"name": "challenger_description",
 			"label": "Description",
 			"label": "Description",
-			"maxLength": 200
+			"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",
 			"type": "dropdown",
@@ -85,7 +93,91 @@
 
 
 		{
 		{
 			"type": "header",
 			"type": "header",
-			"content": "Additional Notes"
+			"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",
 			"type": "textarea",