diff --git a/app/models/form/sales/pages/discounted_ownership_type.rb b/app/models/form/sales/pages/discounted_ownership_type.rb index 4c7ae2464..02eb8e1bd 100644 --- a/app/models/form/sales/pages/discounted_ownership_type.rb +++ b/app/models/form/sales/pages/discounted_ownership_type.rb @@ -2,6 +2,7 @@ class Form::Sales::Pages::DiscountedOwnershipType < ::Form::Page def initialize(id, hsh, subsection) super @id = "discounted_ownership_type" + @header = "Discounted ownership type" @depends_on = [{ "ownershipsch" => 2, }] diff --git a/app/models/form/sales/pages/outright_ownership_type.rb b/app/models/form/sales/pages/outright_ownership_type.rb index 3fc5ff115..297102f73 100644 --- a/app/models/form/sales/pages/outright_ownership_type.rb +++ b/app/models/form/sales/pages/outright_ownership_type.rb @@ -2,6 +2,7 @@ class Form::Sales::Pages::OutrightOwnershipType < ::Form::Page def initialize(id, hsh, subsection) super @id = "outright_ownership_type" + @header = "Outright ownership type" @depends_on = [{ "ownershipsch" => 3, }] diff --git a/app/models/form/sales/pages/shared_ownership_type.rb b/app/models/form/sales/pages/shared_ownership_type.rb index 3bc5dbdf7..90565659d 100644 --- a/app/models/form/sales/pages/shared_ownership_type.rb +++ b/app/models/form/sales/pages/shared_ownership_type.rb @@ -2,6 +2,7 @@ class Form::Sales::Pages::SharedOwnershipType < ::Form::Page def initialize(id, hsh, subsection) super @id = "shared_ownership_type" + @header = "Shared Ownership" @depends_on = [{ "ownershipsch" => 1, }] diff --git a/app/models/form/sales/questions/discounted_ownership_type.rb b/app/models/form/sales/questions/discounted_ownership_type.rb index 99e10b1db..5d19e6592 100644 --- a/app/models/form/sales/questions/discounted_ownership_type.rb +++ b/app/models/form/sales/questions/discounted_ownership_type.rb @@ -5,6 +5,8 @@ class Form::Sales::Questions::DiscountedOwnershipType < ::Form::Question @check_answer_label = "Type of discounted ownership sale" @header = "What is the type of discounted ownership sale?" @type = "radio" + @guidance_partial = "discounted_ownership_type_definitions" + @guidance_position = GuidancePosition::TOP @answer_options = ANSWER_OPTIONS @question_number = 5 end diff --git a/app/models/form/sales/questions/outright_ownership_type.rb b/app/models/form/sales/questions/outright_ownership_type.rb index 01fa77a0d..e6f535541 100644 --- a/app/models/form/sales/questions/outright_ownership_type.rb +++ b/app/models/form/sales/questions/outright_ownership_type.rb @@ -5,6 +5,8 @@ class Form::Sales::Questions::OutrightOwnershipType < ::Form::Question @check_answer_label = "Type of outright sale" @header = "What is the type of outright sale?" @type = "radio" + @guidance_partial = "outright_sale_type_definitions" + @guidance_position = GuidancePosition::TOP @answer_options = ANSWER_OPTIONS @conditional_for = { "othtype" => [12], diff --git a/app/models/form/sales/questions/shared_ownership_type.rb b/app/models/form/sales/questions/shared_ownership_type.rb index e0cb5b486..a434783a4 100644 --- a/app/models/form/sales/questions/shared_ownership_type.rb +++ b/app/models/form/sales/questions/shared_ownership_type.rb @@ -5,6 +5,8 @@ class Form::Sales::Questions::SharedOwnershipType < ::Form::Question @check_answer_label = "Type of shared ownership sale" @header = "What is the type of shared ownership sale?" @hint_text = "A shared ownership sale is when the purchaser buys up to 75% of the property value and pays rent to the Private Registered Provider (PRP) on the remaining portion" + @guidance_partial = "shared_ownership_type_definitions" + @guidance_position = GuidancePosition::TOP @type = "radio" @answer_options = answer_options @question_number = 4 diff --git a/app/views/form/guidance/_discounted_ownership_type_definitions.erb b/app/views/form/guidance/_discounted_ownership_type_definitions.erb new file mode 100644 index 000000000..0102a836a --- /dev/null +++ b/app/views/form/guidance/_discounted_ownership_type_definitions.erb @@ -0,0 +1,23 @@ +<%= govuk_details(summary_text: "Discounted ownership type definitions") do %> +

+ Right to Acquire (RTA): a discounted sale of a property built or purchased after 31 March 1997 to tenants of a private registered provider. +

+

+ Preserved Right to Buy (PRTB): a discounted sale of a property that used to be owned by a council to tenants of a private registered provider. +

+

+ Voluntary Right to Buy (VRTB): a discounted sale to tenants in this PRP owned property, as part of a pilot scheme. +

+

+ Right to Buy (RTB): a discounted sale to tenants in this council owned property. +

+

+ Rent to Buy full ownership: a sale on full ownership terms following a period of discounted rent. +

+

+ Social HomeBuy for outright purchase: a discounted sale to tenants of a private registered provider on full ownership terms. +

+

+ Any other equity loan scheme: any scheme, not covered elsewhere, in which a loan is used to purchase equity. +

+<% end %> diff --git a/app/views/form/guidance/_outright_sale_type_definitions.erb b/app/views/form/guidance/_outright_sale_type_definitions.erb new file mode 100644 index 000000000..01e5253d0 --- /dev/null +++ b/app/views/form/guidance/_outright_sale_type_definitions.erb @@ -0,0 +1,8 @@ +<%= govuk_details(summary_text: "Outright sale type definitions") do %> +

+ Outright sale: the full purchase of a property, usually with a mortgage or cash. +

+

+ Other sale: any sale which does not fit the criteria of any of the remaining options. +

+<% end %> diff --git a/app/views/form/guidance/_shared_ownership_type_definitions.erb b/app/views/form/guidance/_shared_ownership_type_definitions.erb new file mode 100644 index 000000000..95cd65533 --- /dev/null +++ b/app/views/form/guidance/_shared_ownership_type_definitions.erb @@ -0,0 +1,26 @@ +<%= govuk_details(summary_text: "Shared ownership type definitions") do %> +

+ Shared ownership: Cannot be used for homes funded through the Affordable Homes Programme 2021 to 2026. Use the 2021 model lease for these properties. +

+

+ Shared ownership 2021 model lease: Homes bought using the Affordable Homes Programme 2021 to 2026. +

+

+ Older Persons Shared Ownership: A type of shared ownership for those 55 years and over. +

+

+ Social HomeBuy shared ownership purchase: Tenants of private registered providers purchase their home at discount on Shared Ownership terms. +

+

+ Home Ownership for people with Long-Term Disabilities (HOLD): A shared ownership sale for those with long term disabilities. +

+

+ Rent to Buy shared ownership: A sale following a period of discounted rent. +

+

+ Right to Shared Ownership: A sale of a share of a rented home to a tenant using this scheme. +

+

+ London Living Rent shared ownership: A shared ownership sale following a period of discounted rent as part of the London Living Rent scheme. +

+<% end %> diff --git a/spec/models/form/sales/pages/discounted_ownership_type_spec.rb b/spec/models/form/sales/pages/discounted_ownership_type_spec.rb index 8951e3323..054f2288f 100644 --- a/spec/models/form/sales/pages/discounted_ownership_type_spec.rb +++ b/spec/models/form/sales/pages/discounted_ownership_type_spec.rb @@ -20,7 +20,7 @@ RSpec.describe Form::Sales::Pages::DiscountedOwnershipType, type: :model do end it "has the correct header" do - expect(page.header).to be_nil + expect(page.header).to eq("Discounted ownership type") end it "has the correct description" do diff --git a/spec/models/form/sales/pages/outright_ownership_type_spec.rb b/spec/models/form/sales/pages/outright_ownership_type_spec.rb index 5ca515cc9..249496d00 100644 --- a/spec/models/form/sales/pages/outright_ownership_type_spec.rb +++ b/spec/models/form/sales/pages/outright_ownership_type_spec.rb @@ -20,7 +20,7 @@ RSpec.describe Form::Sales::Pages::OutrightOwnershipType, type: :model do end it "has the correct header" do - expect(page.header).to be_nil + expect(page.header).to eq("Outright ownership type") end it "has the correct description" do diff --git a/spec/models/form/sales/pages/shared_ownership_type_spec.rb b/spec/models/form/sales/pages/shared_ownership_type_spec.rb index 09c277766..c648cea8c 100644 --- a/spec/models/form/sales/pages/shared_ownership_type_spec.rb +++ b/spec/models/form/sales/pages/shared_ownership_type_spec.rb @@ -22,7 +22,7 @@ RSpec.describe Form::Sales::Pages::SharedOwnershipType, type: :model do end it "has the correct header" do - expect(page.header).to be_nil + expect(page.header).to eq("Shared Ownership") end it "has the correct description" do