Browse Source

stryling

pull/338/head
Kat 3 years ago
parent
commit
6ca1df6bd1
  1. 2
      app/helpers/interuption_screen_helper.rb
  2. 2
      app/views/form/page.html.erb
  3. 2
      config/forms/2021_2022.json
  4. 2
      config/locales/en.yml

2
app/helpers/interuption_screen_helper.rb

@ -11,6 +11,6 @@ module InteruptionScreenHelper
rescue StandardError
return ""
end
translation.html_safe
"<p class='govuk-body'>#{translation}</p>".html_safe
end
end

2
app/views/form/page.html.erb

@ -16,7 +16,7 @@
<%= turbo_frame_tag "case_log_form", target: "_top" do %>
<%= form_with model: @case_log, url: form_case_log_path(@case_log), method: "post" do |f| %>
<div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds-from-desktop">
<div class=<%= @page.questions[0].type == "interruption_screen" ? "govuk-grid-column-full-from-desktop" : "govuk-grid-column-two-thirds-from-desktop"%>>
<% remove_other_page_errors(@case_log, @page) %>
<%= f.govuk_error_summary %>

2
config/forms/2021_2022.json

@ -4577,7 +4577,7 @@
},
"net_income_value_check": {
"depends_on": [{ "net_income_soft_validation_triggered?": true }],
"title_text": "Net income is higher than expected based on the main tenant’s working situation",
"title_text": "Net income is outside the expected range based on the main tenant’s working situation",
"informative_text": {
"translation": "soft_validations.net_income.hint_text",
"argument": ["ecstat1", "earnings"]

2
config/locales/en.yml

@ -143,7 +143,7 @@ en:
soft_validations:
net_income:
hint_text: "This is based on the tenant’s work situation: %{ecstat1}<br>The household income you have entered is %{earnings}"
hint_text: "This is based on the tenant’s work situation: <strong>%{ecstat1}</strong><br>The household income you have entered is <strong>%{earnings}</strong>"
in_soft_min_range:
message: "Net income is lower than expected based on the main tenant’s working situation. Are you sure this is correct?"
in_soft_max_range:

Loading…
Cancel
Save