Allow giving test result even on retroactive arrivals (Resolves #25)

This commit is contained in:
2021-05-27 16:26:25 +02:00
parent 73241c4116
commit cb6568ea46
2 changed files with 13 additions and 3 deletions

View File

@ -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>