diff options
Diffstat (limited to 'web')
-rw-r--r-- | web/cobrands/fixmystreet/staff.js | 11 | ||||
-rw-r--r-- | web/cobrands/sass/_base.scss | 6 |
2 files changed, 17 insertions, 0 deletions
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/sass/_base.scss b/web/cobrands/sass/_base.scss index abdd178e9..7f629971e 100644 --- a/web/cobrands/sass/_base.scss +++ b/web/cobrands/sass/_base.scss @@ -837,6 +837,12 @@ input.final-submit { } } +.btn--provide-update { + display: block; + width: 100%; + margin-bottom: 1em; +} + .btn--block { display: block; text-align: center; |