blob: e08a31b5a01740ed466fbaf91b33ab4c2f200a0f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
[%
email_summary = "A new problem in your area has been reported by a " _ site_name _ " user.";
email_footer = "If there is a more appropriate email address for messages about " _ category_footer _ ", please let us know. This will help improve the service for local people. We also welcome any other feedback you may have.";
email_columns = 2;
PROCESS '_email_settings.html';
INCLUDE '_email_top.html';
%]
<th style="[% td_style %][% primary_column_style %]" id="primary_column">
[% start_padded_box | safe %]
<h1 style="[% h1_style %]">New problem in your area</h1>
<p style="[% p_style %]">[% missing %][% multiple %]A user of [% site_name %] has submitted the following report
of a local problem that they believe might require your attention.</p>
<p style="margin: 20px auto; text-align: center">
<a style="[% button_style %]" href="[% url %]">Show full report</a>
</p>
<h2 style="[% h2_style %] margin: 30px 0 10px 0">Reported by:</h2>
<table [% table_reset | safe %]>
<tr>
<th style="[% contact_th_style %]">Name</th>
<td style="[% contact_td_style %]">[% report.name | html %]</td>
</tr>
<tr>
<th style="[% contact_th_style %]">Email</th>
<td style="[% contact_td_style %]">
[%~ IF report.user.email ~%]
<a href="mailto:[% report.user.email | html %]">[% report.user.email | html %]</a>
[%~ ELSE ~%]
<strong>No email address provided, only phone number</strong>
[%~ END ~%]
</td>
</tr>
[%~ IF report.user.phone %]
<tr>
<th style="[% contact_th_style %]">Phone</th>
<td style="[% contact_td_style %]"><a href="tel:[% report.user.phone | html %]">[% report.user.phone | html %]</a></td>
</tr>
[%~ END %]
</table>
<p style="[% p_style %] margin-top: 0.5em;">Replies to this message will go directly to [% report.name | html %], the user who reported the problem.</p>
[% end_padded_box | safe %]
</th>
[% WRAPPER '_email_sidebar.html' object = report %]
<h2 style="[% h2_style %]">[% report.title | html %]</h2>
<p style="[% secondary_p_style %]">[% report.category | html %]</p>
<p style="[% secondary_p_style %]">[% report.detail | html %]</p>
[% IF report.get_extra_fields %]
<p style="[% secondary_p_style %]">
[%~ FOR field IN report.get_extra_fields %][% IF field.value %]
[% field.description %]: [% field.value %]
[% IF NOT loop.last %]<br>[% END %]
[%~ END %][% END %]
</p>
[% END %]
<p style="[% secondary_p_style %]">
<strong>Location:</strong>
<a href="[% osm_url %]" title="View OpenStreetMap of this location">
[%~ report.latitude %], [% report.longitude ~%]
</a>
[% IF closest_address %]<br>[% closest_address | trim | replace("\n\n", "<br>") %][% END %]
</p>
[% END %]
[% INCLUDE '_email_bottom.html' %]
|