aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorDave Arter <davea@mysociety.org>2017-07-26 12:04:51 +0100
committerDave Arter <davea@mysociety.org>2017-07-26 12:04:51 +0100
commitb5b740c5f3257cb209bbb8735e62604647ff1a61 (patch)
treecb77339cb3303de6c415070763d86e02db44d45a /templates
parent3fb659de784e8cc40817f072f7181187f460f860 (diff)
Show reporter's phone number on inspector form
If the reporter of a problem left their phone number, it will be shown at the top of the inspector form as a 'tel:' link Fixes mysociety/fixmystreetforcouncils#200
Diffstat (limited to 'templates')
-rw-r--r--templates/web/base/report/_inspect.html8
1 files changed, 8 insertions, 0 deletions
diff --git a/templates/web/base/report/_inspect.html b/templates/web/base/report/_inspect.html
index 9d73fbb94..8745e5c31 100644
--- a/templates/web/base/report/_inspect.html
+++ b/templates/web/base/report/_inspect.html
@@ -13,6 +13,14 @@
<strong>[% loc('Report ID:') %]</strong>
<span class="js-report-id">[% problem.id %]</span>
</p>
+ [% IF permissions.report_inspect AND problem.user.phone %]
+ <p>
+ <strong>[% loc('Phone Reporter:') %]</strong>
+ <span class="js-report-id">
+ <a href="tel:[% problem.user.phone %]">[% problem.user.phone %]</a>
+ </span>
+ </p>
+ [% END %]
<p>
[% SET local_coords = problem.local_coords; %]
[% IF local_coords %]