Skip to content

Commit

Permalink
Merge pull request #7408 from ministryofjustice/ap-5376-statement-of-…
Browse files Browse the repository at this point in the history
…case-update-bullets

AP-5376: Remove first bullet if not domestic abuse
  • Loading branch information
agoldstone93 authored Nov 7, 2024
2 parents 15ddd33 + cf306be commit 56d6c99
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 10 deletions.
4 changes: 4 additions & 0 deletions app/models/proceeding.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,8 @@
<%= form.govuk_fieldset legend: { text: page_title, tag: "h1", size: "xl" } do %>

<p class="govuk-body"><%= t("generic.tell_us") %></p>
<ul class="govuk-list govuk-list--bullet govuk-!-padding-bottom-2">
<% (1..5).each do |bullet_number| %>
<li><%= t(".bullet-#{bullet_number}") %></li>
<% end %>
</ul>

<%= govuk_list @legal_aid_application.proceedings.any?(&:domestic_abuse?) ? t(".bullets_domestic_abuse") : t(".bullets"), type: :bullet %>

<%= govuk_warning_text(text: t(".warning_text")) %>

Expand Down
16 changes: 11 additions & 5 deletions config/locales/en/providers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 56d6c99

Please sign in to comment.