Skip to content

Commit

Permalink
ap-5348: add partner translations
Browse files Browse the repository at this point in the history
  • Loading branch information
kmahern committed Oct 16, 2024
1 parent cbf0fae commit 603f287
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
5 changes: 3 additions & 2 deletions app/views/providers/means/payments_to_review/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@
url: providers_legal_aid_application_means_payments_to_review_path(@legal_aid_application),
method: :patch,
local: true) do |form| %>
<% individual = @legal_aid_application.applicant.has_partner_with_no_contrary_interest? ? "partner" : "client" %>
<%= page_template page_title: t(".h1-heading"), template: :basic, form: do %>
<h1 class="govuk-heading-xl"><%= page_title %></h1>
<p><%= t(".details") %></p>
<p><%= t(".details.#{individual}") %></p>
<%= form.govuk_check_boxes_fieldset :discretionary_disregards,
legend: { text: t(".h2-heading"), size: "l", tag: "h2" },
legend: { text: t(".h2-heading.#{individual}"), size: "l", tag: "h2" },
form_group: { class: @form.errors.any? ? "govuk-form-group--error" : "" } do %>
<div class="govuk-hint"><%= t(".hint") %></div>
<div class="govuk-hint"><%= t("generic.select_all_that_apply") %></div>
Expand Down
8 changes: 6 additions & 2 deletions config/locales/en/providers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1248,8 +1248,12 @@ en:
payments_to_review:
show:
h1-heading: Payments to be reviewed
details: We may be able to disregard some payments your client gets based on the rules and guidelines. These are called discretionary disregards.
h2-heading: Select if your client has received any of these payments
details:
client: We may be able to disregard some payments your client gets based on the rules and guidelines. These are called discretionary disregards.
partner: We may be able to disregard some payments your client or their partner gets based on the rules and guidelines. These are called discretionary disregards.
h2-heading:
client: Select if your client has received any of these payments
partner: Select if your client or their partner has received any of these payments
hint: These are one-off payments. Do not include any regular payments.
backdated_benefits: Backdated benefits and child maintenance payments received more than 24 months ago
compensation_for_personal_harm: Compensation, damages or ex-gratia payments for personal harm
Expand Down

0 comments on commit 603f287

Please sign in to comment.