aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorHakim Cassimally <hakim@mysociety.org>2014-08-07 12:57:34 +0000
committerHakim Cassimally <hakim@mysociety.org>2014-09-16 16:35:32 +0000
commita956cb82808f01ddd5d78ff510550ba22aaf3d2a (patch)
tree3263d58bcc330b27d68fca2c2b207a938080d43f /templates
parentfb007dcd9047268896b04b0ee08f7a9822c8d63b (diff)
[EastSussex] tweaks after comments from ESCC
- change front-page text - rename Category to Type By overriding report/new/category template snippet. This is hacked in (including substitution of the "-- Pick a category --" text, as not sure how to simply do this as a cobrand-specific translation. - hide footer on mobile view - pothole field input and display This is a temporary request, which we hope will be superseded by full integration in due course. A command is documented in the cobrand to set the "extra" on the contact info for the Potholes category. This is then displayed by the UI. The default process_extras places it in extra, for potential future processing. As this is a temporary fix, we are calling this field "detail_size", as this is automatically included in "Details" and therefore also sent in the email. (This means that we may need to update data later on to call this "pothole_size" or similar in future?) - contrast tweaks (Via request from Matt Tooke at ESCC.) Not all handled precisely as he suggests: * spacing of button nav -- more or less as suggested, but tweaks for the <span> selected button, and reduced padding on non-frontpage. * sign-in buttons: fixed using CSS for .green-btn instead of adding HTML class throughout. * mobile-footer: edited <footer> css, as suggested by Dave Arter. - revert problematic CSS (breaks map report page) - Remove spurious "FixMyStreet" button - frontpage subheading wording
Diffstat (limited to 'templates')
-rw-r--r--templates/web/eastsussex/around/intro.html4
-rw-r--r--templates/web/eastsussex/footer.html.template2
-rw-r--r--templates/web/eastsussex/header.html.template5
-rw-r--r--templates/web/eastsussex/report/new/category.html18
4 files changed, 24 insertions, 5 deletions
diff --git a/templates/web/eastsussex/around/intro.html b/templates/web/eastsussex/around/intro.html
new file mode 100644
index 000000000..b3f403087
--- /dev/null
+++ b/templates/web/eastsussex/around/intro.html
@@ -0,0 +1,4 @@
+ <h1>Report and view street and road problems </h1>
+ <h2>
+ (including potholes, broken paving slabs and street lighting)
+ </h2>
diff --git a/templates/web/eastsussex/footer.html.template b/templates/web/eastsussex/footer.html.template
index e98ea7168..b5b1a8ac6 100644
--- a/templates/web/eastsussex/footer.html.template
+++ b/templates/web/eastsussex/footer.html.template
@@ -7,7 +7,7 @@
<div class="nav-wrapper clearfix">
<div class="main-menu-wrapper">
<div class="main-menu">
- <ul class="clearfix" id="mobile-menu">
+ <ul class="clearfix button-nav" id="mobile-menu">
<li class="home"><[% IF c.req.uri.path == '/' %]span[% ELSE %]a href="/"[% END %] class="report-a-problem-btn"
>[% "Report" %]</[% c.req.uri.path == '/' ? 'span' : 'a' %]></li>[%
%]<li><[% IF c.req.uri.path == '/my' OR ( c.req.uri.path == '/auth' AND c.req.params.r == 'my' ) %]span[% ELSE %]a href="/my"[% END
diff --git a/templates/web/eastsussex/header.html.template b/templates/web/eastsussex/header.html.template
index c7fda68f4..20e3b9417 100644
--- a/templates/web/eastsussex/header.html.template
+++ b/templates/web/eastsussex/header.html.template
@@ -28,10 +28,7 @@
<div class="container" id="nav-container">
<nav id="breadcrumb_breadcrumbTrail">
- <ol class="breadcrumb screen large">
- <li>
- <a href="/">FixMyStreet</a>
- </li>
+ <ol class="button-nav application-nav screen">
<li class="home"><[% IF c.req.uri.path == '/' %]span[% ELSE %]a href="/"[% END %] class="report-a-problem-btn"
>[% "Report" %]</[% c.req.uri.path == '/' ? 'span' : 'a' %]></li>[%
%]<li><[% IF c.req.uri.path == '/my' OR ( c.req.uri.path == '/auth' AND c.req.params.r == 'my' ) %]span[% ELSE %]a href="/my"[% END
diff --git a/templates/web/eastsussex/report/new/category.html b/templates/web/eastsussex/report/new/category.html
new file mode 100644
index 000000000..1759f450f
--- /dev/null
+++ b/templates/web/eastsussex/report/new/category.html
@@ -0,0 +1,18 @@
+[% FILTER collapse %]
+[% IF category_options.size %]
+ [% IF category;
+ category = category | lower;
+ END; %]
+ <label for='form_category' id="form_category_label">
+ Type
+ </label>
+ <select name='category' id='form_category'[% ' onchange="form_category_onchange()"' IF category_extras.size %]>
+ [% FOREACH cat_op IN category_options %]
+ [% cat_op_lc = cat_op | lower %]
+ [% IF loop.first; cat_op = '-- Pick a type --'; END %]
+ <option value='[% cat_op | html %]'[% ' selected' IF report.category == cat_op || category == cat_op_lc || (category_options.size == 2 AND loop.last) -%]
+ >[% IF loop.first %][% cat_op %][% ELSE %][% cat_op | html %][% END %]</option>
+ [% END %]
+ </select>
+[% END %]
+[% END -%]