Browse Source

Changes to Q5 (ownershipsch) question and hint text (#2904)

* Changes to Q5 (ownershipsch) question and hint text

* Marked hint text for removal Q5

* Update question option text

---------

Co-authored-by: Kat <54268893+kosiakkatrina@users.noreply.github.com>
pull/2908/merge
Paige-Robbins 1 week ago committed by GitHub
parent
commit
6895dbf5ea
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      app/models/form/sales/questions/ownership_scheme.rb
  2. 4
      config/locales/forms/2025/sales/setup.en.yml
  3. 4
      spec/models/form/sales/questions/ownership_scheme_spec.rb

4
app/models/form/sales/questions/ownership_scheme.rb

@ -9,8 +9,8 @@ class Form::Sales::Questions::OwnershipScheme < ::Form::Question
def answer_options
if form.start_year_2025_or_later?
{
"1" => { "value" => "Yes - a shared ownership scheme", "hint" => "When the purchaser buys an initial share of up to 75% of the property value and pays rent to the Private Registered Provider (PRP) on the remaining portion, or a subsequent staircasing transaction" },
"2" => { "value" => "Yes - a discounted ownership scheme" },
"1" => { "value" => "Shared Ownership", "hint" => "When the purchaser buys an initial share of up to 75% of the property value and pays rent to the Private Registered Provider (PRP) on the remaining portion, or a subsequent staircasing transaction" },
"2" => { "value" => "Discounted Ownership" },
}.freeze
elsif form.start_year_2024_or_later?
{

4
config/locales/forms/2025/sales/setup.en.yml

@ -36,8 +36,8 @@ en:
ownershipsch:
page_header: ""
check_answer_label: "Purchase made under ownership scheme"
hint_text: ""
question_text: "Was this purchase made through an ownership scheme?"
hint_text: "Sales logs are no longer required for outright and other sales FROM 1 APRIL 2025" #Remove this hint text for 2026
question_text: "Is this a shared ownership or a discounted ownership sale?"
staircasing:
page_header: ""

4
spec/models/form/sales/questions/ownership_scheme_spec.rb

@ -62,8 +62,8 @@ RSpec.describe Form::Sales::Questions::OwnershipScheme, type: :model do
it "has the correct answer_options" do
expect(question.answer_options).to eq({
"1" => { "value" => "Yes - a shared ownership scheme", "hint" => "When the purchaser buys an initial share of up to 75% of the property value and pays rent to the Private Registered Provider (PRP) on the remaining portion, or a subsequent staircasing transaction" },
"2" => { "value" => "Yes - a discounted ownership scheme" },
"1" => { "value" => "Shared Ownership", "hint" => "When the purchaser buys an initial share of up to 75% of the property value and pays rent to the Private Registered Provider (PRP) on the remaining portion, or a subsequent staircasing transaction" },
"2" => { "value" => "Discounted Ownership" },
})
end
end

Loading…
Cancel
Save