aboutsummaryrefslogtreecommitdiffstats
path: root/templates/email
diff options
context:
space:
mode:
authorDave Arter <davea@mysociety.org>2016-06-15 12:02:53 +0100
committerDave Arter <davea@mysociety.org>2016-06-15 14:10:33 +0100
commitb5b3b8e3cee367a8f82b4179a5d03f4d30e1215e (patch)
treed794ea247a6b5a2c7dcff42e77990217eacb02e9 /templates/email
parent96c72fa72e547a2ce5b435db3cae8c3c45efafc1 (diff)
[UK Councils] Send correct confirm emails for updates
Some UK councils with Open311 integrations (e.g. Bromley) have a custom wording in the confirmation email sent when updates are left on reports, to make the user aware that the update is sent to the council in question. Bromley noticed that some emails were being sent without this wording, leading at least one user to contact the council directly about the report. It turns out that although the email template contains an IF clause to use the appropriate wording for Bromley (and Stevenage) reports, the incorrect template file was being used when updates were made via the Bromley cobrand. This commit solves the problem by introducing a new `Cobrand::Default::path_to_email_templates` method, which is overridden by `Cobrand::UKCouncils` to include the `templates/email/fixmystreet` path. Paths returned by this method are used as the `additional_template_paths` param when templating emails. A regression test is included. Additionally moves email templates for fixmystreet.com to a directory name reflecting their purpose, in the same way the web templates are arranged.
Diffstat (limited to 'templates/email')
-rw-r--r--templates/email/fixmystreet.com/signature.txt (renamed from templates/email/fixmystreet/signature.txt)0
-rw-r--r--templates/email/fixmystreet.com/submit-oxfordshire.txt (renamed from templates/email/fixmystreet/submit-oxfordshire.txt)0
-rw-r--r--templates/email/fixmystreet.com/submit.txt (renamed from templates/email/fixmystreet/submit.txt)0
-rw-r--r--templates/email/fixmystreet.com/update-confirm-donotsend.txt (renamed from templates/email/fixmystreet/update-confirm-donotsend.txt)0
4 files changed, 0 insertions, 0 deletions
diff --git a/templates/email/fixmystreet/signature.txt b/templates/email/fixmystreet.com/signature.txt
index 834e69b9d..834e69b9d 100644
--- a/templates/email/fixmystreet/signature.txt
+++ b/templates/email/fixmystreet.com/signature.txt
diff --git a/templates/email/fixmystreet/submit-oxfordshire.txt b/templates/email/fixmystreet.com/submit-oxfordshire.txt
index f0fc5e9b7..f0fc5e9b7 100644
--- a/templates/email/fixmystreet/submit-oxfordshire.txt
+++ b/templates/email/fixmystreet.com/submit-oxfordshire.txt
diff --git a/templates/email/fixmystreet/submit.txt b/templates/email/fixmystreet.com/submit.txt
index 17642e645..17642e645 100644
--- a/templates/email/fixmystreet/submit.txt
+++ b/templates/email/fixmystreet.com/submit.txt
diff --git a/templates/email/fixmystreet/update-confirm-donotsend.txt b/templates/email/fixmystreet.com/update-confirm-donotsend.txt
index 2e04dc0bf..2e04dc0bf 100644
--- a/templates/email/fixmystreet/update-confirm-donotsend.txt
+++ b/templates/email/fixmystreet.com/update-confirm-donotsend.txt