aboutsummaryrefslogtreecommitdiffstats
path: root/templates/email/tfl
diff options
context:
space:
mode:
Diffstat (limited to 'templates/email/tfl')
-rw-r--r--templates/email/tfl/_council_reference.html3
-rw-r--r--templates/email/tfl/_council_reference.txt2
-rw-r--r--templates/email/tfl/_council_reference_alert_update.html1
-rw-r--r--templates/email/tfl/_council_reference_alert_update.txt1
-rw-r--r--templates/email/tfl/_email_color_overrides.html24
-rw-r--r--templates/email/tfl/_email_setting_overrides.html7
-rw-r--r--templates/email/tfl/confirm_report_sent.html1
-rw-r--r--templates/email/tfl/confirm_report_sent.txt1
-rw-r--r--templates/email/tfl/other-reported.html33
-rw-r--r--templates/email/tfl/other-reported.txt31
-rw-r--r--templates/email/tfl/problem-confirm.html28
-rw-r--r--templates/email/tfl/problem-confirm.txt31
-rw-r--r--templates/email/tfl/reply-autoresponse35
-rw-r--r--templates/email/tfl/signature.txt1
-rw-r--r--templates/email/tfl/site-name.txt1
-rw-r--r--templates/email/tfl/submit.html76
-rw-r--r--templates/email/tfl/submit.txt49
-rw-r--r--templates/email/tfl/update-confirm-donotsend.txt2
18 files changed, 327 insertions, 0 deletions
diff --git a/templates/email/tfl/_council_reference.html b/templates/email/tfl/_council_reference.html
new file mode 100644
index 000000000..7013a1f9f
--- /dev/null
+++ b/templates/email/tfl/_council_reference.html
@@ -0,0 +1,3 @@
+<p style="[% p_style %]">The report's reference number is <strong>FMS[% problem.id %]</strong>.
+ Please quote this if you need to contact Transport for London about this report.</p>
+
diff --git a/templates/email/tfl/_council_reference.txt b/templates/email/tfl/_council_reference.txt
new file mode 100644
index 000000000..be82dc8d6
--- /dev/null
+++ b/templates/email/tfl/_council_reference.txt
@@ -0,0 +1,2 @@
+The report's reference number is FMS[% problem.id %]. Please quote this if
+you need to contact Transport for London about this report.
diff --git a/templates/email/tfl/_council_reference_alert_update.html b/templates/email/tfl/_council_reference_alert_update.html
new file mode 100644
index 000000000..3e7a29dbf
--- /dev/null
+++ b/templates/email/tfl/_council_reference_alert_update.html
@@ -0,0 +1 @@
+[% INCLUDE '_council-reference.html' %] \ No newline at end of file
diff --git a/templates/email/tfl/_council_reference_alert_update.txt b/templates/email/tfl/_council_reference_alert_update.txt
new file mode 100644
index 000000000..2cc57a339
--- /dev/null
+++ b/templates/email/tfl/_council_reference_alert_update.txt
@@ -0,0 +1 @@
+[% INCLUDE '_council-reference.txt' %] \ No newline at end of file
diff --git a/templates/email/tfl/_email_color_overrides.html b/templates/email/tfl/_email_color_overrides.html
new file mode 100644
index 000000000..2b9f798fc
--- /dev/null
+++ b/templates/email/tfl/_email_color_overrides.html
@@ -0,0 +1,24 @@
+[%
+
+color_blue = '#001aa8'
+color_black = '#000000'
+color_white = '#FFFFFF'
+color_tfl_grey = '#414b56'
+color_tfl_pale_blue = '#eff6fd'
+
+body_background_color = color_tfl_pale_blue
+body_text_color = color_tfl_grey
+
+header_background_color = color_blue
+header_text_color = color_white
+
+secondary_column_background_color = color_white
+
+button_background_color = color_blue
+button_text_color = color_white
+
+logo_width = "220" # pixel measurement, but without 'px' suffix
+logo_height = "86" # pixel measurement, but without 'px' suffix
+header_padding = "10px 20px"
+
+%]
diff --git a/templates/email/tfl/_email_setting_overrides.html b/templates/email/tfl/_email_setting_overrides.html
new file mode 100644
index 000000000..00eeed9cc
--- /dev/null
+++ b/templates/email/tfl/_email_setting_overrides.html
@@ -0,0 +1,7 @@
+[%
+
+only_column_style = "$only_column_style border: 1px solid $column_divider_color; border-top: none;"
+primary_column_style = "$primary_column_style border: 1px solid $column_divider_color; border-top: none;"
+secondary_column_style = "vertical-align: top; width: 50%; background-color: $secondary_column_background_color; color: $secondary_column_text_color; border: 1px solid $column_divider_color; border-top: none; border-left: none;"
+
+%]
diff --git a/templates/email/tfl/confirm_report_sent.html b/templates/email/tfl/confirm_report_sent.html
new file mode 100644
index 000000000..b698520dd
--- /dev/null
+++ b/templates/email/tfl/confirm_report_sent.html
@@ -0,0 +1 @@
+[% INCLUDE 'other-reported.html' %]
diff --git a/templates/email/tfl/confirm_report_sent.txt b/templates/email/tfl/confirm_report_sent.txt
new file mode 100644
index 000000000..3d566f89b
--- /dev/null
+++ b/templates/email/tfl/confirm_report_sent.txt
@@ -0,0 +1 @@
+[% INCLUDE 'other-reported.txt' %]
diff --git a/templates/email/tfl/other-reported.html b/templates/email/tfl/other-reported.html
new file mode 100644
index 000000000..89e76b303
--- /dev/null
+++ b/templates/email/tfl/other-reported.html
@@ -0,0 +1,33 @@
+[%
+
+email_summary = "Thanks for logging your report";
+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 %]">Your report has been&nbsp;logged</h1>
+ <p style="[% p_style %]">Your report to Transport for London has been logged on [% site_name %].</p>
+
+[% IF report.non_public %]
+<p style="[% p_style %]">It has been marked as private and will not be visible
+to the general public; you may view it using the link below, or if you sign in
+using the email address associated with the report.</p>
+[% END %]
+
+[% TRY %][% INCLUDE '_council_reference.html' problem=report %][% CATCH file %][% END %]
+ <p style="margin: 20px auto; text-align: center">
+ <a style="[% button_style %]" href="[% cobrand.base_url_for_report(report) %][% report.view_url %]">View my report</a>
+ </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.detail | html %]</p>
+[% END %]
+
+[% INCLUDE '_email_bottom.html' %]
diff --git a/templates/email/tfl/other-reported.txt b/templates/email/tfl/other-reported.txt
new file mode 100644
index 000000000..e70c4eb1c
--- /dev/null
+++ b/templates/email/tfl/other-reported.txt
@@ -0,0 +1,31 @@
+Subject: Your report has been logged: [% report.title %]
+
+Hello [% report.name %],
+
+Your report to Transport for London has been logged on [% site_name %].
+
+[% IF report.non_public ~%]
+It has been marked as private and will not be visible to the general public;
+you may view it using the link below, or if you sign in using the email address
+associated with the report.
+
+[% END ~%]
+
+[% TRY %][% INCLUDE '_council_reference.txt' problem=report %][% CATCH file %][% END %]
+
+It is available to view at:
+
+[% cobrand.base_url_for_report(report) %][% report.view_url %]
+
+Your report has the title:
+
+[% report.title %]
+
+And details:
+
+[% report.detail %]
+
+[% signature %]
+
+This email was sent automatically, from an unmonitored email account - so
+please do not reply to it.
diff --git a/templates/email/tfl/problem-confirm.html b/templates/email/tfl/problem-confirm.html
new file mode 100644
index 000000000..7d083d82e
--- /dev/null
+++ b/templates/email/tfl/problem-confirm.html
@@ -0,0 +1,28 @@
+[%
+
+email_summary = "You need to confirm your " _ site_name _ " report before it can be sent to Transport for London.";
+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 %]">Please confirm your&nbsp;report</h1>
+ <p style="[% p_style %]">Please click on the link below to confirm that you want to send your report to Transport for London.</p>
+ [% UNLESS report.non_public %]<p style="[% p_style %]">Your report will also appear on the [% site_name %] website.</p>[% END %]
+ <p style="margin: 20px auto; text-align: center">
+ <a style="[% button_style %]" href="[% token_url %]">Yes, send my report</a>
+ </p>
+ <p style="[% p_style %]">If you no longer wish to send this report, please take no further action.</p>
+ [% end_padded_box | safe %]
+</th>
+[% WRAPPER '_email_sidebar.html' object = report, url = token_url %]
+ <h2 style="[% h2_style %]">[% report.title | html %]</h2>
+ <p style="[% secondary_p_style %]">[% report.detail | html %]</p>
+[% END %]
+
+[% INCLUDE '_email_bottom.html' %]
diff --git a/templates/email/tfl/problem-confirm.txt b/templates/email/tfl/problem-confirm.txt
new file mode 100644
index 000000000..212fa3f11
--- /dev/null
+++ b/templates/email/tfl/problem-confirm.txt
@@ -0,0 +1,31 @@
+Subject: Confirm your report on [% site_name %]
+
+Hello [% report.name %],
+
+Please click on the link below to confirm that you want to send your report to
+Transport for London.[% UNLESS report.non_public %] Note that your report will also
+appear on the [% site_name %] website.[% END %]
+
+[% token_url %]
+
+If your email program does not let you click on this link, copy and paste it
+into your web browser and press return.
+
+Your problem had the title:
+
+[% report.title %]
+
+And details:
+
+[% report.detail %]
+
+If you no longer wish to send this report, please take no further action.
+
+Thank you for submitting a report through [% site_name %].
+
+
+
+[% signature %]
+
+This email was sent automatically, from an unmonitored email account - so
+please do not reply to it.
diff --git a/templates/email/tfl/reply-autoresponse b/templates/email/tfl/reply-autoresponse
new file mode 100644
index 000000000..d2c34627e
--- /dev/null
+++ b/templates/email/tfl/reply-autoresponse
@@ -0,0 +1,35 @@
+Subject: Automatic reply to your message to TfL Street Care
+
+Hello,
+
+You are receiving this message because you have tried to reply to an automated
+email from TfL Street Care.
+
+This is an automatic response to your email.
+
+If you are trying to contact us about a report you have made, please
+search your email for the latest communication (or auto-reply), and respond
+to that.
+
+Alternatively, if you would like your comment to be published on the Street Care
+website, you can post it as an update to the original report if it has not been
+closed. In the event that the report has been closed on Street Care, you may
+wish to open a new report if the issue is ongoing.
+
+If you are trying to reply to an update someone has left on your report, please
+visit your report page on TfL Street Care and enter your response in the 'update'
+box.
+
+If you are trying to confirm a report or an email alert, please click the link
+in the email that we sent you, or, if you cannot click the link, copy and paste
+it into the address bar of your web browser.
+
+If you're trying to unsubscribe from an email alert, there is an unsubscribe
+link at the bottom of the email.
+
+All the best,
+
+The TfL Street Care team
+
+This email was sent automatically, from an unmonitored email account - so
+please do not reply to it.
diff --git a/templates/email/tfl/signature.txt b/templates/email/tfl/signature.txt
new file mode 100644
index 000000000..ef8d7d667
--- /dev/null
+++ b/templates/email/tfl/signature.txt
@@ -0,0 +1 @@
+Street Care
diff --git a/templates/email/tfl/site-name.txt b/templates/email/tfl/site-name.txt
new file mode 100644
index 000000000..ef8d7d667
--- /dev/null
+++ b/templates/email/tfl/site-name.txt
@@ -0,0 +1 @@
+Street Care
diff --git a/templates/email/tfl/submit.html b/templates/email/tfl/submit.html
new file mode 100644
index 000000000..a1bd8f134
--- /dev/null
+++ b/templates/email/tfl/submit.html
@@ -0,0 +1,76 @@
+[%
+
+PROCESS '_email_settings.html';
+
+email_summary = "A new problem in your area has been reported by a " _ site_name _ " user.";
+email_footer = "";
+email_columns = 2;
+
+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&nbsp;area</h1>
+ <p style="[% p_style %]">[% multiple %]A user of [% site_name %] has submitted the following report
+of a local problem that they believe might require your attention.</p>
+
+ [% IF report.get_extra_field_value('safety_critical') == 'yes' %]<p>This report is marked as safety critical.</p>[% END %]
+
+ <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 %]"><strong>Report reference:</strong> FMS[% report.id %]</p>
+ <p style="[% secondary_p_style %]"><strong>Category:</strong> [% report.category | html %]</p>
+ [% IF report.get_extra_field_value('stop_code') %]
+ <p style="[% secondary_p_style %]"><strong>Stop number:</strong> [% report.get_extra_field_value('stop_code') | html %]</p>
+ [% END %]
+ [% IF report.get_extra_field_value('site') %]
+ <p style="[% secondary_p_style %]"><strong>Signal site number:</strong> [% report.get_extra_field_value('site') | html %]</p>
+ [% END %]
+ <p style="[% secondary_p_style %]">[% report.detail | html %]</p>
+ [%~ IF additional_information %]
+ <p style="[% secondary_p_style %]">[% additional_information %]</p>
+ [%~ END %]
+ <p style="[% secondary_p_style %]">
+ <strong>Location:</strong>
+ <br>Easting/Northing
+ [%~ " (IE)" IF coordsyst == "I" ~%]
+ : [% easting %]/[% northing %]
+ (<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' %]
diff --git a/templates/email/tfl/submit.txt b/templates/email/tfl/submit.txt
new file mode 100644
index 000000000..b6af867ff
--- /dev/null
+++ b/templates/email/tfl/submit.txt
@@ -0,0 +1,49 @@
+Subject: [% IF report.get_extra_field_value('safety_critical') == 'yes' %]Dangerous [% report.category %][% ELSE %]Problem[% END %] Report: [% report.title %]
+
+[% multiple %]A user of
+[% site_name %] has submitted the following report
+of a local problem that they believe might require your attention.
+
+[% IF report.get_extra_field_value('safety_critical') == 'yes' %]This report is marked as safety critical.[% END %]
+
+[% fuzzy %], or to provide an update on the problem,
+please visit the following link:
+
+ [% url %]
+
+[% has_photo %]----------
+
+Name: [% report.name %]
+
+Email: [% report.user.email OR 'None provided' %]
+
+Phone: [% report.user.phone OR 'None provided' %]
+
+Report reference: FMS[% report.id %]
+
+Category: [% report.category %]
+
+[% IF report.get_extra_field_value('stop_code') %]Stop number: [% report.get_extra_field_value('stop_code') %]
+[% END %]
+[% IF report.get_extra_field_value('site') %]Signal site number: [% report.get_extra_field_value('site') %]
+[% END %]
+Subject: [% report.title %]
+
+Details: [% report.detail %]
+
+[% additional_information %]
+
+Easting/Northing
+[%- " (IE)" IF coordsyst == "I" -%]
+: [% easting %]/[% northing %]
+
+Latitude: [% report.latitude %]
+
+Longitude: [% report.longitude %]
+
+View OpenStreetMap of this location: [% osm_url %]
+
+[% closest_address %]----------
+
+Replies to this email will go to the user who submitted the problem.
+
diff --git a/templates/email/tfl/update-confirm-donotsend.txt b/templates/email/tfl/update-confirm-donotsend.txt
new file mode 100644
index 000000000..87ec67328
--- /dev/null
+++ b/templates/email/tfl/update-confirm-donotsend.txt
@@ -0,0 +1,2 @@
+This update will be sent to Transport for London and will
+also be displayed on the [% site_name %] website.