aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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>