From 7a4260e7d4c892b452b6c319959a03ee747ce9a6 Mon Sep 17 00:00:00 2001 From: Matthew Somerville Date: Thu, 25 Sep 2014 15:17:58 +0100 Subject: Remove .general-sidebar-notes, inline text instead This removes all "hanging on" sidebars apart from the main reporting a problem one, interspersing the text in the form instead. --- .../web/barnet/report/updates-sidebar-notes.html | 2 +- templates/web/bromley/report/display.html | 14 ++++--- .../bromley/report/new/fill_in_details_form.html | 47 ++++++++++------------ .../report/new/fill_in_details_form.html | 23 ++++++----- .../report/new/form_user_loggedout.html | 23 ++++++----- templates/web/fixmystreet/auth/general.html | 9 +++-- .../fixmystreet/report/new/form_user_loggedin.html | 8 ++-- .../report/new/form_user_loggedout.html | 22 +++++----- templates/web/fixmystreet/report/update-form.html | 20 ++++----- templates/web/zerotb/report/update-form.html | 6 +-- .../zurich/report/new/fill_in_details_form.html | 6 --- web/cobrands/barnet/layout.scss | 9 +---- web/cobrands/bromley/layout.scss | 11 ----- web/cobrands/eastsussex/layout.scss | 2 +- web/cobrands/oxfordshire/layout.scss | 17 -------- web/cobrands/sass/_layout.scss | 41 +++---------------- 16 files changed, 101 insertions(+), 159 deletions(-) diff --git a/templates/web/barnet/report/updates-sidebar-notes.html b/templates/web/barnet/report/updates-sidebar-notes.html index 9fff322a1..3ac015f53 100644 --- a/templates/web/barnet/report/updates-sidebar-notes.html +++ b/templates/web/barnet/report/updates-sidebar-notes.html @@ -1 +1 @@ -

[% loc( 'Please note that updates are not sent to the relevant department. If you leave your name it will be public. Your information will only be used in accordance with our privacy policy' ) %]

+

Please note that updates are not sent to the relevant department. If you leave your name it will be public. Your information will only be used in accordance with our privacy policy

diff --git a/templates/web/bromley/report/display.html b/templates/web/bromley/report/display.html index a4bd76fdc..60edd0e79 100644 --- a/templates/web/bromley/report/display.html +++ b/templates/web/bromley/report/display.html @@ -63,7 +63,7 @@ [% END %] -
+

Please note this comments box can only be used for this report.
Report a different issue

@@ -119,7 +119,10 @@ [% ELSE %] - + + [% IF field_errors.email %]

[% field_errors.email %]

[% END %] @@ -133,13 +136,12 @@ [% INCLUDE name %] -
-

[% loc('We never show your email') %]

+ + +

[% loc('Providing a password is optional, but doing so will allow you to more easily report problems, leave updates and manage your reports.') %]

- -
diff --git a/templates/web/bromley/report/new/fill_in_details_form.html b/templates/web/bromley/report/new/fill_in_details_form.html index b60935f47..e4c101a1b 100644 --- a/templates/web/bromley/report/new/fill_in_details_form.html +++ b/templates/web/bromley/report/new/fill_in_details_form.html @@ -13,23 +13,17 @@ [% PROCESS 'report/new/councils_text.html' %] [% END %] -
- - [% INCLUDE 'errors.html' %] @@ -129,13 +123,13 @@
-
-

[% loc('We never show your email address or phone number.') %]

-
- +
+

[% loc('We never show your email address or phone number.') %]

+
+
@@ -175,16 +169,19 @@
-
-

[% loc('We never show your email address or phone number.') %]

-

[% loc('Providing a password is optional, but doing so will allow you to more easily report future problems, leave updates and manage your reports.') %]

-
- +
+

[% loc('We never show your email address or phone number.') %]

+
+ +
+

[% loc('Providing a password is optional, but doing so will allow you to more easily report future problems, leave updates and manage your reports.') %]

+
+
diff --git a/templates/web/fixamingata/report/new/fill_in_details_form.html b/templates/web/fixamingata/report/new/fill_in_details_form.html index eea1da8d2..17c7c8870 100644 --- a/templates/web/fixamingata/report/new/fill_in_details_form.html +++ b/templates/web/fixamingata/report/new/fill_in_details_form.html @@ -128,15 +128,13 @@
- [% IF c.cobrand.moniker != 'fixmybarangay' || ( c.user && c.user.from_council ) %] -
-

[% loc('We never show your email address or phone number.') %]

-
- [% END %] - +
+

[% loc('We never show your email address or phone number.') %]

+
+
@@ -170,16 +168,19 @@
-
-

[% loc('We never show your email address or phone number.') %]

-

[% loc('Providing a password is optional, but doing so will allow you to more easily report problems, leave updates and manage your reports.') %]

-
- +
+

[% loc('We never show your email address or phone number.') %]

+
+ +
+

[% loc('Providing a password is optional, but doing so will allow you to more easily report problems, leave updates and manage your reports.') %]

+
+
diff --git a/templates/web/fixmystreet.com/report/new/form_user_loggedout.html b/templates/web/fixmystreet.com/report/new/form_user_loggedout.html index bfe4e9f14..05d485818 100644 --- a/templates/web/fixmystreet.com/report/new/form_user_loggedout.html +++ b/templates/web/fixmystreet.com/report/new/form_user_loggedout.html @@ -1,5 +1,7 @@
- + [% IF field_errors.email %]

[% field_errors.email %]

[% END %] @@ -37,9 +39,9 @@
-
-

[% loc('Forgotten your password?') %]

-

[% loc('Confirm by email below, providing a new password at that point. When you confirm, your password will be updated.') %]

+
+

[% loc('Forgotten your password?') %] + [% loc('Confirm by email below, providing a new password at that point. When you confirm, your password will be updated.') %]

@@ -72,16 +74,19 @@
-
-

[% loc('We never show your email address or phone number.') %]

-

[% loc('Providing a password is optional, but doing so will allow you to more easily report problems, leave updates and manage your reports.') %]

-
- +
+

[% loc('We never show your email address or phone number.') %]

+
+ +
+

[% loc('Providing a password is optional, but doing so will allow you to more easily report problems, leave updates and manage your reports.') %]

+
+
diff --git a/templates/web/fixmystreet/auth/general.html b/templates/web/fixmystreet/auth/general.html index b9d02c18b..3f3fe5b99 100644 --- a/templates/web/fixmystreet/auth/general.html +++ b/templates/web/fixmystreet/auth/general.html @@ -49,14 +49,15 @@
[% loc('No let me sign in by email') %]
-
-

[% loc('Providing a name and password is optional, but doing so will allow you to more easily report problems, leave updates and manage your reports.') %]

-
- + +
+

[% loc('Providing a name and password is optional, but doing so will allow you to more easily report problems, leave updates and manage your reports.') %]

+
+
diff --git a/templates/web/fixmystreet/report/new/form_user_loggedin.html b/templates/web/fixmystreet/report/new/form_user_loggedin.html index 8cdf98e3d..977382ae3 100644 --- a/templates/web/fixmystreet/report/new/form_user_loggedin.html +++ b/templates/web/fixmystreet/report/new/form_user_loggedin.html @@ -17,15 +17,15 @@
+ + + [% IF c.cobrand.moniker != 'fixmybarangay' || c.user.from_body %] -
+

[% loc('We never show your email address or phone number.') %]

[% END %] - - -
diff --git a/templates/web/fixmystreet/report/new/form_user_loggedout.html b/templates/web/fixmystreet/report/new/form_user_loggedout.html index a35beca24..8ae8d15f6 100644 --- a/templates/web/fixmystreet/report/new/form_user_loggedout.html +++ b/templates/web/fixmystreet/report/new/form_user_loggedout.html @@ -1,4 +1,6 @@ - + [% IF field_errors.email %]

[% field_errors.email %]

[% END %] @@ -26,9 +28,9 @@
-
-

[% loc('Forgotten your password?') %]

-

[% loc('Confirm by email below, providing a new password at that point. When you confirm, your password will be updated.') %]

+
+

[% loc('Forgotten your password?') %] + [% loc('Confirm by email below, providing a new password at that point. When you confirm, your password will be updated.') %]

@@ -51,16 +53,18 @@
-
-

[% loc('We never show your email address or phone number.') %]

-

[% loc('Providing a password is optional, but doing so will allow you to more easily report problems, leave updates and manage your reports.') %]

-
- +
+

[% loc('We never show your email address or phone number.') %]

+
+
+

[% loc('Providing a password is optional, but doing so will allow you to more easily report problems, leave updates and manage your reports.') %]

+
+
diff --git a/templates/web/fixmystreet/report/update-form.html b/templates/web/fixmystreet/report/update-form.html index add176549..bde2c84e2 100644 --- a/templates/web/fixmystreet/report/update-form.html +++ b/templates/web/fixmystreet/report/update-form.html @@ -4,7 +4,7 @@

[% loc( 'Provide an update') %]

[% IF c.cobrand.moniker != 'emptyhomes' AND c.cobrand.moniker != 'stevenage' %] -
+
[% INCLUDE 'report/updates-sidebar-notes.html' %]
[% END %] @@ -73,7 +73,9 @@ [% ELSE %] - + [% IF field_errors.email %]

[% field_errors.email %]

[% END %] @@ -100,9 +102,9 @@
-
-

[% loc('Forgotten your password?') %]

-

[% loc('Confirm by email below, providing a new password at that point. When you confirm, your password will be updated.') %]

+
+

[% loc('Forgotten your password?') %] + [% loc('Confirm by email below, providing a new password at that point. When you confirm, your password will be updated.') %]

@@ -111,17 +113,17 @@ [% INCLUDE name %] -
-

[% loc('We never show your email') %]

+ + +

[% loc('Providing a password is optional, but doing so will allow you to more easily report problems, leave updates and manage your reports.') %]

- -
+
diff --git a/templates/web/zerotb/report/update-form.html b/templates/web/zerotb/report/update-form.html index b278b5f8d..cb8ba24e4 100644 --- a/templates/web/zerotb/report/update-form.html +++ b/templates/web/zerotb/report/update-form.html @@ -1,7 +1,7 @@

[% loc( 'Report a stockout') %]

-
+
[% INCLUDE 'report/updates-sidebar-notes.html' %]
@@ -29,8 +29,8 @@ -
-

[% loc('We never show your email or name') %]

+
+

[% loc('We never show your email or name') %]

[% IF field_errors.email %] diff --git a/templates/web/zurich/report/new/fill_in_details_form.html b/templates/web/zurich/report/new/fill_in_details_form.html index 076536601..67471867a 100644 --- a/templates/web/zurich/report/new/fill_in_details_form.html +++ b/templates/web/zurich/report/new/fill_in_details_form.html @@ -91,12 +91,6 @@ [% END %] - - [% IF field_errors.name %]

[% field_errors.name %]

diff --git a/web/cobrands/barnet/layout.scss b/web/cobrands/barnet/layout.scss index a6332bbff..67b51ddcf 100644 --- a/web/cobrands/barnet/layout.scss +++ b/web/cobrands/barnet/layout.scss @@ -224,13 +224,8 @@ body.frontpage { } -.general-sidebar-notes { - left: 25.5em; - width: 14em; - font-size: 1.2em; - p { - margin-bottom: 0 !important; - } +.general-notes { + font-size: 1em; } #front-howto #front_stats div big, diff --git a/web/cobrands/bromley/layout.scss b/web/cobrands/bromley/layout.scss index f5e6e9801..8343cd040 100644 --- a/web/cobrands/bromley/layout.scss +++ b/web/cobrands/bromley/layout.scss @@ -97,17 +97,6 @@ body.frontpage { right: -480px; } -.general-sidebar-notes, -#report-a-problem-sidebar { - position: static; - width: auto; - @include box-shadow(rgba(0, 0, 0, 0), 0, 0, 0); - .sidebar-tips, - .sidebar-notes { - font-size:1em; - } -} - .ie7 .big-green-banner { right: 0; } diff --git a/web/cobrands/eastsussex/layout.scss b/web/cobrands/eastsussex/layout.scss index 68ab3b3cb..6dd3eaad8 100644 --- a/web/cobrands/eastsussex/layout.scss +++ b/web/cobrands/eastsussex/layout.scss @@ -95,7 +95,7 @@ body.mappage { } } -.general-sidebar-notes p, #report-a-problem-sidebar p, #report-a-problem-sidebar .sidebar-notes .plain-list li { +.general-notes, #report-a-problem-sidebar p, #report-a-problem-sidebar .sidebar-notes .plain-list li { font-size: 13px; line-height: 14px; } diff --git a/web/cobrands/oxfordshire/layout.scss b/web/cobrands/oxfordshire/layout.scss index c48568f1f..9b6308e09 100644 --- a/web/cobrands/oxfordshire/layout.scss +++ b/web/cobrands/oxfordshire/layout.scss @@ -82,18 +82,6 @@ body.twothirdswidthpage { } } -// show the sidebar tips and notices in the document flow, i.e., in the -// left-hand column, rather than in smaller text above the map -.general-sidebar-notes { - position: static; - width: auto; - @include box-shadow(rgba(0, 0, 0, 0), 0, 0, 0); - .sidebar-tips, - .sidebar-notes { - font-size:1em; - } -} - // To prevent font size larger interfering with the fixed Oxfordshire layout .container { width: auto; } .full-width { width: 464px; } @@ -137,15 +125,10 @@ body.mappage { .full-width { width: 377px; } .shadow-wrap { width: 377px; } - .general-sidebar-notes, #report-a-problem-sidebar { top: 1em; left: 23.5em; } - - #forgotten-pw { - left: 21.6em; - } } .ie6, .ie7 { diff --git a/web/cobrands/sass/_layout.scss b/web/cobrands/sass/_layout.scss index 05b4b6d85..4f8b9597f 100644 --- a/web/cobrands/sass/_layout.scss +++ b/web/cobrands/sass/_layout.scss @@ -743,7 +743,7 @@ textarea.form-error { @include border-radius(0 0 0.25em 0.25em); } -#report-a-problem-sidebar, .general-sidebar-notes { +#report-a-problem-sidebar { position: absolute; left: 29em; width: 15em; @@ -764,13 +764,12 @@ textarea.form-error { } } .ie6, .ie7 { - #report-a-problem-sidebar, .general-sidebar-notes { + #report-a-problem-sidebar { left: 28.5em; // 0.5em left margin gone on .content in IE6/7, so reduce this accordingly. z-index: 1; } } -.no-js .general-sidebar-notes, .no-js #report-a-problem-sidebar { position: static; width: auto; @@ -781,26 +780,9 @@ textarea.form-error { } } -// More general sidebar notes -.general-sidebar-notes { - p { - background:#eeeeee; - font-size:0.75em; - padding:0.75em; - margin:0; - &.dark { - background:#333333; - color:#ffffff; - } - } -} - -/* Adjust the above so text flow can be different from display */ -#forgotten-pw { - position: relative; - left: 26.5em; - top: -7em; - margin-bottom: -7em; // So no gap in main flow +// More general notes +.general-notes { + font-size: 0.75em; } // Frontpage @@ -1176,19 +1158,6 @@ $button_bg_col: #a1a1a1; // also search bar (tables) width:auto; } - //put the RAP notes into the main copy area - // Note: Also used for the non-JS case. - #report-a-problem-sidebar, - .general-sidebar-notes { - position: static; - width: auto; - @include box-shadow(rgba(0, 0, 0, 0) 0 0 0); - .sidebar-tips, - .sidebar-notes { - font-size:1em; - } - } - //Revert to mobile use of the .full-width class .full-width{ width: auto; -- cgit v1.2.3