aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/email/default/login.html2
-rw-r--r--templates/email/hounslow/_council_reference.html4
-rw-r--r--templates/email/hounslow/_council_reference.txt2
-rw-r--r--templates/email/hounslow/_council_reference_alert_update.html4
-rw-r--r--templates/email/hounslow/_council_reference_alert_update.txt2
-rw-r--r--templates/email/hounslow/_email_color_overrides.html19
-rw-r--r--templates/email/hounslow/confirm_report_sent.html1
-rw-r--r--templates/email/hounslow/confirm_report_sent.txt1
-rw-r--r--templates/email/hounslow/other-reported.html31
-rw-r--r--templates/email/hounslow/other-reported.txt29
-rw-r--r--templates/email/hounslow/submit.html70
-rw-r--r--templates/email/hounslow/submit.txt43
-rw-r--r--templates/web/base/report/new/form_user_loggedin.html2
-rw-r--r--templates/web/fixmystreet.com/footer_extra_js.html1
-rw-r--r--templates/web/hounslow/about/mapterms.html24
-rw-r--r--templates/web/hounslow/footer_extra_js.html11
-rw-r--r--templates/web/hounslow/header_extra.html1
-rw-r--r--templates/web/hounslow/header_logo.html2
-rw-r--r--templates/web/hounslow/report/new/_form_labels.html3
-rw-r--r--templates/web/hounslow/report/new/after_photo.html8
-rw-r--r--templates/web/hounslow/report/new/councils_text_all.html5
-rw-r--r--templates/web/hounslow/report/new/top_message.html0
-rw-r--r--templates/web/hounslow/report/update/form_state_checkbox.html0
-rw-r--r--templates/web/hounslow/report/updates-sidebar-notes.html10
-rw-r--r--templates/web/hounslow/tokens/_confirm_problem_council_id.html2
-rw-r--r--templates/web/hounslow/tracking_code.html15
26 files changed, 290 insertions, 2 deletions
diff --git a/templates/email/default/login.html b/templates/email/default/login.html
index b22838d4e..86bda2464 100644
--- a/templates/email/default/login.html
+++ b/templates/email/default/login.html
@@ -1,6 +1,6 @@
[%
-email_summary = "Click this link to confirm your email address and log into " _ site_name;
+email_summary = "Click the link below to confirm your email address and log into " _ site_name;
email_columns = 1;
PROCESS '_email_settings.html';
diff --git a/templates/email/hounslow/_council_reference.html b/templates/email/hounslow/_council_reference.html
new file mode 100644
index 000000000..56944f954
--- /dev/null
+++ b/templates/email/hounslow/_council_reference.html
@@ -0,0 +1,4 @@
+[% IF problem.external_id ~%]
+<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>
+[%~ END %]
diff --git a/templates/email/hounslow/_council_reference.txt b/templates/email/hounslow/_council_reference.txt
new file mode 100644
index 000000000..3dd3f1e9f
--- /dev/null
+++ b/templates/email/hounslow/_council_reference.txt
@@ -0,0 +1,2 @@
+[% IF problem.external_id %]The report's reference number is [% problem.external_id %]. Please quote this if
+you need to contact the council about this report.[% END %]
diff --git a/templates/email/hounslow/_council_reference_alert_update.html b/templates/email/hounslow/_council_reference_alert_update.html
new file mode 100644
index 000000000..56944f954
--- /dev/null
+++ b/templates/email/hounslow/_council_reference_alert_update.html
@@ -0,0 +1,4 @@
+[% IF problem.external_id ~%]
+<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>
+[%~ END %]
diff --git a/templates/email/hounslow/_council_reference_alert_update.txt b/templates/email/hounslow/_council_reference_alert_update.txt
new file mode 100644
index 000000000..3dd3f1e9f
--- /dev/null
+++ b/templates/email/hounslow/_council_reference_alert_update.txt
@@ -0,0 +1,2 @@
+[% IF problem.external_id %]The report's reference number is [% problem.external_id %]. Please quote this if
+you need to contact the council about this report.[% END %]
diff --git a/templates/email/hounslow/_email_color_overrides.html b/templates/email/hounslow/_email_color_overrides.html
new file mode 100644
index 000000000..b08a92d86
--- /dev/null
+++ b/templates/email/hounslow/_email_color_overrides.html
@@ -0,0 +1,19 @@
+[%
+
+color_purple = '#7D2B80'
+color_green = '#8BC54F'
+color_white = '#fff'
+
+header_background_color = color_white
+header_text_color = color_purple
+
+secondary_column_background_color = color_white
+
+button_background_color = color_purple
+button_text_color = color_white
+
+logo_width = "231" # pixel measurement, but without 'px' suffix
+logo_height = "102" # pixel measurement, but without 'px' suffix
+logo_file = "logo.gif"
+
+%]
diff --git a/templates/email/hounslow/confirm_report_sent.html b/templates/email/hounslow/confirm_report_sent.html
new file mode 100644
index 000000000..5a0c19f0d
--- /dev/null
+++ b/templates/email/hounslow/confirm_report_sent.html
@@ -0,0 +1 @@
+[% INCLUDE 'other-reported.html' %] \ No newline at end of file
diff --git a/templates/email/hounslow/confirm_report_sent.txt b/templates/email/hounslow/confirm_report_sent.txt
new file mode 100644
index 000000000..72fe01f6d
--- /dev/null
+++ b/templates/email/hounslow/confirm_report_sent.txt
@@ -0,0 +1 @@
+[% INCLUDE 'other-reported.txt' %] \ No newline at end of file
diff --git a/templates/email/hounslow/other-reported.html b/templates/email/hounslow/other-reported.html
new file mode 100644
index 000000000..f715a392c
--- /dev/null
+++ b/templates/email/hounslow/other-reported.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&nbsp;logged</h1>
+ <p style="[% p_style %]">Your report to [% cobrand.council_name %] has been logged on [% site_name %].</p>
+[% IF cobrand.is_council && !cobrand.owns_problem( report ) %]
+<p style="[% p_style %]">Please note that [% 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' %]
diff --git a/templates/email/hounslow/other-reported.txt b/templates/email/hounslow/other-reported.txt
new file mode 100644
index 000000000..b976c4edc
--- /dev/null
+++ b/templates/email/hounslow/other-reported.txt
@@ -0,0 +1,29 @@
+Subject: Your report has been logged: [% report.title %]
+
+Hello [% report.name %],
+
+Your report to [% cobrand.council_name %] has been logged on [% site_name %].
+
+[% IF cobrand.is_council && !cobrand.owns_problem( report ) %]
+Please note that [% 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 %]
+
+[% signature %]
+
+This email was sent automatically, from an unmonitored email account - so
+please do not reply to it.
diff --git a/templates/email/hounslow/submit.html b/templates/email/hounslow/submit.html
new file mode 100644
index 000000000..7bc5ce45d
--- /dev/null
+++ b/templates/email/hounslow/submit.html
@@ -0,0 +1,70 @@
+[%
+
+PROCESS '_email_settings.html';
+
+email_summary = "A new problem in your area has been reported by a " _ site_name _ " user.";
+email_footer = "";
+email_columns = 2;
+
+INCLUDE '_email_top.html';
+
+%]
+
+<th style="[% td_style %][% primary_column_style %]" id="primary_column">
+ [% start_padded_box %]
+ <h1 style="[% h1_style %]">New problem in your&nbsp;area</h1>
+ <p style="[% p_style %]">[% multiple %]A user of [% site_name %] has submitted the following report
+of a local problem that they believe might require your attention.</p>
+
+ <p style="margin: 20px auto; text-align: center">
+ <a style="[% button_style %]" href="[% url %]">Show full report</a>
+ </p>
+ <h2 style="[% h2_style %] margin: 30px 0 10px 0">Reported by:</h2>
+ <table [% table_reset %]>
+ <tr>
+ <th style="[% contact_th_style %]">Name</th>
+ <td style="[% contact_td_style %]">[% report.name | html %]</td>
+ </tr>
+ <tr>
+ <th style="[% contact_th_style %]">Email</th>
+ <td style="[% contact_td_style %]">
+ [%~ IF report.user.email ~%]
+ <a href="mailto:[% report.user.email | html %]">[% report.user.email | html %]</a>
+ [%~ ELSE ~%]
+ <strong>No email address provided, only phone number</strong>
+ [%~ END ~%]
+ </td>
+ </tr>
+ [%~ IF report.user.phone %]
+ <tr>
+ <th style="[% contact_th_style %]">Phone</th>
+ <td style="[% contact_td_style %]"><a href="tel:[% report.user.phone | html %]">[% report.user.phone | html %]</a></td>
+ </tr>
+ [%~ END %]
+ </table>
+ <p style="[% p_style %] margin-top: 0.5em;">Replies to this message will go directly to [% report.name | html %], the user who reported the problem.</p>
+ [% end_padded_box %]
+</th>
+[% WRAPPER '_email_sidebar.html' object = report %]
+ <h2 style="[% h2_style %]">[% report.title | html %]</h2>
+ [% IF report.external_id %]
+ <p style="[% secondary_p_style %]"><strong>Enquiry ref:</strong> [% report.external_id | html %]</p>
+ [% END %]
+ <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 %]
+ <p style="[% secondary_p_style %]">
+ <strong>Location:</strong>
+ <br>Easting/Northing
+ [%~ " (IE)" IF coordsyst == "I" ~%]
+ : [% easting %]/[% northing %]
+ (<a href="[% osm_url %]" title="View OpenStreetMap of this location">
+ [%~ report.latitude %], [% report.longitude ~%]
+ </a>)
+ [% IF closest_address %]<br>[% closest_address | trim | replace("\n\n", "<br>") %][% END %]
+ </p>
+[% END %]
+
+[% INCLUDE '_email_bottom.html' %]
diff --git a/templates/email/hounslow/submit.txt b/templates/email/hounslow/submit.txt
new file mode 100644
index 000000000..3d9518e53
--- /dev/null
+++ b/templates/email/hounslow/submit.txt
@@ -0,0 +1,43 @@
+Subject: Problem Report: [% report.title %]
+
+[% multiple %]A user of
+[% site_name %] has submitted the following report
+of a local problem that they believe might require your attention.
+
+[% fuzzy %], or to provide an update on the problem,
+please visit the following link:
+
+ [% url %]
+
+[% has_photo %]----------
+
+Name: [% report.name %]
+
+Email: [% report.user.email OR 'None provided' %]
+
+Phone: [% report.user.phone OR 'None provided' %]
+
+[% IF report.external_id %]Enquiry ref: [% report.external_id %][% END %]
+
+Category: [% report.category %]
+
+Subject: [% report.title %]
+
+Details: [% report.detail %]
+
+[% additional_information %]
+
+Easting/Northing
+[%- " (IE)" IF coordsyst == "I" -%]
+: [% easting %]/[% northing %]
+
+Latitude: [% report.latitude %]
+
+Longitude: [% report.longitude %]
+
+View OpenStreetMap of this location: [% osm_url %]
+
+[% closest_address %]----------
+
+Replies to this email will go to the user who submitted the problem.
+
diff --git a/templates/web/base/report/new/form_user_loggedin.html b/templates/web/base/report/new/form_user_loggedin.html
index 37f0c6f0b..1016c5c47 100644
--- a/templates/web/base/report/new/form_user_loggedin.html
+++ b/templates/web/base/report/new/form_user_loggedin.html
@@ -25,7 +25,7 @@
<option value="another_user">[% loc('Another user') %]</option>
[% END %]
[% IF js || can_contribute_as_body %]
- <option value="body" [% c.user.from_body AND ( c.user.has_body_permission_to('planned_reports') || c.user.has_body_permission_to('default_to_body') ) ? 'selected' : '' %]>[% c.user.from_body.name %]</option>
+ <option value="body" [% c.user.from_body AND ( c.user.has_body_permission_to('planned_reports') || c.user.has_body_permission_to('default_to_body') ) ? 'selected' : '' %]>[% c.user.from_body.get_cobrand_handler ? c.user.from_body.get_cobrand_handler.council_name : c.user.from_body.name %]</option>
[% END %]
</select>
[% END %]
diff --git a/templates/web/fixmystreet.com/footer_extra_js.html b/templates/web/fixmystreet.com/footer_extra_js.html
index 61f260fe8..7835e1eac 100644
--- a/templates/web/fixmystreet.com/footer_extra_js.html
+++ b/templates/web/fixmystreet.com/footer_extra_js.html
@@ -13,6 +13,7 @@ IF bodyclass.match('mappage');
scripts.push( version('/cobrands/lincolnshire/assets.js') );
scripts.push( version('/cobrands/northamptonshire/assets.js') );
scripts.push( version('/cobrands/oxfordshire/assets.js') );
+ scripts.push( version('/cobrands/hounslow/assets.js') );
scripts.push( version('/cobrands/highways/assets.js') );
scripts.push( version('/cobrands/fixmystreet-uk-councils/council_validation_rules.js') );
scripts.push(
diff --git a/templates/web/hounslow/about/mapterms.html b/templates/web/hounslow/about/mapterms.html
new file mode 100644
index 000000000..04c0aeb09
--- /dev/null
+++ b/templates/web/hounslow/about/mapterms.html
@@ -0,0 +1,24 @@
+[% INCLUDE header.html
+ title = 'Map Terms and Conditions'
+%]
+
+<h1>Map Terms and Conditions</h1>
+
+<ul>
+ <li>
+ I. You are granted a non-exclusive, royalty free revocable licence
+ solely to view the licensed data for non-commercial purposes for the
+ period during which mySociety Ltd. makes it available;
+ </li>
+ <li>
+ II. You are not permitted to copy, sub-license, distribute, sell or
+ otherwise make available the Licensed Data to third parties in any form;
+ and
+ </li>
+ <li>
+ III. Third party rights to enforce the terms of this licence shall be
+ reserved to OS.
+ </li>
+</ul>
+[% INCLUDE footer.html %]
+
diff --git a/templates/web/hounslow/footer_extra_js.html b/templates/web/hounslow/footer_extra_js.html
new file mode 100644
index 000000000..ccec09313
--- /dev/null
+++ b/templates/web/hounslow/footer_extra_js.html
@@ -0,0 +1,11 @@
+[%
+IF bodyclass.match('mappage');
+ scripts.push(
+ version('/vendor/OpenLayers.Projection.OrdnanceSurvey.js'),
+ version('/cobrands/fixmystreet-uk-councils/roadworks.js'),
+ version('/cobrands/fixmystreet/assets.js'),
+ version('/cobrands/highways/assets.js'),
+ version('/cobrands/hounslow/js.js'),
+ );
+END
+%]
diff --git a/templates/web/hounslow/header_extra.html b/templates/web/hounslow/header_extra.html
new file mode 100644
index 000000000..8a977495f
--- /dev/null
+++ b/templates/web/hounslow/header_extra.html
@@ -0,0 +1 @@
+[% INCLUDE 'tracking_code.html' %]
diff --git a/templates/web/hounslow/header_logo.html b/templates/web/hounslow/header_logo.html
new file mode 100644
index 000000000..50d896496
--- /dev/null
+++ b/templates/web/hounslow/header_logo.html
@@ -0,0 +1,2 @@
+ <a href="http://www.hounslowhighways.org" id="site-logo">Hounslow Highways</a>
+ <a href="/" id="report-cta" title="[%- loc('Report a problem') -%]">[%- loc('Report') -%]</a>
diff --git a/templates/web/hounslow/report/new/_form_labels.html b/templates/web/hounslow/report/new/_form_labels.html
new file mode 100644
index 000000000..971715fa8
--- /dev/null
+++ b/templates/web/hounslow/report/new/_form_labels.html
@@ -0,0 +1,3 @@
+[%
+SET form_title = 'Summarise the problem and location';
+%] \ No newline at end of file
diff --git a/templates/web/hounslow/report/new/after_photo.html b/templates/web/hounslow/report/new/after_photo.html
new file mode 100644
index 000000000..e8fac0d2a
--- /dev/null
+++ b/templates/web/hounslow/report/new/after_photo.html
@@ -0,0 +1,8 @@
+<div class="description_tips" aria-label="Tips for perfect photos">
+ <ul class="do">
+ <li>To help us locate the problem, include both a close-up and a wide shot</li>
+ </ul>
+ <ul class="dont">
+ <li>Avoid personal information</li>
+ </ul>
+</div>
diff --git a/templates/web/hounslow/report/new/councils_text_all.html b/templates/web/hounslow/report/new/councils_text_all.html
new file mode 100644
index 000000000..ae2d9191c
--- /dev/null
+++ b/templates/web/hounslow/report/new/councils_text_all.html
@@ -0,0 +1,5 @@
+<p>
+ These will be sent to <strong>Hounslow Highways</strong> and also published
+ online for others to see, in accordance with our
+ <a href="[% c.cobrand.privacy_policy_url %]">privacy policy</a>.
+</p>
diff --git a/templates/web/hounslow/report/new/top_message.html b/templates/web/hounslow/report/new/top_message.html
new file mode 100644
index 000000000..e69de29bb
--- /dev/null
+++ b/templates/web/hounslow/report/new/top_message.html
diff --git a/templates/web/hounslow/report/update/form_state_checkbox.html b/templates/web/hounslow/report/update/form_state_checkbox.html
new file mode 100644
index 000000000..e69de29bb
--- /dev/null
+++ b/templates/web/hounslow/report/update/form_state_checkbox.html
diff --git a/templates/web/hounslow/report/updates-sidebar-notes.html b/templates/web/hounslow/report/updates-sidebar-notes.html
new file mode 100644
index 000000000..606595fc6
--- /dev/null
+++ b/templates/web/hounslow/report/updates-sidebar-notes.html
@@ -0,0 +1,10 @@
+<p class="box-warning">
+[% IF problem.is_open %]
+ <strong>Please note: If the problem has worsened, please open a new report instead of updating this one.</strong>
+[% ELSE %]
+ If this problem is still ongoing, please open a new report instead of updating this one.
+[% END %]
+</p>
+<p>
+ [% loc( 'Your information will only be used in accordance with our <a href="/privacy">privacy policy</a>.' ) %]
+</p>
diff --git a/templates/web/hounslow/tokens/_confirm_problem_council_id.html b/templates/web/hounslow/tokens/_confirm_problem_council_id.html
new file mode 100644
index 000000000..703fbd1b6
--- /dev/null
+++ b/templates/web/hounslow/tokens/_confirm_problem_council_id.html
@@ -0,0 +1,2 @@
+<h2>Your issue has been sent.</h2>
+<p>You will receive an email with a reference number for this report soon, please quote it in any enquiries.</p>
diff --git a/templates/web/hounslow/tracking_code.html b/templates/web/hounslow/tracking_code.html
new file mode 100644
index 000000000..d5d443560
--- /dev/null
+++ b/templates/web/hounslow/tracking_code.html
@@ -0,0 +1,15 @@
+[% IF c.config.BASE_URL == "https://www.fixmystreet.com" %]
+
+<!-- Global Site Tag (gtag.js) - Google Analytics -->
+<script async src="https://www.googletagmanager.com/gtag/js?id=UA-136557400-1"></script>
+<script>
+ window.dataLayer = window.dataLayer || [];
+ function gtag(){dataLayer.push(arguments);}
+ gtag('js', new Date());
+
+ gtag('config', 'UA-136557400-1');
+</script>
+
+[% ELSE %]
+<!-- Tracking code not inserted as "[% c.config.BASE_URL %]" not "https://www.fixmystreet.com" -->
+[% END %]