diff options
-rw-r--r-- | templates/web/base/report/_inspect.html | 3 | ||||
-rw-r--r-- | templates/web/base/report/duplicate-no-updates.html | 2 | ||||
-rw-r--r-- | templates/web/base/report/update-form.html | 2 | ||||
-rw-r--r-- | templates/web/bromley/report/update-form.html | 2 | ||||
-rw-r--r-- | web/cobrands/fixmystreet/staff.js | 11 | ||||
-rw-r--r-- | web/cobrands/oxfordshire/base.scss | 4 | ||||
-rw-r--r-- | web/cobrands/oxfordshire/layout.scss | 4 | ||||
-rw-r--r-- | web/cobrands/sass/_base.scss | 26 | ||||
-rw-r--r-- | web/cobrands/sass/_layout.scss | 7 |
9 files changed, 51 insertions, 10 deletions
diff --git a/templates/web/base/report/_inspect.html b/templates/web/base/report/_inspect.html index b75394abd..a0c310ba4 100644 --- a/templates/web/base/report/_inspect.html +++ b/templates/web/base/report/_inspect.html @@ -1,6 +1,9 @@ [% permissions = c.user.permissions(c, problem.bodies_str) %] [% second_column = BLOCK -%] <div id="side-inspect"> + + <h2 class="inspect-form-heading">[% loc('Inspect report') %]</h2> + [% INCLUDE 'errors.html' %] <form id="report_inspect_form" method="post" action="[% c.uri_for( '/report', problem.id ) %]"> diff --git a/templates/web/base/report/duplicate-no-updates.html b/templates/web/base/report/duplicate-no-updates.html index eb9ded728..c8020a107 100644 --- a/templates/web/base/report/duplicate-no-updates.html +++ b/templates/web/base/report/duplicate-no-updates.html @@ -1,5 +1,5 @@ <div> - [% UNLESS hide_header %]<h2>[% loc( 'Provide an update') %]</h2>[% END %] + [% UNLESS hide_header %]<h2 class="update-form-heading">[% loc( 'Provide an update') %]</h2>[% END %] <p>[% loc("This report is a duplicate. Please leave updates on the original report:") %]</p> <ul class="item-list"> [% INCLUDE 'report/_item.html' item_extra_class = 'item-list__item--with-pin item-list--reports__item--selected' problem = problem.duplicate_of %] diff --git a/templates/web/base/report/update-form.html b/templates/web/base/report/update-form.html index 49d011c0e..ea7b14970 100644 --- a/templates/web/base/report/update-form.html +++ b/templates/web/base/report/update-form.html @@ -3,7 +3,7 @@ <div id="update_form"> [% IF NOT login_success AND NOT oauth_need_email %] - <h2>[% loc( 'Provide an update') %]</h2> + <h2 class="update-form-heading">[% loc( 'Provide an update') %]</h2> [% IF c.cobrand.moniker != 'stevenage' %] <div class="general-notes"> diff --git a/templates/web/bromley/report/update-form.html b/templates/web/bromley/report/update-form.html index 99f8248e3..c54fab5a5 100644 --- a/templates/web/bromley/report/update-form.html +++ b/templates/web/bromley/report/update-form.html @@ -1,5 +1,5 @@ <div id="update_form"> - <h2>[% loc( 'Provide an update') %]</h2> + <h2 class="update-form-heading">[% loc( 'Provide an update') %]</h2> [% INCLUDE 'errors.html' %] diff --git a/web/cobrands/fixmystreet/staff.js b/web/cobrands/fixmystreet/staff.js index 23d2a5a0d..b1bd9ee54 100644 --- a/web/cobrands/fixmystreet/staff.js +++ b/web/cobrands/fixmystreet/staff.js @@ -263,6 +263,17 @@ $.extend(fixmystreet.set_up, { $("form#report_inspect_form input[name=longitude]").val(latlon.lon); }); } + + // Make the "Provide an update" form toggleable, and hide it by default. + // (Inspectors will normally just use the #public_update box instead). + var $updateFormH2 = $('.update-form-heading'); + var $updateFormBtn = $('<button>').insertBefore( $updateFormH2 ); + $updateFormH2.hide().nextAll().hide(); + $updateFormBtn.addClass('btn btn--provide-update'); + $updateFormBtn.text( $updateFormH2.text() ); + $updateFormBtn.on('click', function(){ + $updateFormH2.nextAll().toggle(); + }); }, moderation: function() { diff --git a/web/cobrands/oxfordshire/base.scss b/web/cobrands/oxfordshire/base.scss index 49a1ac66c..9807acbf2 100644 --- a/web/cobrands/oxfordshire/base.scss +++ b/web/cobrands/oxfordshire/base.scss @@ -77,6 +77,10 @@ dd, p { } } +#side-inspect { + background-color: #deead2; // darker version of $oxfordshire_very_light_green +} + .btn-primary { @include button-reset( $oxfordshire_button_top, diff --git a/web/cobrands/oxfordshire/layout.scss b/web/cobrands/oxfordshire/layout.scss index 726b298ff..048b65e80 100644 --- a/web/cobrands/oxfordshire/layout.scss +++ b/web/cobrands/oxfordshire/layout.scss @@ -226,10 +226,6 @@ body.mappage { background-color: $oxfordshire_very_light_green; } -#side-inspect { - background-color: #deead2; -} - .item-list--reports h3 { color: $oxfordshire_link_colour; } diff --git a/web/cobrands/sass/_base.scss b/web/cobrands/sass/_base.scss index f7e67bdc2..7f629971e 100644 --- a/web/cobrands/sass/_base.scss +++ b/web/cobrands/sass/_base.scss @@ -600,17 +600,21 @@ body.mappage .wrapper { display: block; background-color: #f5f5f5; background-repeat: no-repeat; - color:#333; + color: #333 !important; padding:4em 2em 1em; text-transform:uppercase; font: { size:0.6875em; family: $meta-font; + weight: normal; } + line-height: 1.2em; + white-space: normal; + border-radius: 0; &:hover, &.hover { text-decoration:none; background-color:#333; - color:#fff; + color: #fff !important; } &.abuse { background-image: url($image-sprite); @@ -833,6 +837,12 @@ input.final-submit { } } +.btn--provide-update { + display: block; + width: 100%; + margin-bottom: 1em; +} + .btn--block { display: block; text-align: center; @@ -1844,6 +1854,18 @@ label .muted { } } +// The coloured sidebar column on .with-actions pages. +// On narrow screens, it becomes a full-width section. +#side-inspect { + padding: 1em; + margin: 0 -1em; + background-color: #E9F2FF; +} + +.inspect-form-heading { + margin-top: 0; +} + .inspect-section { border-top: 1px solid rgba(0, 0, 0, 0.2); padding-top: 1.5em; diff --git a/web/cobrands/sass/_layout.scss b/web/cobrands/sass/_layout.scss index 7e56d31bd..afe9fdc9a 100644 --- a/web/cobrands/sass/_layout.scss +++ b/web/cobrands/sass/_layout.scss @@ -776,6 +776,7 @@ body.authpage { border:none; a, input[type=submit] { font-size: 0.75em; + line-height: 18px; // match `body` color:#666; padding: flip(0.5em 1.5em 0.5em 0, 0.5em 0 0.5em 1.5em); text-transform:none; @@ -943,7 +944,11 @@ textarea.form-error { // The coloured sidebar column on .with-actions pages. #side-inspect { - background-color: #E9F2FF; + margin: 0; +} + +.inspect-form-heading { + display: none; } // More general notes |