Skip to content

Commit

Permalink
Assets heading only displays if question asked (#790)
Browse files Browse the repository at this point in the history
  • Loading branch information
hiboabd authored Jan 14, 2025
1 parent 35e9b87 commit ae8f773
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
<% return if crime_application.means_details.capital_details.will_benefit_from_trust_fund.blank? %>

<h2 class="govuk-heading-l">
<%= label_text(:assets) %>
</h2>

<%= render(
partial: 'casework/crime_applications/sections/properties',
locals: { capital_details: crime_application.means_details.capital_details }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
<% if capital_details.has_no_properties == 'yes' || capital_details.properties.present? %>
<h2 class="govuk-heading-l"><%= label_text(:assets) %></h2>
<% end %>

<% if capital_details.has_no_properties == 'yes' %>
<%= govuk_summary_card(title: label_text(:properties_title)) do %>
<%= govuk_summary_list(actions: false) do |list|
Expand Down

0 comments on commit ae8f773

Please sign in to comment.