diff options
author | Struan Donald <struan@exo.org.uk> | 2020-09-24 09:52:11 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2020-09-25 10:27:34 +0100 |
commit | 49a2bf517a60d71b251bdf7e23e5717c792f527d (patch) | |
tree | 589c2bc6e92baa6dd26db7fa679d502c85c03d22 | |
parent | 6aece0d14bf772aff62152e2572326be964bf161 (diff) |
[IsleOfWight] use standard confirm validation
-rw-r--r-- | perllib/FixMyStreet/Cobrand/IsleOfWight.pm | 1 | ||||
-rw-r--r-- | templates/web/isleofwight/footer_extra_js.html | 2 | ||||
-rw-r--r-- | web/cobrands/fixmystreet-uk-councils/council_validation_rules.js | 2 |
3 files changed, 4 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/Cobrand/IsleOfWight.pm b/perllib/FixMyStreet/Cobrand/IsleOfWight.pm index f6d631a78..72555b9e6 100644 --- a/perllib/FixMyStreet/Cobrand/IsleOfWight.pm +++ b/perllib/FixMyStreet/Cobrand/IsleOfWight.pm @@ -6,6 +6,7 @@ use warnings; use Moo; with 'FixMyStreet::Roles::ConfirmOpen311'; +with 'FixMyStreet::Roles::ConfirmValidation'; sub council_area_id { 2636 } sub council_area { 'Isle of Wight' } diff --git a/templates/web/isleofwight/footer_extra_js.html b/templates/web/isleofwight/footer_extra_js.html index 379ace871..490bbfe33 100644 --- a/templates/web/isleofwight/footer_extra_js.html +++ b/templates/web/isleofwight/footer_extra_js.html @@ -1,4 +1,4 @@ -[% PROCESS 'footer_extra_js_base.html' cobrand_js=1 roadworks=1 %] +[% PROCESS 'footer_extra_js_base.html' validation=1 cobrand_js=1 roadworks=1 %] [% IF bodyclass.match('mappage'); scripts.push( version('/cobrands/isleofwight/js.js'), diff --git a/web/cobrands/fixmystreet-uk-councils/council_validation_rules.js b/web/cobrands/fixmystreet-uk-councils/council_validation_rules.js index 171f200ff..98a3a68a5 100644 --- a/web/cobrands/fixmystreet-uk-councils/council_validation_rules.js +++ b/web/cobrands/fixmystreet-uk-councils/council_validation_rules.js @@ -23,6 +23,8 @@ body_validation_rules = { 'Buckinghamshire Council': confirm_validation_rules, 'Cheshire East Council': confirm_validation_rules, 'Hounslow Borough Council': confirm_validation_rules, + 'Isle of Wight Council': confirm_validation_rules, + 'Island Roads': confirm_validation_rules, 'Lincolnshire County Council': confirm_validation_rules, 'Northamptonshire County Council': { title: { |