Browse Source

feat: remove dynamic local auth name text from interruption screens - to be added back in later if this becomes a priority, would need some work on adding local auth name to log for supported housing logs not just leaving it in the location

pull/959/head
natdeanlewissoftwire 3 years ago
parent
commit
2aad9978c8
  1. 6
      app/helpers/interruption_screen_helper.rb
  2. 10
      config/forms/2021_2022.json
  3. 10
      config/forms/2022_2023.json
  4. 4
      config/locales/en.yml

6
app/helpers/interruption_screen_helper.rb

@ -6,11 +6,7 @@ module InterruptionScreenHelper
informative_text["arguments"].each do |argument| informative_text["arguments"].each do |argument|
value = if argument["label"] value = if argument["label"]
pre_casing_value = lettings_log.form.get_question(argument["key"], lettings_log).answer_label(lettings_log) pre_casing_value = lettings_log.form.get_question(argument["key"], lettings_log).answer_label(lettings_log)
if argument["key"] == "la" pre_casing_value.downcase
pre_casing_value
else
pre_casing_value.downcase
end
else else
lettings_log.public_send(argument["key"]) lettings_log.public_send(argument["key"])
end end

10
config/forms/2021_2022.json

@ -8430,11 +8430,6 @@
"informative_text": { "informative_text": {
"translation": "soft_validations.rent.min.hint_text", "translation": "soft_validations.rent.min.hint_text",
"arguments": [ "arguments": [
{
"key": "la",
"label": true,
"i18n_template": "la"
},
{ {
"key": "soft_min_for_period", "key": "soft_min_for_period",
"label": false, "label": false,
@ -8487,11 +8482,6 @@
"informative_text": { "informative_text": {
"translation": "soft_validations.rent.max.hint_text", "translation": "soft_validations.rent.max.hint_text",
"arguments": [ "arguments": [
{
"key": "la",
"label": true,
"i18n_template": "la"
},
{ {
"key": "soft_max_for_period", "key": "soft_max_for_period",
"label": false, "label": false,

10
config/forms/2022_2023.json

@ -8386,11 +8386,6 @@
"informative_text": { "informative_text": {
"translation": "soft_validations.rent.min.hint_text", "translation": "soft_validations.rent.min.hint_text",
"arguments": [ "arguments": [
{
"key": "la",
"label": true,
"i18n_template": "la"
},
{ {
"key": "soft_min_for_period", "key": "soft_min_for_period",
"label": false, "label": false,
@ -8443,11 +8438,6 @@
"informative_text": { "informative_text": {
"translation": "soft_validations.rent.max.hint_text", "translation": "soft_validations.rent.max.hint_text",
"arguments": [ "arguments": [
{
"key": "la",
"label": true,
"i18n_template": "la"
},
{ {
"key": "soft_max_for_period", "key": "soft_max_for_period",
"label": false, "label": false,

4
config/locales/en.yml

@ -322,10 +322,10 @@ en:
rent: rent:
min: min:
title_text: "You told us the rent is %{brent}" title_text: "You told us the rent is %{brent}"
hint_text: "The minimum rent expected for this type of property in %{la} is £%{soft_min_for_period}." hint_text: "The minimum rent expected for this type of property in this local authority is £%{soft_min_for_period}."
max: max:
title_text: "You told us the rent is %{brent}" title_text: "You told us the rent is %{brent}"
hint_text: "The maximum rent expected for this type of property in %{la} is £%{soft_max_for_period}." hint_text: "The maximum rent expected for this type of property in this local authority is £%{soft_max_for_period}."
retirement: retirement:
min: min:
title: "You told us this person is under %{age} and retired" title: "You told us this person is under %{age} and retired"

Loading…
Cancel
Save