From cf306be4cc162f2a48446d786fe4490a5d76f9a1 Mon Sep 17 00:00:00 2001 From: Adam Goldstone <13471320+agoldstone93@users.noreply.github.com> Date: Wed, 6 Nov 2024 16:58:06 +0000 Subject: [PATCH] AP-5376: Remove first bullet if not domestic abuse --- app/models/proceeding.rb | 4 ++++ .../statement_of_cases/show.html.erb | 7 ++----- config/locales/en/providers.yml | 16 +++++++++++----- 3 files changed, 17 insertions(+), 10 deletions(-) diff --git a/app/models/proceeding.rb b/app/models/proceeding.rb index 314a11f232..2f33354200 100644 --- a/app/models/proceeding.rb +++ b/app/models/proceeding.rb @@ -64,4 +64,8 @@ def proceeding_case_p_num def special_childrens_act? ccms_matter_code == "KPBLW" end + + def domestic_abuse? + ccms_matter_code == "MINJN" + end end diff --git a/app/views/providers/application_merits_task/statement_of_cases/show.html.erb b/app/views/providers/application_merits_task/statement_of_cases/show.html.erb index 38c44afb37..b04112a8d0 100644 --- a/app/views/providers/application_merits_task/statement_of_cases/show.html.erb +++ b/app/views/providers/application_merits_task/statement_of_cases/show.html.erb @@ -37,11 +37,8 @@ <%= form.govuk_fieldset legend: { text: page_title, tag: "h1", size: "xl" } do %>

<%= t("generic.tell_us") %>

- + + <%= govuk_list @legal_aid_application.proceedings.any?(&:domestic_abuse?) ? t(".bullets_domestic_abuse") : t(".bullets"), type: :bullet %> <%= govuk_warning_text(text: t(".warning_text")) %> diff --git a/config/locales/en/providers.yml b/config/locales/en/providers.yml index 233f99c834..1f7c38d811 100644 --- a/config/locales/en/providers.yml +++ b/config/locales/en/providers.yml @@ -616,11 +616,17 @@ en: police_notified_yes: Tell us what action they've taken (if any), including dates and the outcome statement_of_cases: show: - bullet-1: details of the latest domestic abuse incident - bullet-2: what's happened in the case so far - bullet-3: if any other parties are involved and their relationship to your client - bullet-4: why the proceedings are necessary - bullet-5: if anyone else might be able to fund the case + bullets: + - what's happened in the case so far + - if any other parties are involved and their relationship to your client + - why the proceedings are necessary + - if anyone else might be able to fund the case + bullets_domestic_abuse: + - details of the latest domestic abuse incident + - what's happened in the case so far + - if any other parties are involved and their relationship to your client + - why the proceedings are necessary + - if anyone else might be able to fund the case h1-heading: Provide a statement of case warning: Warning warning_text: You must provide a complete statement of case now. You cannot do it later.