Skip to content

Commit

Permalink
AP-5231: Update SCA CYA proceeding section
Browse files Browse the repository at this point in the history
Exclude the emergency sections when a user has selected
delegated functions on an SCA proceeding type
  • Loading branch information
colinbruce committed Aug 29, 2024
1 parent 3870f4d commit c2a0fba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
) %>
<% end %>

<% if @source_application.used_delegated_functions? %>
<% if @source_application.used_delegated_functions? && !@source_application.special_children_act_proceedings? %>
<div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds">
<h2 class="govuk-heading-m"><%= t ".emergency_cost_limit" %></h2>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<%= row.with_value { proceeding.used_delegated_functions_on&.strftime("%-d %B %Y") || t(".delegated_function_details.not_used") } %>
<% end %>

<% if proceeding.used_delegated_functions? %>
<% if proceeding.used_delegated_functions? && !proceeding.special_childrens_act? %>
<%= summary_list.with_row(html_attributes: { id: "app-check-your-answers__#{proceeding.name}_emergency_level_of_service_#{proceeding.id}" }) do |row| %>
<%= row.with_key(text: t(".level_of_service.emergency.question"), classes: "govuk-!-width-one-half") %>
<%= row.with_value { proceeding.send(:emergency_level_of_service_name) } %>
Expand Down

0 comments on commit c2a0fba

Please sign in to comment.