diff options
author | Dave Arter <davea@mysociety.org> | 2018-01-31 11:40:36 +0000 |
---|---|---|
committer | Dave Arter <davea@mysociety.org> | 2018-04-10 10:42:33 +0100 |
commit | 36d43d05bce336475f656c3185a8363f482b581d (patch) | |
tree | 2db01cd3afb8a73797957e163e26b185f977f055 | |
parent | 55112ff7d1349693ebccc799b9d904b5131253b3 (diff) |
[BANES] Include report ID in ‘report created’ emails.
For mysociety/fixmystreetforcouncils#285
-rw-r--r-- | templates/email/bathnes/other-reported.html | 34 | ||||
-rw-r--r-- | templates/email/bathnes/other-reported.txt | 30 | ||||
-rw-r--r-- | templates/email/bathnes/other-updated.html | 28 | ||||
-rw-r--r-- | templates/email/bathnes/other-updated.txt | 19 |
4 files changed, 111 insertions, 0 deletions
diff --git a/templates/email/bathnes/other-reported.html b/templates/email/bathnes/other-reported.html new file mode 100644 index 000000000..1fb293c52 --- /dev/null +++ b/templates/email/bathnes/other-reported.html @@ -0,0 +1,34 @@ +[% + +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 %] + <h1 style="[% h1_style %]">Your report has been logged</h1> + <p style="[% p_style %]">Your report to [% report.body %] has been logged on [% site_name %]. +[% IF c.cobrand.is_council && !c.cobrand.owns_problem( report ) %] +Please note that [% c.cobrand.council_name %] is not responsible for this type +of report, so it will instead be sent to [% report.body %]. +[% ELSE %] + </p> + <p style="[% p_style %]">This report's reference number is <strong>[% report.id %]</strong>. + Please quote this if you need to contact the council about this report. +[% END %] + </p> + <p style="margin: 20px auto; text-align: center"> + <a style="[% button_style %]" href="[% cobrand.base_url_for_report(report) %][% report.url %]">View my report</a> + </p> + [% end_padded_box %] +</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/bathnes/other-reported.txt b/templates/email/bathnes/other-reported.txt new file mode 100644 index 000000000..0473e9db8 --- /dev/null +++ b/templates/email/bathnes/other-reported.txt @@ -0,0 +1,30 @@ +Subject: Your report has been logged: [% report.title %] + +Hello [% report.name %], + +Your report to [% report.body %] has been logged on [% site_name %]. + +[% IF c.cobrand.is_council && !c.cobrand.owns_problem( report ) %] +Please note that [% c.cobrand.council_name %] is not responsible for this type +of report, so it will instead be sent to [% report.body %]. +[% ELSE %] +This report's reference number is [% report.id %]. Please quote this if you +need to contact the council about this report. +[% END %] + +It is available to view at: + +[% cobrand.base_url_for_report(report) %][% report.url %] + +Your report has the title: + +[% report.title %] + +And details: + +[% report.detail %] + +[% INCLUDE 'signature.txt' %] + +This email was sent automatically, from an unmonitored email account - so +please do not reply to it. diff --git a/templates/email/bathnes/other-updated.html b/templates/email/bathnes/other-updated.html new file mode 100644 index 000000000..fb68c86ee --- /dev/null +++ b/templates/email/bathnes/other-updated.html @@ -0,0 +1,28 @@ +[% + +email_summary = "Thanks for logging your update"; +email_columns = 2; + +PROCESS '_email_settings.html'; +INCLUDE '_email_top.html'; + +%] + +<th style="[% td_style %][% primary_column_style %]" id="primary_column"> + [% start_padded_box %] + <h1 style="[% h1_style %]">Your update has been logged</h1> + <p style="[% p_style %]">Your update has been logged on [% site_name %].</p> + <p style="[% p_style %]">The report's reference number is <strong>[% update.problem_id %]</strong>. + Please quote this if you need to contact the council about this report.</p> + <p style="margin: 20px auto; text-align: center"> + <a style="[% button_style %]" href="[% cobrand.base_url_for_report(problem) %][% update.url %]">View my update</a> + </p> + [% end_padded_box %] +</th> +[% WRAPPER '_email_sidebar.html' + object = update + report = problem %] + <p style="[% secondary_p_style %]">[% update.text | html %]</p> +[% END %] + +[% INCLUDE '_email_bottom.html' %] diff --git a/templates/email/bathnes/other-updated.txt b/templates/email/bathnes/other-updated.txt new file mode 100644 index 000000000..70290cf1e --- /dev/null +++ b/templates/email/bathnes/other-updated.txt @@ -0,0 +1,19 @@ +Subject: Your update has been logged + +Hello [% update.name %], + +Your update has been logged on [% site_name %]: + +[% cobrand.base_url_for_report(problem) %][% update.url %] + +The report's reference number is [% update.problem_id %]. Please quote this if +you need to contact the council about this report. + +Your update reads: + +[% update.text %] + +[% INCLUDE 'signature.txt' %] + +This email was sent automatically, from an unmonitored email account - so +please do not reply to it. |