aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorDave Arter <davea@mysociety.org>2017-08-22 14:39:34 +0100
committerMatthew Somerville <matthew@mysociety.org>2017-08-24 17:52:13 +0100
commit05c6a4b980b07a7c15b6b9727f6315d326e233a0 (patch)
tree99e00e3f5068bf401943e222bcabe7842a503710 /templates
parent6f7efae58ef30ffbaddd42b4ac7f65380f6fe68a (diff)
Redirect to original URL after inspecting
For mysociety/fixmystreetforcouncils#204
Diffstat (limited to 'templates')
-rw-r--r--templates/web/base/report/_inspect.html5
1 files changed, 4 insertions, 1 deletions
diff --git a/templates/web/base/report/_inspect.html b/templates/web/base/report/_inspect.html
index cd34b147b..fb58a0cfa 100644
--- a/templates/web/base/report/_inspect.html
+++ b/templates/web/base/report/_inspect.html
@@ -174,7 +174,10 @@
[% END %]
<p>
- <input type="hidden" name="token" value="[% csrf_token %]">
+ <input type="hidden" name="token" value="[% csrf_token %]" />
+ [% IF permissions.planned_reports %]
+ <input type="hidden" name="post_inspect_url" value="[% post_inspect_url | html %]" />
+ [% END %]
<input class="btn btn-primary" type="submit" value="[% loc('Save changes') %]" data-value-original="[% loc('Save changes') %]" data-value-duplicate="[% loc('Save + close as duplicate') %]" name="save" />
</p>
</div>