From 300a8f26a8a6d2841fd52ece757e375b490ec5d6 Mon Sep 17 00:00:00 2001 From: Matthew Somerville Date: Thu, 14 Sep 2023 10:29:57 +0100 Subject: [PATCH] [Buckinghamshire] Add Unauthorised Signs parish category. --- bin/buckinghamshire/add-parish-categories | 7 +++++++ data/test-asset-layers.yml | 2 +- perllib/FixMyStreet/Cobrand/Buckinghamshire.pm | 2 +- .../report/new/_category_extras_header.html | 2 +- 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/bin/buckinghamshire/add-parish-categories b/bin/buckinghamshire/add-parish-categories index 9146bf6bcbe..11ba91b732f 100755 --- a/bin/buckinghamshire/add-parish-categories +++ b/bin/buckinghamshire/add-parish-categories @@ -68,6 +68,13 @@ my $contacts = [ }, extra_fields => [ $speed_limit_q ], }, + { + category => 'Unauthorised signs', + extra_metadata => { + group => 'Road and street signs', + }, + extra_fields => [ $speed_limit_q ], + }, ]; my @parishes; diff --git a/data/test-asset-layers.yml b/data/test-asset-layers.yml index ecb6e323d22..c3407524697 100755 --- a/data/test-asset-layers.yml +++ b/data/test-asset-layers.yml @@ -194,7 +194,7 @@ buckinghamshire: found: fixmystreet.assets.buckinghamshire.speed_found not_found: fixmystreet.assets.buckinghamshire.speed_not_found no_asset_msg_id: '#js-not-a-road' - asset_category: ["Grass cutting", "Hedge problem", "Dirty signs"] + asset_category: ["Grass cutting", "Hedge problem", "Dirty signs", "Unauthorised signs"] non_interactive: true road: true asset_item: 'road' diff --git a/perllib/FixMyStreet/Cobrand/Buckinghamshire.pm b/perllib/FixMyStreet/Cobrand/Buckinghamshire.pm index 568d0d08fb9..825ee42a89b 100644 --- a/perllib/FixMyStreet/Cobrand/Buckinghamshire.pm +++ b/perllib/FixMyStreet/Cobrand/Buckinghamshire.pm @@ -826,7 +826,7 @@ around 'report_validation' => sub { sub munge_contacts_to_bodies { my ($self, $contacts, $report) = @_; - my $parish_cats = [ 'Grass cutting', 'Hedge problem', 'Dirty signs' ]; + my $parish_cats = [ 'Grass cutting', 'Hedge problem', 'Dirty signs', 'Unauthorised signs' ]; my %parish_cats = map { $_ => 1 } @$parish_cats; return unless $parish_cats{$report->category}; diff --git a/templates/web/buckinghamshire/report/new/_category_extras_header.html b/templates/web/buckinghamshire/report/new/_category_extras_header.html index 3d75ae9dcb9..b557a4b8a46 100644 --- a/templates/web/buckinghamshire/report/new/_category_extras_header.html +++ b/templates/web/buckinghamshire/report/new/_category_extras_header.html @@ -1,4 +1,4 @@ -[% IF category.match('Grass cutting|Hedge problem|Dirty signs') %] +[% IF category.match('Grass cutting|Hedge problem|Dirty signs|Unauthorised signs') %]

Help us to direct your enquiry/report to the right team first time. Some services are provided by the Parish/Town Council, and are dependent on the location/road speed limit.