aboutsummaryrefslogtreecommitdiffstats
path: root/templates/email/fixmystreet.com
diff options
context:
space:
mode:
Diffstat (limited to 'templates/email/fixmystreet.com')
-rw-r--r--templates/email/fixmystreet.com/bathnes/submit-street-light-fault.html2
-rw-r--r--templates/email/fixmystreet.com/bathnes/submit-street-light-fault.txt2
-rw-r--r--templates/email/fixmystreet.com/submit.html11
-rw-r--r--templates/email/fixmystreet.com/submit.txt5
4 files changed, 12 insertions, 8 deletions
diff --git a/templates/email/fixmystreet.com/bathnes/submit-street-light-fault.html b/templates/email/fixmystreet.com/bathnes/submit-street-light-fault.html
index 8af8ea1b0..61aa9af34 100644
--- a/templates/email/fixmystreet.com/bathnes/submit-street-light-fault.html
+++ b/templates/email/fixmystreet.com/bathnes/submit-street-light-fault.html
@@ -48,8 +48,6 @@
<td>[% url %]</td>
</tr>
</table>
-[% additional_information %]
-
<h2>Location Details</h2>
diff --git a/templates/email/fixmystreet.com/bathnes/submit-street-light-fault.txt b/templates/email/fixmystreet.com/bathnes/submit-street-light-fault.txt
index a860c0a34..20a2aeb4f 100644
--- a/templates/email/fixmystreet.com/bathnes/submit-street-light-fault.txt
+++ b/templates/email/fixmystreet.com/bathnes/submit-street-light-fault.txt
@@ -24,8 +24,6 @@ Title: [% title %]
Description: [% detail %]
-[% additional_information %]
-
[% url %]
Location Details
diff --git a/templates/email/fixmystreet.com/submit.html b/templates/email/fixmystreet.com/submit.html
index f8b2db0dc..1d40f1eb6 100644
--- a/templates/email/fixmystreet.com/submit.html
+++ b/templates/email/fixmystreet.com/submit.html
@@ -49,9 +49,14 @@ of a local problem that they believe might require your attention.</p>
<h2 style="[% h2_style %]">[% report.title | html %]</h2>
<p style="[% secondary_p_style %]"><strong>Category:</strong> [% report.category | html %]</p>
<p style="[% secondary_p_style %]">[% report.detail | html %]</p>
- [%~ IF additional_information %]
- <p style="[% secondary_p_style %]">[% additional_information %]</p>
- [%~ END %]
+ [% IF report.get_extra_fields %]
+ <p style="[% secondary_p_style %]">
+ [%~ FOR field IN report.get_extra_fields %][% IF field.value %]
+ [% field.description %]: [% field.value %]
+ [% IF NOT loop.last %]<br>[% END %]
+ [%~ END %][% END %]
+ </p>
+ [% END %]
<p style="[% secondary_p_style %]">
<strong>Location:</strong>
<br>Easting/Northing
diff --git a/templates/email/fixmystreet.com/submit.txt b/templates/email/fixmystreet.com/submit.txt
index c22d83713..3b3c0980f 100644
--- a/templates/email/fixmystreet.com/submit.txt
+++ b/templates/email/fixmystreet.com/submit.txt
@@ -25,7 +25,10 @@ Subject: [% report.title %]
Details: [% report.detail %]
-[% additional_information %]
+[% FOR field IN report.get_extra_fields %][% IF field.value ~%]
+[% field.description %]: [% field.value %]
+
+[% END %][% END ~%]
Easting/Northing
[%- " (IE)" IF coordsyst == "I" -%]