aboutsummaryrefslogtreecommitdiffstats
path: root/templates/web/base/errors/generic.html
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2016-12-01 18:25:24 +0000
committerMatthew Somerville <matthew-github@dracos.co.uk>2016-12-16 10:21:55 +0000
commit2abd85a6d9151f95c82656df9e6b8220e381ca03 (patch)
tree5fa4145bdad659cdc70e86f3604f6c37544f8249 /templates/web/base/errors/generic.html
parent34f942d7881451e164431a3231774568421a00f5 (diff)
Add offline storing of inspect forms.
This allows the inspect form to be submitted when offline, with the data saved in localStorage, the number of saved forms shown in the banner, and the forms to be uploaded when back online. It copes if you go back to a report after having submitted the form, and if the back-online submission fails due to CSRF failure, retrying once with a new token.
Diffstat (limited to 'templates/web/base/errors/generic.html')
-rwxr-xr-xtemplates/web/base/errors/generic.html4
1 files changed, 4 insertions, 0 deletions
diff --git a/templates/web/base/errors/generic.html b/templates/web/base/errors/generic.html
index d0d1e2e00..241b310de 100755
--- a/templates/web/base/errors/generic.html
+++ b/templates/web/base/errors/generic.html
@@ -1,5 +1,9 @@
[% INCLUDE 'header.html', bodyclass = 'fullwidthpage', title = loc('Error') %]
+[% IF csrf_token ~%]
+<input type="hidden" name="token" value="[% csrf_token %]">
+[% END ~%]
+
<div class="confirmation-header confirmation-header--failure">
<h1>[% loc('Error') %]</h1>
<p>[% message %]</p>