aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Arter <davea@mysociety.org>2018-06-25 13:58:20 +0100
committerDave Arter <davea@mysociety.org>2018-06-26 17:20:28 +0100
commit7f0b4d5b5d666f99701e42363b6c32075b55b01a (patch)
tree6b54976ce35fcd537780dafdf84af48aab91ef53
parent56e635e9a1b8beca98a3a0a461dcd744bdfa08e7 (diff)
[BANES] Relabel report rejection button
-rw-r--r--templates/web/base/report/_inspect.html10
-rw-r--r--templates/web/bathnes/report/_inspect_reject_button.html3
2 files changed, 10 insertions, 3 deletions
diff --git a/templates/web/base/report/_inspect.html b/templates/web/base/report/_inspect.html
index 222780dcb..e2db1ea97 100644
--- a/templates/web/base/report/_inspect.html
+++ b/templates/web/base/report/_inspect.html
@@ -53,9 +53,13 @@
<a href="#" class="btn btn--block btn--geolocate">[% loc('Set to my current location') %]</a>
</p>
[% IF permissions.report_reject %]
- <p>
- <a href="[% c.uri_for( '/contact', { id => problem.id, reject => 1 } ) %]" class="btn btn--block">[% loc('Reject report') %]</a>
- </p>
+ [% TRY %]
+ [% INCLUDE 'report/_inspect_reject_button.html' %]
+ [% CATCH file %]
+ <p>
+ <a href="[% c.uri_for( '/contact', { id => problem.id, reject => 1 } ) %]" class="btn btn--block">[% loc('Reject report') %]</a>
+ </p>
+ [% END %]
[% END %]
</div>
diff --git a/templates/web/bathnes/report/_inspect_reject_button.html b/templates/web/bathnes/report/_inspect_reject_button.html
new file mode 100644
index 000000000..33b3a9d80
--- /dev/null
+++ b/templates/web/bathnes/report/_inspect_reject_button.html
@@ -0,0 +1,3 @@
+<p>
+ <a href="[% c.uri_for( '/contact', { id => problem.id, reject => 1 } ) %]" class="btn btn--block">Council Connect Return</a>
+</p>