aboutsummaryrefslogtreecommitdiffstats
path: root/templates/web
diff options
context:
space:
mode:
Diffstat (limited to 'templates/web')
-rw-r--r--templates/web/base/report/new/fill_in_details_form.html6
-rw-r--r--templates/web/base/report/new/fill_in_details_text.html5
-rw-r--r--templates/web/eastsussex/report/new/fill_in_details_text.html10
-rw-r--r--templates/web/fixmystreet-uk-councils/report/new/inline-tips.html12
-rw-r--r--templates/web/fixmystreet-uk-councils/report/new/sidebar.html0
-rw-r--r--templates/web/fixmystreet.com/report/new/inline-tips.html12
-rw-r--r--templates/web/fixmystreet.com/report/new/sidebar.html0
-rw-r--r--templates/web/fixmystreet/report/new/fill_in_details_form.html40
-rw-r--r--templates/web/fixmystreet/report/new/fill_in_details_text.html10
-rw-r--r--templates/web/fixmystreet/report/new/sidebar.html14
-rw-r--r--templates/web/oxfordshire/report/new/after_photo.html3
-rw-r--r--templates/web/oxfordshire/report/new/fill_in_details_text.html6
-rw-r--r--templates/web/oxfordshire/report/new/inline-tips.html12
13 files changed, 62 insertions, 68 deletions
diff --git a/templates/web/base/report/new/fill_in_details_form.html b/templates/web/base/report/new/fill_in_details_form.html
index 1e687cf88..ec05e127e 100644
--- a/templates/web/base/report/new/fill_in_details_form.html
+++ b/templates/web/base/report/new/fill_in_details_form.html
@@ -2,10 +2,10 @@
[% IF report.used_map %]
<p class="change_location">[% loc('Wrong location? Just click again on the map.') %]</p>
+[% END %]
- [% IF partial_token %]
- <p id="unknown">[% loc('Please note your report has <strong>not yet been sent</strong>. Choose a category and add further information below, then submit.') %]</p>
- [% END %]
+[% IF partial_token %]
+ <p id="unknown">[% loc('Please note your report has <strong>not yet been sent</strong>. Choose a category and add further information below, then submit.') %]</p>
[% END %]
[% IF js %]
diff --git a/templates/web/base/report/new/fill_in_details_text.html b/templates/web/base/report/new/fill_in_details_text.html
index 5d9716915..05527bb24 100644
--- a/templates/web/base/report/new/fill_in_details_text.html
+++ b/templates/web/base/report/new/fill_in_details_text.html
@@ -1,9 +1,6 @@
[%
IF area_ids_to_list.size != 0;
- loc('Please fill in details of the problem below. The council won\'t be able
-to help unless you leave as much detail as you can, so please describe the exact location of
-the problem (e.g. on a wall), what it is, how long it has been there, a description (and a
-photo of the problem if you have one), etc.');
+ loc('The council won&rsquo;t be able to help unless you leave as much detail as you can. Please describe the exact location of the problem (e.g. on a wall), what it is, how long it has been there, a description (and a photo of the problem if you have one), etc.');
IF category_extras;
' ' _ loc('Some categories may require additional information.');
END;
diff --git a/templates/web/eastsussex/report/new/fill_in_details_text.html b/templates/web/eastsussex/report/new/fill_in_details_text.html
deleted file mode 100644
index 3f967a72a..000000000
--- a/templates/web/eastsussex/report/new/fill_in_details_text.html
+++ /dev/null
@@ -1,10 +0,0 @@
-[%
- IF area_ids_to_list.size != 0;
- loc('East Sussex County Council won&rsquo;t be able to help unless you leave as much detail as you can. Please describe the exact location of the problem (e.g. on a wall), what it is, how long it has been there, a description (and a photo of the problem if you have one), etc.');
- IF category_extras;
- ' ' _ loc('Some categories may require additional information.');
- END;
- ELSE;
- loc('Please fill in details of the problem below.');
- END;
-%]
diff --git a/templates/web/fixmystreet-uk-councils/report/new/inline-tips.html b/templates/web/fixmystreet-uk-councils/report/new/inline-tips.html
new file mode 100644
index 000000000..12b60beeb
--- /dev/null
+++ b/templates/web/fixmystreet-uk-councils/report/new/inline-tips.html
@@ -0,0 +1,12 @@
+<div class="description_tips">
+ <h4>Tips for successful reports:</h4>
+ <ul class="do">
+ <li>Be polite</li>
+ <li>Use exact locations</li>
+ <li>Say how long the issue’s been&nbsp;present</li>
+ </ul>
+ <ul class="dont">
+ <li>Don’t leave abusive or libellous&nbsp;messages</li>
+ <li>Don’t include private contact details in the&nbsp;description</li>
+ </ul>
+</div>
diff --git a/templates/web/fixmystreet-uk-councils/report/new/sidebar.html b/templates/web/fixmystreet-uk-councils/report/new/sidebar.html
new file mode 100644
index 000000000..e69de29bb
--- /dev/null
+++ b/templates/web/fixmystreet-uk-councils/report/new/sidebar.html
diff --git a/templates/web/fixmystreet.com/report/new/inline-tips.html b/templates/web/fixmystreet.com/report/new/inline-tips.html
new file mode 100644
index 000000000..12b60beeb
--- /dev/null
+++ b/templates/web/fixmystreet.com/report/new/inline-tips.html
@@ -0,0 +1,12 @@
+<div class="description_tips">
+ <h4>Tips for successful reports:</h4>
+ <ul class="do">
+ <li>Be polite</li>
+ <li>Use exact locations</li>
+ <li>Say how long the issue’s been&nbsp;present</li>
+ </ul>
+ <ul class="dont">
+ <li>Don’t leave abusive or libellous&nbsp;messages</li>
+ <li>Don’t include private contact details in the&nbsp;description</li>
+ </ul>
+</div>
diff --git a/templates/web/fixmystreet.com/report/new/sidebar.html b/templates/web/fixmystreet.com/report/new/sidebar.html
new file mode 100644
index 000000000..e69de29bb
--- /dev/null
+++ b/templates/web/fixmystreet.com/report/new/sidebar.html
diff --git a/templates/web/fixmystreet/report/new/fill_in_details_form.html b/templates/web/fixmystreet/report/new/fill_in_details_form.html
index f474355b9..78c3f420b 100644
--- a/templates/web/fixmystreet/report/new/fill_in_details_form.html
+++ b/templates/web/fixmystreet/report/new/fill_in_details_form.html
@@ -17,30 +17,11 @@
[% PROCESS 'report/new/councils_text.html' %]
[% END %]
- [% IF c.cobrand.moniker == "fixmystreet" && report.used_map && partial_token %]
+ [% IF report.used_map && partial_token %]
<p id="unknown">[% loc('Please note your report has <strong>not yet been sent</strong>. Choose a category and add further information below, then submit.') %]</p>
[% END %]
- [% IF c.cobrand.moniker != "fixmystreet" && (c.cobrand.moniker != 'fixmybarangay' || ( c.user && c.user.from_body ) ) %]
- <div id="report-a-problem-sidebar">
- <div class="sidebar-tips">
- [% IF report.used_map AND partial_token %]
- <p id="unknown">[% loc('Please note your report has <strong>not yet been sent</strong>. Choose a category and add further information below, then submit.') %]</p>
- [% END %]
-
- <p>
- [% IF report.used_map %]
- [% INCLUDE 'report/new/fill_in_details_text.html' %]
- [% ELSE %]
- [% loc('Please fill in the form below with details of the problem, and describe the location as precisely as possible in the details box.') %]
- [% END %]
- </p>
- </div>
- <div class="sidebar-notes">
- [% INCLUDE 'report/new/notes.html' %]
- </div>
- </div>
- [% END %]
+ [% TRY %][% PROCESS 'report/new/sidebar.html' %][% CATCH file %][% END %]
[% INCLUDE 'errors.html' %]
@@ -65,20 +46,7 @@
[% END %]
<textarea rows="7" cols="26" name="detail" id="form_detail" placeholder="[% loc('Explain what’s wrong, exactly where it is, and how long it’s been there…') %]" required>[% report.detail | html %]</textarea>
- [% IF c.cobrand.moniker == "fixmystreet" %]
- <div class="description_tips">
- <h4>Tips for successful reports:</h4>
- <ul class="do">
- <li>Be polite</li>
- <li>Use exact locations</li>
- <li>Say how long the issue’s been&nbsp;present</li>
- </ul>
- <ul class="dont">
- <li>Don’t leave abusive or libellous&nbsp;messages</li>
- <li>Don’t include private contact details in the&nbsp;description</li>
- </ul>
- </div>
- [% END %]
+ [% TRY %][% PROCESS 'report/new/inline-tips.html' %][% CATCH file %][% END %]
[% IF js %]
<div id="form_category_row">
@@ -121,6 +89,8 @@
<input type="file" name="photo" id="form_photo">
[% END %]
+ [% TRY %][% PROCESS 'report/new/after_photo.html' %][% CATCH file %][% END %]
+
[% IF c.user_exists %]
[% PROCESS "report/new/form_user_loggedin.html" %]
[% ELSE %]
diff --git a/templates/web/fixmystreet/report/new/fill_in_details_text.html b/templates/web/fixmystreet/report/new/fill_in_details_text.html
deleted file mode 100644
index 05527bb24..000000000
--- a/templates/web/fixmystreet/report/new/fill_in_details_text.html
+++ /dev/null
@@ -1,10 +0,0 @@
-[%
- IF area_ids_to_list.size != 0;
- loc('The council won&rsquo;t be able to help unless you leave as much detail as you can. Please describe the exact location of the problem (e.g. on a wall), what it is, how long it has been there, a description (and a photo of the problem if you have one), etc.');
- IF category_extras;
- ' ' _ loc('Some categories may require additional information.');
- END;
- ELSE;
- loc('Please fill in details of the problem below.');
- END;
-%]
diff --git a/templates/web/fixmystreet/report/new/sidebar.html b/templates/web/fixmystreet/report/new/sidebar.html
new file mode 100644
index 000000000..083c7db70
--- /dev/null
+++ b/templates/web/fixmystreet/report/new/sidebar.html
@@ -0,0 +1,14 @@
+<div id="report-a-problem-sidebar">
+ <div class="sidebar-tips">
+ <p>
+ [% IF report.used_map %]
+ [% INCLUDE 'report/new/fill_in_details_text.html' %]
+ [% ELSE %]
+ [% loc('Please fill in the form below with details of the problem, and describe the location as precisely as possible in the details box.') %]
+ [% END %]
+ </p>
+ </div>
+ <div class="sidebar-notes">
+ [% INCLUDE 'report/new/notes.html' %]
+ </div>
+</div>
diff --git a/templates/web/oxfordshire/report/new/after_photo.html b/templates/web/oxfordshire/report/new/after_photo.html
new file mode 100644
index 000000000..bd8b7076f
--- /dev/null
+++ b/templates/web/oxfordshire/report/new/after_photo.html
@@ -0,0 +1,3 @@
+<p><small>Please be aware that you can only attach one picture so ensure that
+you provide a picture that clearly shows the location not just the fault.
+</small></p>
diff --git a/templates/web/oxfordshire/report/new/fill_in_details_text.html b/templates/web/oxfordshire/report/new/fill_in_details_text.html
deleted file mode 100644
index 065005956..000000000
--- a/templates/web/oxfordshire/report/new/fill_in_details_text.html
+++ /dev/null
@@ -1,6 +0,0 @@
-Oxfordshire County Council won’t be able to help unless you leave as much
-detail as you can. Please describe the exact location of the problem (e.g. in
-the carriageway), what it is, how long it has been there, a description and a
-photo of the problem if you have one. Please be aware that you can only attach
-one picture so ensure that you provide a picture that clearly shows the
-location not just the fault.
diff --git a/templates/web/oxfordshire/report/new/inline-tips.html b/templates/web/oxfordshire/report/new/inline-tips.html
new file mode 100644
index 000000000..810c04363
--- /dev/null
+++ b/templates/web/oxfordshire/report/new/inline-tips.html
@@ -0,0 +1,12 @@
+<div class="description_tips">
+ <h4>Tips for successful reports:</h4>
+ <ul class="do">
+ <li>Be polite</li>
+ <li>Use exact locations (e.g. carriageway)</li>
+ <li>Say how long the issue’s been&nbsp;present</li>
+ </ul>
+ <ul class="dont">
+ <li>Don’t leave abusive or libellous&nbsp;messages</li>
+ <li>Don’t include private contact details in the&nbsp;description</li>
+ </ul>
+</div>