diff options
author | Matthew Somerville <matthew@mysociety.org> | 2013-01-18 11:53:17 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2013-01-18 11:53:17 +0000 |
commit | 2bf6d88fc6dfb5f51545f8911b28777bfd6c7230 (patch) | |
tree | 5c777f3ee2d43e88a5fd586ad9aeeae396f7e8cb | |
parent | 9c0f553738bb904658ef588e0f3e3454b3f62a45 (diff) |
If personal details tickbox ticked, use template that includes them.
-rw-r--r-- | perllib/FixMyStreet/SendReport/Zurich.pm | 3 | ||||
-rw-r--r-- | templates/email/zurich/submit-external-personal.txt | 13 |
2 files changed, 16 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/SendReport/Zurich.pm b/perllib/FixMyStreet/SendReport/Zurich.pm index ca9e6f33e..d700dcb15 100644 --- a/perllib/FixMyStreet/SendReport/Zurich.pm +++ b/perllib/FixMyStreet/SendReport/Zurich.pm @@ -39,6 +39,9 @@ sub get_template { $template = 'submit-feedback-pending.txt'; } elsif ( $row->state eq 'closed' ) { $template = 'submit-external.txt'; + if ( $row->extra->{third_personal} ) { + $template = 'submit-external-personal.txt'; + } } my $template_path = FixMyStreet->path_to( "templates", "email", "zurich", $template )->stringify; diff --git a/templates/email/zurich/submit-external-personal.txt b/templates/email/zurich/submit-external-personal.txt new file mode 100644 index 000000000..949079d94 --- /dev/null +++ b/templates/email/zurich/submit-external-personal.txt @@ -0,0 +1,13 @@ +Subject: FixMyZurich: Neue Meldung #<?=$values['id']?> + +Guten Tag<?=$values['bodies_name']?>, + +Diese Meldung wurde Ihnen von der Stadt Zürich gesendet, da es Ihr Zuständigkeitsgebiet betreffen könnte. + +Öffentliche URL: <?=$values['url']?> + +Reporter name: <?=$values['name']?> + +Reporter email: <?=$values['email']?> + +Reporter phone: <?=$values['phone']?> |