From 201d5cc38c2a75831d5c8e12e498b6e808aee2dc Mon Sep 17 00:00:00 2001 From: Matthew Somerville Date: Tue, 20 Jan 2015 17:50:10 +0000 Subject: [Oxfordshire] Update email template for cobrand. And update HTTPS link. --- perllib/FixMyStreet/SendReport/Email.pm | 5 ++- templates/email/fixamingata/submit-brent.txt | 43 ---------------------- templates/email/fixmystreet/submit-brent.txt | 43 ---------------------- templates/email/fixmystreet/submit-oxfordshire.txt | 43 ++++++++++++++++++++++ templates/email/oxfordshire/submit.txt | 43 ++++++++++++++++++++++ 5 files changed, 90 insertions(+), 87 deletions(-) delete mode 100644 templates/email/fixamingata/submit-brent.txt delete mode 100644 templates/email/fixmystreet/submit-brent.txt create mode 100644 templates/email/fixmystreet/submit-oxfordshire.txt create mode 100644 templates/email/oxfordshire/submit.txt diff --git a/perllib/FixMyStreet/SendReport/Email.pm b/perllib/FixMyStreet/SendReport/Email.pm index 797b41e91..4507091c7 100644 --- a/perllib/FixMyStreet/SendReport/Email.pm +++ b/perllib/FixMyStreet/SendReport/Email.pm @@ -56,7 +56,10 @@ sub get_template { my ( $self, $row ) = @_; my $template = 'submit.txt'; - $template = 'submit-brent.txt' if $row->bodies_str eq 2488 || $row->bodies_str eq 2237; + + if ($row->cobrand eq 'fixmystreet') { + $template = 'submit-oxfordshire.txt' if $row->bodies_str eq 2237; + } $template = FixMyStreet->get_email_template($row->cobrand, $row->lang, $template); return $template; diff --git a/templates/email/fixamingata/submit-brent.txt b/templates/email/fixamingata/submit-brent.txt deleted file mode 100644 index 37adde4df..000000000 --- a/templates/email/fixamingata/submit-brent.txt +++ /dev/null @@ -1,43 +0,0 @@ -Subject: FMS Problem Report: - -Dear , - -A user of -FixMyStreet has submitted the following report -of a local problem that they believe might require your attention. - -, or to provide an update on the problem, -please visit the following link: - - - ----------- - -Name: - -Email: - -Subject: - -Details: - -Latitude: - -Longitude: - ----------- - -Replies to this email will go to the user who submitted the problem. - - - -This message was sent via FixMyStreet, a project of UKCOD, registered charity -number 1076346. If there is a more appropriate email address for messages about -, please let us know by visiting . -This will help improve the service for local people. We -also welcome any other feedback you may have. - -FixMyStreet is now available for full integration into council -websites, making life easier for both you and your residents. -Read more here: https://www.fixmystreet.com/council - diff --git a/templates/email/fixmystreet/submit-brent.txt b/templates/email/fixmystreet/submit-brent.txt deleted file mode 100644 index 37adde4df..000000000 --- a/templates/email/fixmystreet/submit-brent.txt +++ /dev/null @@ -1,43 +0,0 @@ -Subject: FMS Problem Report: - -Dear , - -A user of -FixMyStreet has submitted the following report -of a local problem that they believe might require your attention. - -, or to provide an update on the problem, -please visit the following link: - - - ----------- - -Name: - -Email: - -Subject: - -Details: - -Latitude: - -Longitude: - ----------- - -Replies to this email will go to the user who submitted the problem. - - - -This message was sent via FixMyStreet, a project of UKCOD, registered charity -number 1076346. If there is a more appropriate email address for messages about -, please let us know by visiting . -This will help improve the service for local people. We -also welcome any other feedback you may have. - -FixMyStreet is now available for full integration into council -websites, making life easier for both you and your residents. -Read more here: https://www.fixmystreet.com/council - diff --git a/templates/email/fixmystreet/submit-oxfordshire.txt b/templates/email/fixmystreet/submit-oxfordshire.txt new file mode 100644 index 000000000..23a8504ee --- /dev/null +++ b/templates/email/fixmystreet/submit-oxfordshire.txt @@ -0,0 +1,43 @@ +Subject: FMS Problem Report: + +Dear , + +A user of +FixMyStreet has submitted the following report +of a local problem that they believe might require your attention. + +, or to provide an update on the problem, +please visit the following link: + + + +---------- + +Name: + +Email: + +Subject: + +Details: + +Latitude: + +Longitude: + +---------- + +Replies to this email will go to the user who submitted the problem. + + + +This message was sent via FixMyStreet, a project of UKCOD, registered charity +number 1076346. If there is a more appropriate email address for messages about +, please let us know by visiting . +This will help improve the service for local people. We +also welcome any other feedback you may have. + +FixMyStreet is now available for full integration into council +websites, making life easier for both you and your residents. +Read more here: https://www.fixmystreet.com/council + diff --git a/templates/email/oxfordshire/submit.txt b/templates/email/oxfordshire/submit.txt new file mode 100644 index 000000000..23a8504ee --- /dev/null +++ b/templates/email/oxfordshire/submit.txt @@ -0,0 +1,43 @@ +Subject: FMS Problem Report: + +Dear , + +A user of +FixMyStreet has submitted the following report +of a local problem that they believe might require your attention. + +, or to provide an update on the problem, +please visit the following link: + + + +---------- + +Name: + +Email: + +Subject: + +Details: + +Latitude: + +Longitude: + +---------- + +Replies to this email will go to the user who submitted the problem. + + + +This message was sent via FixMyStreet, a project of UKCOD, registered charity +number 1076346. If there is a more appropriate email address for messages about +, please let us know by visiting . +This will help improve the service for local people. We +also welcome any other feedback you may have. + +FixMyStreet is now available for full integration into council +websites, making life easier for both you and your residents. +Read more here: https://www.fixmystreet.com/council + -- cgit v1.2.3