aboutsummaryrefslogtreecommitdiffstats
path: root/templates/web
diff options
context:
space:
mode:
Diffstat (limited to 'templates/web')
-rw-r--r--templates/web/base/contact/index.html19
-rw-r--r--templates/web/bathnes/contact/index.html12
-rw-r--r--templates/web/buckinghamshire/contact/who.html48
-rw-r--r--templates/web/fixmystreet.com/contact/who.html82
4 files changed, 114 insertions, 47 deletions
diff --git a/templates/web/base/contact/index.html b/templates/web/base/contact/index.html
index 326c26ce8..f71c36fb1 100644
--- a/templates/web/base/contact/index.html
+++ b/templates/web/base/contact/index.html
@@ -1,3 +1,6 @@
+[% extra_js = [
+ version('/js/contact.js')
+] -%]
[% INCLUDE 'header.html',
title = loc('Contact Us')
robots = 'noindex,nofollow'
@@ -23,16 +26,16 @@
</p>
<blockquote>
- <p>
+ <cite>
[% IF update.anonymous %]
[% tprintf( loc('Update below added anonymously at %s'), prettify_dt( update.confirmed ) ) %]
[% ELSE %]
[% tprintf( loc('Update below added by %s at %s'), update.name, prettify_dt( update.confirmed ) ) | html %]
[% END %]
- </p>
+ </cite>
<p>
- [% update.text | html %]
+ [%~ update.text | html ~%]
</p>
</blockquote>
@@ -50,16 +53,16 @@
<blockquote>
<h2>[% problem.title_safe | html %]</h2>
- <p>
+ <cite>
[% IF problem.anonymous %]
[% tprintf( loc('Reported anonymously at %s'), prettify_dt( problem.confirmed ) ) %]
[% ELSE %]
[% tprintf( loc('Reported by %s at %s'), problem.user.name, prettify_dt( problem.confirmed ) ) | html %]
[% END %]
- </p>
+ </cite>
<p>
- [% problem.detail | html %]
+ [%~ problem.detail | html ~%]
</p>
</blockquote>
@@ -71,6 +74,8 @@
[% END %]
+ [% INCLUDE 'contact/who.html' %]
+
<label for="form_name">[% loc('Your name') %]</label>
[% IF field_errors.name %]
<div class="form-error">[% field_errors.name %]</div>
@@ -95,8 +100,6 @@
[% END %]
<input type="text" class="form-control required" name="subject" id="form_subject" value="[% subject | html %]" size="30">
- [% INCLUDE 'contact/who.html' %]
-
<label for="form_message">[% loc('Message') %]</label>
[% IF field_errors.message %]
<div class="form-error">[% field_errors.message %]</div>
diff --git a/templates/web/bathnes/contact/index.html b/templates/web/bathnes/contact/index.html
index d9947cbec..c6bca0350 100644
--- a/templates/web/bathnes/contact/index.html
+++ b/templates/web/bathnes/contact/index.html
@@ -25,16 +25,16 @@
</p>
<blockquote>
- <p>
+ <cite>
[% IF update.anonymous %]
[% tprintf( loc('Update below added anonymously at %s'), prettify_dt( update.confirmed ) ) %]
[% ELSE %]
[% tprintf( loc('Update below added by %s at %s'), update.name, prettify_dt( update.confirmed ) ) | html %]
[% END %]
- </p>
+ </cite>
<p>
- [% update.text | html %]
+ [%~ update.text | html ~%]
</p>
</blockquote>
@@ -54,16 +54,16 @@
<blockquote>
<h2>[% problem.title_safe | html %]</h2>
- <p>
+ <cite>
[% IF problem.anonymous %]
[% tprintf( loc('Reported anonymously at %s'), prettify_dt( problem.confirmed ) ) %]
[% ELSE %]
[% tprintf( loc('Reported by %s at %s'), problem.user.name, prettify_dt( problem.confirmed ) ) | html %]
[% END %]
- </p>
+ </cite>
<p>
- [% problem.detail | html %]
+ [%~ problem.detail | html ~%]
</p>
</blockquote>
diff --git a/templates/web/buckinghamshire/contact/who.html b/templates/web/buckinghamshire/contact/who.html
new file mode 100644
index 000000000..e3b045521
--- /dev/null
+++ b/templates/web/buckinghamshire/contact/who.html
@@ -0,0 +1,48 @@
+[% IF problem %]
+<h4>Topic:</h4>
+
+[% IF field_errors.dest %]
+<div class="form-error">[% field_errors.dest %]</div>
+[% END %]
+
+<div class="checkbox-group">
+ <input name="dest" id="dest_rules" type="radio" value="rules" class="required"[% IF dest AND dest == 'rules' %] checked[% END %]>
+ <label class="inline" for="dest_rules">This [% update ? 'update' : 'report' %] is abusive, contains personal information, or similar</label>
+</div>
+
+<div class="checkbox-group">
+ <input name="dest" id="dest_update" type="radio" value="update" class="required"[% IF dest AND dest == 'update' %] checked[% END %]>
+ <label class="inline" for="dest_update">I wish to report it has not been fixed yet</label>
+</div>
+
+<div class="checkbox-group">
+ <input name="dest" id="dest_council" type="radio" value="council" class="required"[% IF dest AND dest == 'council' %] checked[% END %]>
+ <label class="inline" for="dest_council">I wish to make a new report</label>
+</div>
+
+<div id="dest-error"[% IF NOT field_errors.not_for_us %] class="hidden"[% END %]>
+ <div class="form-error">You can only use this form to report inappropriate content</div>
+
+ <div class="form-error__box form-error--council[% IF dest != 'council' %] hidden[% END %]">
+ <p>
+ <strong>If you want to report a street problem</strong>, return to the
+ <a href="/">homepage</a> and enter your postcode. You can then make a report.
+ We'll send it to your council, and publish it on the site.
+ </p>
+ <p>
+ <strong>If your problem is not a street issue</strong>, or is <strong>not
+ suitable for publication on the site</strong>, then this isn't the
+ right place for it. You should find other contact details on the
+ <a href="https://www.buckscc.gov.uk/">council's website</a>.
+ </p>
+ </div>
+
+ <div class="form-error__box form-error--update[% IF dest != 'update' %] hidden[% END %]">
+ <p>
+ <strong>If you'd like to update a report</strong>, please leave an update
+ on the <a href="/report/[% problem.id %]">report’s page</a>, underneath the report details.
+ </p>
+ </div>
+</div>
+
+[% END %]
diff --git a/templates/web/fixmystreet.com/contact/who.html b/templates/web/fixmystreet.com/contact/who.html
index e16809e48..996ceeca7 100644
--- a/templates/web/fixmystreet.com/contact/who.html
+++ b/templates/web/fixmystreet.com/contact/who.html
@@ -1,12 +1,53 @@
-[% IF NOT problem %]
<h4>Topic:</h4>
[% IF field_errors.dest %]
<div class="form-error">[% field_errors.dest %]</div>
-[% ELSIF field_errors.not_for_us %]
- <div class="form-error">You can only contact the team behind FixMyStreet using our contact form</div>
+[% END %]
+
+[% IF problem %]
+<div class="checkbox-group">
+ <input name="dest" id="dest_rules" type="radio" value="rules" class="required"[% IF dest AND dest == 'rules' %] checked[% END %]>
+ <label class="inline" for="dest_rules">This [% update ? 'update' : 'report' %] breaks the <a href="/about/house-rules">House Rules</a></label>
+</div>
+<div class="checkbox-group">
+ <input name="dest" id="dest_update" type="radio" value="update" class="required"[% IF dest AND dest == 'update' %] checked[% END %]>
+ <label class="inline" for="dest_update">This report has not been fixed</label>
+</div>
+<div class="checkbox-group">
+ <input name="dest" id="dest_council" type="radio" value="council" class="required"[% IF dest AND dest == 'council' %] checked[% END %]>
+ <label class="inline" for="dest_council">I want to make a new report about a street problem</label>
+</div>
+[% ELSE %]
+<div class="checkbox-group">
+ <input name="dest" id="dest_help" type="radio" value="help" class="required"[% IF dest AND dest == 'help' %] checked[% END %]>
+ <label class="inline" for="dest_help">I need help using the site</label>
+</div>
+
+<div class="checkbox-group">
+ <input name="dest" id="dest_feedback" type="radio" value="feedback" class="required"[% IF dest AND dest == 'feedback' %] checked[% END %]>
+ <label class="inline" for="dest_feedback">I have feedback about the site</label>
+</div>
+
+<div class="checkbox-group">
+ <input name="dest" id="dest_from_council" type="radio" value="from_council" class="required"[% IF dest AND dest == 'from_council' %] checked[% END %]>
+ <label class="inline" for="dest_from_council">I am from a council and I have a question for the FixMyStreet team</label>
+</div>
+
+<div class="checkbox-group">
+ <input name="dest" id="dest_council" type="radio" value="council" class="required"[% IF dest AND dest == 'council' %] checked[% END %]>
+ <label class="inline" for="dest_council">I want to report a street problem</label>
+</div>
- [% IF dest == 'council' %]
+<div class="checkbox-group">
+ <input name="dest" id="dest_update" type="radio" value="update"[% IF dest AND dest == 'update' %] checked[% END %]>
+ <label class="inline" for="dest_update">My street problem hasn't been fixed</label>
+</div>
+[% END %]
+
+<div id="dest-error"[% IF NOT field_errors.not_for_us %] class="hidden"[% END %]>
+ <div class="form-error">You can only contact the team behind FixMyStreet using our contact form</div>
+
+ <div class="form-error__box form-error--council[% IF dest != 'council' %] hidden[% END %]">
<p>
We’re not the council: we just run this website which helps you report issues
to them.
@@ -24,7 +65,9 @@
right place for it. You should find contact details on your council's own
website.
</p>
- [% ELSIF dest == 'update' %]
+ </div>
+
+ <div class="form-error__box form-error--update[% IF dest != 'update' %] hidden[% END %]">
<p>
FixMyStreet is great for reporting problems, but we don't fix them - your
council oversees that.
@@ -46,32 +89,5 @@
you could try contacting your local councillor, using another useful mySociety site:
<a href="https://www.writetothem.com/?utm_source=fixmystreet.com&amp;utm_campaign=contact_workflow_links&amp;utm_medium=link&amp;utm_content=contact+not_fixed">WriteToThem</a>.
</p>
-
- [% END %]
-[% END %]
-
-<div class="checkbox-group">
- <input name="dest" id="dest_help" type="radio" value="help" class="required"[% IF dest AND dest == 'help' %] checked[% END %]>
- <label class="inline" for="dest_help">I need help using the site</label>
-</div>
-
-<div class="checkbox-group">
- <input name="dest" id="dest_feedback" type="radio" value="feedback" class="required"[% IF dest AND dest == 'feedback' %] checked[% END %]>
- <label class="inline" for="dest_feedback">I have feedback about the site</label>
+ </div>
</div>
-
-<div class="checkbox-group">
- <input name="dest" id="dest_from_council" type="radio" value="from_council" class="required"[% IF dest AND dest == 'from_council' %] checked[% END %]>
- <label class="inline" for="dest_from_council">I am from a council and I have a question for the FixMyStreet team</label>
-</div>
-
-<div class="checkbox-group">
- <input name="dest" id="dest_council" type="radio" value="council" class="required"[% IF dest AND dest == 'council' %] checked[% END %]>
- <label class="inline" for="dest_council">I want to report a street problem</label>
-</div>
-
-<div class="checkbox-group">
- <input name="dest" id="dest_update" type="radio" value="update"[% IF dest AND dest == 'update' %] checked[% END %]>
- <label class="inline" for="dest_update">My street problem hasn't been fixed</label>
-</div>
-[% END %]