ソースを参照

Add "Door Sensor Alert" question to AV templates

Alan Lam 7 年 前
親
コミット
2f4ecd5f8c

+ 11 - 0
engine/form.php

@@ -183,6 +183,11 @@ class Form {
 			case "file":
 				self::renderFileField($options);
 				break;
+
+            case "hr":
+                self::renderHorizontalBar($options);
+                break;
+
 		}
 
 	}
@@ -354,6 +359,12 @@ class Form {
 		<?php
 	}
 
+	private static function renderHorizontalBar(object $options) {
+	    ?>
+        <hr />
+        <?php
+    }
+
 }
 
 ?>

+ 2 - 0
engine/template.php

@@ -243,6 +243,8 @@ class Template extends Model {
 				}
 				?>
 
+                <hr />
+
 				<h3>Entry/Exit Times</h3>
 
 				<p>Please confirm your entry and exit times below. Please try to be as accurate as possible.</p>

+ 35 - 0
json/age_verification.json

@@ -48,6 +48,25 @@
 		}
 	],
 	"duringTest": [
+
+		{
+			"type": "header",
+			"content": "Venue Sensor"
+		},
+		{
+			"type": "dropdown",
+			"name": "door_sensor_alert",
+			"label": "Door Sensor Alert",
+			"values": ["", "0", "1"],
+			"displayStrings": ["Don't know", "No", "Yes"],
+			"helpText": "Was there a sound or visual alert when you entered the venue?",
+			"customerExport": false
+		},
+
+		{
+			"type": "hr"
+		},
+
 		{
 			"type": "header",
 			"content": "Challenge Details"
@@ -68,6 +87,10 @@
 			"helpText": "Describe how the challenge took place. For example: \"While entering I was approached politely and asked for ID.\""
 		},
 
+		{
+			"type": "hr"
+		},
+
 		{
 			"type": "header",
 			"content": "Challenger Details (if challenged)"
@@ -104,6 +127,10 @@
 			"customerExport": false
 		},
 
+		{
+			"type": "hr"
+		},
+
 		{
 			"type": "header",
 			"content": "Play Details"
@@ -150,6 +177,10 @@
 			"helpText": "For example: Enter 1.50 if you have spent £1.50."
 		},
 
+		{
+			"type": "hr"
+		},
+
 		{
 			"type": "header",
 			"content": "Signage Details"
@@ -190,6 +221,10 @@
 			"helpText": "Describe the location of the poster that was displayed."
 		},
 
+		{
+			"type": "hr"
+		},
+
 		{
 			"type": "header",
 			"content": "Notes"

+ 37 - 0
json/age_verification_mitchells_and_butlers.json

@@ -49,6 +49,24 @@
 		}
 	],
 	"duringTest": [
+		{
+			"type": "header",
+			"content": "Venue Sensor"
+		},
+		{
+			"type": "dropdown",
+			"name": "door_sensor_alert",
+			"label": "Door Sensor Alert",
+			"values": ["", "0", "1"],
+			"displayStrings": ["Don't know", "No", "Yes"],
+			"helpText": "Was there a sound or visual alert when you entered the venue?",
+			"customerExport": false
+		},
+
+		{
+			"type": "hr"
+		},
+
 		{
 			"type": "header",
 			"content": "Challenge Details"
@@ -69,6 +87,10 @@
 			"helpText": "Describe how the challenge took place. For example: \"While entering I was approached politely and asked for ID.\""
 		},
 
+		{
+			"type": "hr"
+		},
+
 		{
 			"type": "header",
 			"content": "Challenger Details (if challenged)"
@@ -105,6 +127,10 @@
 			"customerExport": false
 		},
 
+		{
+			"type": "hr"
+		},
+
 		{
 			"type": "header",
 			"content": "Bar Details"
@@ -142,6 +168,9 @@
 			"maxLength": 20
 		},
 
+		{
+			"type": "hr"
+		},
 
 		{
 			"type": "header",
@@ -205,6 +234,10 @@
 			"helpText": "For example: Enter 1.50 if you have spent £1.50."
 		},
 
+		{
+			"type": "hr"
+		},
+
 		{
 			"type": "header",
 			"content": "Signage Details"
@@ -245,6 +278,10 @@
 			"helpText": "Describe the location of the poster that was displayed."
 		},
 
+		{
+			"type": "hr"
+		},
+
 		{
 			"type": "header",
 			"content": "Notes"