Allow giving test result even on retroactive arrivals (Resolves #25)
This commit is contained in:
		@ -12,6 +12,7 @@
 | 
			
		||||
				'arrival': 'I have read and will adhere to the <a href="/guidelines" target="_blank">protection guidelines</a>',
 | 
			
		||||
				'departure': 'I have cleaned my workspace'
 | 
			
		||||
			}
 | 
			
		||||
			var testCheckBox = '<label class="checkbox"><input type="checkbox" name="tested" id="tested"><span>I have been tested negative for COVID in the last 24 hours</span></label>'
 | 
			
		||||
			function getParams() {
 | 
			
		||||
				var h = document.location.href
 | 
			
		||||
				var qparam = h.split('?')[1] || null
 | 
			
		||||
@ -66,7 +67,7 @@
 | 
			
		||||
			</label>
 | 
			
		||||
			<script>
 | 
			
		||||
				if (qp && qp.action == 'arrival')
 | 
			
		||||
					document.write('<label class="checkbox"><input type="checkbox" name="tested" id="tested"><span>I have been tested negative for COVID in the last 24 hours</span></label>')
 | 
			
		||||
					document.write(testCheckBox)
 | 
			
		||||
			</script>
 | 
			
		||||
			<input type="submit">
 | 
			
		||||
		</form>
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user