Skip to content

Commit

Permalink
AP-4898: Update home address warning text
Browse files Browse the repository at this point in the history
This was duplicated from the correspondence page
but this version makes more sense for providers
inputting a home address
  • Loading branch information
colinbruce committed Mar 26, 2024
1 parent 2de8c95 commit 4c46187
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 11 deletions.
2 changes: 1 addition & 1 deletion app/views/shared/_address_lookup.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<%= form.govuk_fieldset legend: { size: "xl", tag: "h1", text: t(".heading", location:) } do %>
<%= form.govuk_text_field :postcode, label: { text: t(".label.postcode"), tag: "h2", size: "m" }, width: 10 %>
<%= form.govuk_text_field :building_number_name, label: { text: t(".label.building_number_name"), tag: "h2", size: "m" }, width: 10 %>
<%= govuk_warning_text(text: t(".helper_text")) %>
<%= govuk_warning_text(text: t(".helper_text.#{location}")) %>
<% end %>

<% if location == "home" %>
Expand Down
23 changes: 13 additions & 10 deletions config/locales/en/shared.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,28 +98,31 @@ en:
non_uk_address_link: Enter a non-UK address
submit_button: Find address
helper_text:
The address you provide is only for this application. If your client has
other certificated legal aid cases where a different address has been used,
you should review and update those records in CCMS.
home:
If your client has applied for legal aid in the past with a different home address, you will also need to update their record in CCMS.
correspondence:
The address you provide is only for this application. If your client has
other certificated legal aid cases where a different address has been used,
you should review and update those records in CCMS.
address_selection:
select_address:
heading: Select your client's %{location} address
addresses_found_html: |
%{number} addresses found for
%{number} addresses found for
<span class="govuk-!-font-weight-bold">%{postcode}</span>.
addresses_found_long_html: |
%{number} addresses found for
%{number} addresses found for
<span class="govuk-!-font-weight-bold">%{postcode}</span> and
<span class="govuk-!-font-weight-bold">%{building_name_number}</span>.
link_text: Enter an address manually
continue_button_text: Use this address
confirm_address:
heading: Confirm your client's %{location} address
addresses_found_html: |
1 address found for
1 address found for
<span class="govuk-!-font-weight-bold">%{postcode}</span>.
addresses_found_long_html: |
1 address found for
1 address found for
<span class="govuk-!-font-weight-bold">%{postcode}</span> and
<span class="govuk-!-font-weight-bold">%{building_name_number}</span>.
search_again: Search again
Expand All @@ -128,12 +131,12 @@ en:
no_address:
heading: No address found
addresses_found_html: |
We could not find an address that matches
We could not find an address that matches
<span class="govuk-!-font-weight-bold">%{postcode}</span>.
addresses_found_long_html: |
We could not find an address that matches
We could not find an address that matches
<span class="govuk-!-font-weight-bold">%{postcode}</span>
with a building number or name of
with a building number or name of
<span class="govuk-!-font-weight-bold">%{building_name_number}</span>.
paragraph_2: You can change the postcode or enter the address manually.
change_postcode: Change the postcode
Expand Down

0 comments on commit 4c46187

Please sign in to comment.