aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Arter <davea@mysociety.org>2018-03-28 11:30:54 +0100
committerDave Arter <davea@mysociety.org>2018-04-10 10:42:34 +0100
commitec2ce16672f42d095e3095b24f63fc82f3b0b78c (patch)
tree813c278dbc18cff4b37f114d22963649dc2e3e0b
parent1ae18c885ff3a4afb0a78f6a3c7ab8003a2fb30b (diff)
[BANES] Rejig front page layout to put emergency text beneath postcode field
-rw-r--r--templates/web/base/around/_postcode_form_post.html0
-rw-r--r--templates/web/base/around/postcode_form.html4
-rw-r--r--templates/web/bathnes/around/_postcode_form_post.html2
-rw-r--r--templates/web/bathnes/around/intro.html6
-rw-r--r--web/cobrands/bathnes/layout.scss9
5 files changed, 16 insertions, 5 deletions
diff --git a/templates/web/base/around/_postcode_form_post.html b/templates/web/base/around/_postcode_form_post.html
new file mode 100644
index 000000000..e69de29bb
--- /dev/null
+++ b/templates/web/base/around/_postcode_form_post.html
diff --git a/templates/web/base/around/postcode_form.html b/templates/web/base/around/postcode_form.html
index c1f1bb793..52aa177a9 100644
--- a/templates/web/base/around/postcode_form.html
+++ b/templates/web/base/around/postcode_form.html
@@ -24,5 +24,9 @@
[% END %]
</form>
<a href="[% c.uri_for('/around') %]" id="geolocate_link">&hellip; [% loc('or locate me automatically') %]</a>
+
+ [% UNLESS possible_location_matches %]
+ [% INCLUDE 'around/_postcode_form_post.html' %]
+ [% END %]
</div>
</div>
diff --git a/templates/web/bathnes/around/_postcode_form_post.html b/templates/web/bathnes/around/_postcode_form_post.html
new file mode 100644
index 000000000..aef8e7b0c
--- /dev/null
+++ b/templates/web/bathnes/around/_postcode_form_post.html
@@ -0,0 +1,2 @@
+<h2 style='margin-top:1em'><a href="https://www.bathnes.gov.uk/reportit">Report other issues or make enquiries</a></h2>
+<h2>Report emergencies on 01225 39 40 41 (option 9).</h2>
diff --git a/templates/web/bathnes/around/intro.html b/templates/web/bathnes/around/intro.html
index 1bbbf2ff0..06965b0ac 100644
--- a/templates/web/bathnes/around/intro.html
+++ b/templates/web/bathnes/around/intro.html
@@ -1,5 +1 @@
-<h1>Report problems on the highway</h1>
-
-<h2>Report problems like potholes, blocked drains, faulty street lights, and cracks in pavements.</h2>
-<h2 style='margin-top:1em'>Report other issues or make enquiries using our <a href="https://www.bathnes.gov.uk/reportit">report it</a> forms.</h2>
-<h2>Report emergencies by calling 01225 39 40 41 (option 9).</h2>
+<h1>Report problems on the road</h1>
diff --git a/web/cobrands/bathnes/layout.scss b/web/cobrands/bathnes/layout.scss
index a7f2a4661..1efc1b027 100644
--- a/web/cobrands/bathnes/layout.scss
+++ b/web/cobrands/bathnes/layout.scss
@@ -45,8 +45,17 @@
h1, h2 {
color: #fff;
}
+ h1 {
+ font-weight: bold;
+ font-size: 3em;
+ }
+ h2 {
+ font-weight: normal;
+ font-size: 1.5em;
+ }
#postcodeForm {
margin-top: 0;
+ padding: 0;
}
}