Browse Source

ensure copy is changed for both questions relating to how many times a property has been offered

extract to en.yml so that both questions keep identical copy in the future
pull/1401/head
Arthur Campbell 3 years ago
parent
commit
3de9047c91
  1. 6
      app/models/form/lettings/questions/offered.rb
  2. 6
      app/models/form/lettings/questions/offered_social_let.rb
  3. 3
      config/locales/en.yml

6
app/models/form/lettings/questions/offered.rb

@ -2,14 +2,14 @@ class Form::Lettings::Questions::Offered < ::Form::Question
def initialize(id, hsh, page) def initialize(id, hsh, page)
super super
@id = "offered" @id = "offered"
@check_answer_label = "Times previously offered since becoming available" @check_answer_label = I18n.t("check_answer_labels.offered")
@header = "Since becoming available for re-let, how many times has the property been previously offered?" @header = I18n.t("questions.offered")
@type = "numeric" @type = "numeric"
@width = 2 @width = 2
@check_answers_card_number = 0 @check_answers_card_number = 0
@max = 150 @max = 150
@min = 0 @min = 0
@hint_text = "This is after the last tenancy ended. If the property is being offered for let for the first time, enter 0." @hint_text = I18n.t("hints.offered")
@step = 1 @step = 1
end end
end end

6
app/models/form/lettings/questions/offered_social_let.rb

@ -2,14 +2,14 @@ class Form::Lettings::Questions::OfferedSocialLet < ::Form::Question
def initialize(id, hsh, page) def initialize(id, hsh, page)
super super
@id = "offered" @id = "offered"
@check_answer_label = "Times previously offered since becoming available" @check_answer_label = I18n.t("check_answer_labels.offered")
@header = "How many times was the property offered between becoming vacant and this letting?" @header = I18n.t("questions.offered")
@type = "numeric" @type = "numeric"
@width = 2 @width = 2
@check_answers_card_number = 0 @check_answers_card_number = 0
@max = 150 @max = 150
@min = 0 @min = 0
@hint_text = "Do not include the offer that led to this letting.This is after the last tenancy ended. If the property is being offered for let for the first time, enter 0." @hint_text = I18n.t("hints.offered")
@step = 1 @step = 1
end end
end end

3
config/locales/en.yml

@ -547,6 +547,7 @@ en:
stairowned: stairowned:
one: "What percentage of the property does the buyer now own in total?" one: "What percentage of the property does the buyer now own in total?"
other: "What percentage of the property do the buyers now own in total?" other: "What percentage of the property do the buyers now own in total?"
offered: "How many times was the property offered between becoming vacant and this letting?"
hints: hints:
location: location:
@ -559,6 +560,7 @@ en:
toggle_active: "If the date is before %{date}, select ‘From the start of the current collection period’ because the previous period has now closed." toggle_active: "If the date is before %{date}, select ‘From the start of the current collection period’ because the previous period has now closed."
bulk_upload: bulk_upload:
needstype: "General needs housing includes both self-contained and shared housing without support or specific adaptations. Supported housing can include direct access hostels, group homes, residential care and nursing homes." needstype: "General needs housing includes both self-contained and shared housing without support or specific adaptations. Supported housing can include direct access hostels, group homes, residential care and nursing homes."
offered: "Do not include the offer that led to this letting.This is after the last tenancy ended. If the property is being offered for let for the first time, enter 0."
check_answer_labels: check_answer_labels:
soctenant: soctenant:
@ -570,6 +572,7 @@ en:
stairowned: stairowned:
one: "Percentage the buyer now owns in total" one: "Percentage the buyer now owns in total"
other: "Percentage the buyers now own in total" other: "Percentage the buyers now own in total"
offered: "Times previously offered since becoming available"
warnings: warnings:
location: location:

Loading…
Cancel
Save