diff --git a/app/models/form/lettings/pages/location.rb b/app/models/form/lettings/pages/location.rb index f20ca30d5..2c040661a 100644 --- a/app/models/form/lettings/pages/location.rb +++ b/app/models/form/lettings/pages/location.rb @@ -7,6 +7,7 @@ class Form::Lettings::Pages::Location < ::Form::Page "scheme_has_multiple_locations?" => true, }, ] + @header = "Location" @next_unresolved_page_id = :check_answers end diff --git a/app/models/form/lettings/questions/location_id.rb b/app/models/form/lettings/questions/location_id.rb index 6e5ed3dc0..62ee0d218 100644 --- a/app/models/form/lettings/questions/location_id.rb +++ b/app/models/form/lettings/questions/location_id.rb @@ -13,6 +13,7 @@ class Form::Lettings::Questions::LocationId < ::Form::Question } @question_number = 10 @disable_clearing_if_not_routed_or_dynamic_answer_options = true + @top_guidance_partial = "finding_location" end def answer_options diff --git a/app/views/form/guidance/_finding_location.erb b/app/views/form/guidance/_finding_location.erb new file mode 100644 index 000000000..826b62daa --- /dev/null +++ b/app/views/form/guidance/_finding_location.erb @@ -0,0 +1,4 @@ +<%= govuk_details(summary_text: "What is a location?") do %> +
A location is a postcode where supported housing is provided under a scheme. A scheme can have multiple locations, and a location can have multiple units at the same postcode.
+<%= govuk_link_to("Read more about how schemes and locations", scheme_changes_path) %>
+<% end %> diff --git a/spec/models/form/lettings/pages/location_spec.rb b/spec/models/form/lettings/pages/location_spec.rb index 659a4dd26..65bca4636 100644 --- a/spec/models/form/lettings/pages/location_spec.rb +++ b/spec/models/form/lettings/pages/location_spec.rb @@ -26,7 +26,7 @@ RSpec.describe Form::Lettings::Pages::Location, type: :model do end it "has the correct header" do - expect(page.header).to be_nil + expect(page.header).to eq("Location") end it "has the correct description" do