diff options
-rw-r--r-- | perllib/FixMyStreet/Cobrand/Bromley.pm | 1 | ||||
-rw-r--r-- | t/cobrand/bromley.t | 1 | ||||
-rw-r--r-- | templates/web/bromley/waste/services.html | 2 |
3 files changed, 4 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/Cobrand/Bromley.pm b/perllib/FixMyStreet/Cobrand/Bromley.pm index 45cafeb8d..8175138ed 100644 --- a/perllib/FixMyStreet/Cobrand/Bromley.pm +++ b/perllib/FixMyStreet/Cobrand/Bromley.pm @@ -583,6 +583,7 @@ sub bin_services_for_address { } if ($state eq 'Not Completed' || ($state eq 'Completed' && $resolution eq 'Excess Waste')) { $row->{report_allowed} = 0; + $row->{report_locked_out} = 1; } } } diff --git a/t/cobrand/bromley.t b/t/cobrand/bromley.t index 1925a44ca..dfd7cce1d 100644 --- a/t/cobrand/bromley.t +++ b/t/cobrand/bromley.t @@ -280,6 +280,7 @@ FixMyStreet::override_config { subtest 'test crew reported issue' => sub { set_fixed_time('2020-05-21T12:00:00Z'); # After sample container mix $mech->get_ok('/waste/uprn/12345'); + $mech->content_contains('A missed collection cannot be reported, please see the last collection status above.'); $mech->content_lacks('Report a mixed recycling '); restore_time(); }; diff --git a/templates/web/bromley/waste/services.html b/templates/web/bromley/waste/services.html index 41684ad8b..c417e1790 100644 --- a/templates/web/bromley/waste/services.html +++ b/templates/web/bromley/waste/services.html @@ -10,6 +10,8 @@ <input type="hidden" name="service-[% unit.service_id %]" value="1"> <input type="submit" value="Report a [% unit.service_name FILTER lower %] collection as missed" class="waste-service-descriptor waste-service-link"> </form> +[% ELSIF unit.report_locked_out %] + <span class="waste-service-descriptor">A missed collection cannot be reported, please see the last collection status above.</span> [% ELSE %] <span class="waste-service-descriptor">Please note that missed collections can only be reported within 2 working days of your scheduled collection day.</span> [% END %] |