diff options
Diffstat (limited to 'templates/email')
10 files changed, 186 insertions, 1 deletions
diff --git a/templates/email/buckinghamshire/_council_reference.html b/templates/email/buckinghamshire/_council_reference.html new file mode 100644 index 000000000..b8f72c8f9 --- /dev/null +++ b/templates/email/buckinghamshire/_council_reference.html @@ -0,0 +1,2 @@ +<p style="[% p_style %]">The report's reference number is <strong>[% problem.external_id %]</strong>. + Please quote this if you need to contact the council about this report.</p> diff --git a/templates/email/buckinghamshire/_council_reference.txt b/templates/email/buckinghamshire/_council_reference.txt new file mode 100644 index 000000000..3c92f3666 --- /dev/null +++ b/templates/email/buckinghamshire/_council_reference.txt @@ -0,0 +1,2 @@ +The report's reference number is [% problem.external_id %]. Please quote this if +you need to contact the council about this report. diff --git a/templates/email/buckinghamshire/alert-update.html b/templates/email/buckinghamshire/alert-update.html new file mode 100644 index 000000000..d8d857c26 --- /dev/null +++ b/templates/email/buckinghamshire/alert-update.html @@ -0,0 +1,26 @@ +[% + +title = report.title | html; +category = report.category | html; +email_summary = "New updates on " _ category _ " 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 %]">New updates on <a href="[% problem_url %]">[% category %] report</a></h1> + [%~ INCLUDE '_email_comment_list.html' %] + <p style="[% p_style %]"><a href="[% unsubscribe_url %]">Unsubscribe from alerts about this report</a></p> + [% end_padded_box %] +</th> +[% WRAPPER '_email_sidebar.html' object = report %] + <h2 style="[% h2_style %]">[% title | html %]</h2> + <p style="[% secondary_p_style %]">[% report.detail | html %]</p> +[% END %] + +[% INCLUDE '_email_bottom.html' %] diff --git a/templates/email/buckinghamshire/alert-update.txt b/templates/email/buckinghamshire/alert-update.txt new file mode 100644 index 000000000..159f0abe7 --- /dev/null +++ b/templates/email/buckinghamshire/alert-update.txt @@ -0,0 +1,28 @@ +Subject: New [% site_name %] updates on [% report.category %] report + +You asked us to send you an email every time an update was made to the +[% site_name %] report: [% report.title %]. + +The following updates have been left on this report: + +[% INCLUDE '_email_comment_list.txt' %] + +[% state_message %] + +If you would like to view or reply to these updates, please visit the following URL: + + [% problem_url %] + +This email was sent automatically, from an unmonitored email account - so +please do not reply to it. + +[% signature %] + + +Unsubscribe? + +We currently email you whenever someone leaves an update on the +[% site_name %] report: [% report.title %]. + +If you no longer wish to receive an email whenever this report is updated, +please follow this link: [% unsubscribe_url %] diff --git a/templates/email/buckinghamshire/confirm_report_sent.html b/templates/email/buckinghamshire/confirm_report_sent.html new file mode 100644 index 000000000..0fcb46e41 --- /dev/null +++ b/templates/email/buckinghamshire/confirm_report_sent.html @@ -0,0 +1,31 @@ +[% + +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 %].</p> +[% IF c.cobrand.is_council && !c.cobrand.owns_problem( report ) %] +<p style="[% p_style %]">Please note that [% c.cobrand.council_name %] is not responsible for this type +of report, so it will instead be sent to [% report.body %].</p> +[% ELSE %] +[% TRY %][% INCLUDE '_council_reference.html' problem=report %][% CATCH file %][% END %] +[% END %] + <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' %]
\ No newline at end of file diff --git a/templates/email/buckinghamshire/confirm_report_sent.txt b/templates/email/buckinghamshire/confirm_report_sent.txt new file mode 100644 index 000000000..bdcedcfda --- /dev/null +++ b/templates/email/buckinghamshire/confirm_report_sent.txt @@ -0,0 +1,29 @@ +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 %] +[% TRY %][% INCLUDE '_council_reference.txt' problem=report %][% CATCH file %][% END %] +[% 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.
\ No newline at end of file diff --git a/templates/email/buckinghamshire/other-reported.html b/templates/email/buckinghamshire/other-reported.html new file mode 100644 index 000000000..85ba08f97 --- /dev/null +++ b/templates/email/buckinghamshire/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.external_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' %]
\ No newline at end of file diff --git a/templates/email/buckinghamshire/other-reported.txt b/templates/email/buckinghamshire/other-reported.txt new file mode 100644 index 000000000..933d66b54 --- /dev/null +++ b/templates/email/buckinghamshire/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.external_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.
\ No newline at end of file diff --git a/templates/email/default/other-updated.html b/templates/email/default/other-updated.html index 27eba9007..e7f09e123 100644 --- a/templates/email/default/other-updated.html +++ b/templates/email/default/other-updated.html @@ -11,7 +11,8 @@ 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 %]">Your update has been logged on [% site_name %].</p> + [% TRY %][% INCLUDE '_council_reference.html' %][% CATCH file %][% END %] <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> diff --git a/templates/email/default/other-updated.txt b/templates/email/default/other-updated.txt index 7e5631ef1..21ea68863 100644 --- a/templates/email/default/other-updated.txt +++ b/templates/email/default/other-updated.txt @@ -6,6 +6,8 @@ Your update has been logged on [% site_name %]: [% cobrand.base_url_for_report(problem) %][% update.url %] +[% TRY %][% INCLUDE '_council_reference.txt' %][% CATCH file %][% END %] + Your update reads: [% update.text %] |