From 24d28fc6129d7225588aae075e93dc7fe88329d3 Mon Sep 17 00:00:00 2001 From: Celia Collins Date: Thu, 7 Mar 2024 12:36:55 +0000 Subject: [PATCH] Add help text to maps Accessibility: maps should have text to help users who may have difficulty interacting with them --- ...ship_certificate_validation_requests_controller.rb | 1 + ..._boundary_change_validation_requests_controller.rb | 2 +- app/controllers/validation_requests_controller.rb | 4 ++++ .../edit.html.erb | 11 ++++++++--- .../show.html.erb | 6 ------ app/views/planning_applications/show.html.erb | 4 ++++ .../edit.html.erb | 5 ++++- .../show.html.erb | 3 +++ config/locales/en.yml | 8 +++++--- 9 files changed, 30 insertions(+), 14 deletions(-) diff --git a/app/controllers/ownership_certificate_validation_requests_controller.rb b/app/controllers/ownership_certificate_validation_requests_controller.rb index 556c71e5..8c0fffb1 100644 --- a/app/controllers/ownership_certificate_validation_requests_controller.rb +++ b/app/controllers/ownership_certificate_validation_requests_controller.rb @@ -3,6 +3,7 @@ class OwnershipCertificateValidationRequestsController < ValidationRequestsController before_action :set_validation_request before_action :set_planning_application + before_action :set_local_authority def show respond_to do |format| diff --git a/app/controllers/red_line_boundary_change_validation_requests_controller.rb b/app/controllers/red_line_boundary_change_validation_requests_controller.rb index 7f739c8b..2a790c8b 100644 --- a/app/controllers/red_line_boundary_change_validation_requests_controller.rb +++ b/app/controllers/red_line_boundary_change_validation_requests_controller.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true class RedLineBoundaryChangeValidationRequestsController < ValidationRequestsController - before_action :set_validation_request, :set_planning_application + before_action :set_validation_request, :set_planning_application, :set_local_authority def show respond_to do |format| diff --git a/app/controllers/validation_requests_controller.rb b/app/controllers/validation_requests_controller.rb index 61d2f723..9e8182ed 100644 --- a/app/controllers/validation_requests_controller.rb +++ b/app/controllers/validation_requests_controller.rb @@ -21,6 +21,10 @@ def set_planning_application @planning_application = Bops::PlanningApplication.find(params[:planning_application_id]) end + def set_local_authority + @local_authority = Bops::LocalAuthority.find(Current.local_authority) + end + def set_validation_request @validation_request = validation_request_model_klass.find( params[:id], params[:planning_application_id], params[:change_access_id] diff --git a/app/views/ownership_certificate_validation_requests/edit.html.erb b/app/views/ownership_certificate_validation_requests/edit.html.erb index 78c68117..afd99a3e 100644 --- a/app/views/ownership_certificate_validation_requests/edit.html.erb +++ b/app/views/ownership_certificate_validation_requests/edit.html.erb @@ -5,9 +5,11 @@

<%= t(".title") %>

- <%= @planning_application["site"]["address_1"] %>, - <%= @planning_application["site"]["address_2"] %>, - <%= @planning_application["site"]["postcode"] %> +

+ <%= @planning_application["site"]["address_1"] %>, + <%= @planning_application["site"]["address_2"] %>, + <%= @planning_application["site"]["postcode"] %> +

Planning application reference number

<%= @planning_application["reference"] %>

@@ -25,6 +27,9 @@ >
+

+ If you need this information in an alternative format, contact your case officer on <%= @local_authority["feedback_email"] %> or by telephone at <%= @local_authority["telephone_number"] %>. +

We need to confirm who owns the land for this application

diff --git a/app/views/ownership_certificate_validation_requests/show.html.erb b/app/views/ownership_certificate_validation_requests/show.html.erb index 1ea95a1e..ed425939 100644 --- a/app/views/ownership_certificate_validation_requests/show.html.erb +++ b/app/views/ownership_certificate_validation_requests/show.html.erb @@ -18,12 +18,6 @@

<%= render(FormattedContentComponent.new(text: @validation_request["reason"])) %>

-

- How you can make your application valid
-

-

- <%= @validation_request["suggestion"] %> -


<% if @validation_request["approved"] == false %> diff --git a/app/views/planning_applications/show.html.erb b/app/views/planning_applications/show.html.erb index 55c05ba6..9ad1669f 100644 --- a/app/views/planning_applications/show.html.erb +++ b/app/views/planning_applications/show.html.erb @@ -29,6 +29,10 @@

<%= @planning_application["description"] %>

+ +

+ If you need this information in an alternative format, contact your case officer on <%= @local_authority["feedback_email"] %> or by telephone at <%= @local_authority["telephone_number"] %>. +


<%= render(ConsultationStatusComponent.new(planning_application: @planning_application)) %> diff --git a/app/views/red_line_boundary_change_validation_requests/edit.html.erb b/app/views/red_line_boundary_change_validation_requests/edit.html.erb index 495179dc..0f7fe08b 100644 --- a/app/views/red_line_boundary_change_validation_requests/edit.html.erb +++ b/app/views/red_line_boundary_change_validation_requests/edit.html.erb @@ -6,7 +6,7 @@

<%= t(".title") %>

<%= t(".the_following_changes") %>

-

<%= t(".what_you_need") %>

+

<%= t(".what_you_need") %>

  • <%= t(".select_if_you") %>
  • <%= t(".if_you_disagree") %>
  • @@ -46,6 +46,9 @@ } ) %>
+

+ If you need this information in an alternative format, contact your case officer on <%= @local_authority["feedback_email"] %> or by telephone at [telephone]. +


<%= render "form" %>
diff --git a/app/views/red_line_boundary_change_validation_requests/show.html.erb b/app/views/red_line_boundary_change_validation_requests/show.html.erb index be55f806..379fc6dc 100644 --- a/app/views/red_line_boundary_change_validation_requests/show.html.erb +++ b/app/views/red_line_boundary_change_validation_requests/show.html.erb @@ -30,6 +30,9 @@ accessibility_text: "An interactive map centred on your address where the newly proposed red line boundary lines are drawn to create the site outline." } %> +

+ If you need this information in an alternative format, contact your case officer on <%= @local_authority["feedback_email"] %> or by telephone at <%= @local_authority["telephone_number"] %>. +


<% if @validation_request["approved"] == false %> diff --git a/config/locales/en.yml b/config/locales/en.yml index f10194d8..525b2e38 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -141,17 +141,19 @@ en: edit: accessibility_text_original: An interactive map centred on your address where the original red line boundary lines are drawn to create the site outline. accessibility_text_proposed: An interactive map centred on your address where the newly proposed red line boundary lines are drawn to create the site outline. - click_submit_to: Click submit to complete this action - if_you_disagree: If you disagree, write in the box provided your reason for disagreeing. + click_submit_to: submit your response + if_you_disagree: if you disagree, enter a reason to explain why you disagree if_your_response: If your response is not received by %{date} your application will be returned to you and your payment refunded. page_title: "Red line boundary change validation request #%{id} - Back-Office Planning System" proposed_red_line: Proposed red line boundary reason_change_is: Reason change is requested - select_if_you: Select if you agree or disagree with the changes made by your case officer + select_if_you: agree or disagree with the proposed changes the_following_changes: The following changes have been made to your application's red line boundary. title: Confirm changes to your application's red line boundary what_you_need: "What you need to do:" your_original_red: Your original red line boundary + show: + page_title: Confirm changes to your red line boundary replacement_document_validation_requests: edit: click_save_to: Click save or open to add the file