diff --git a/app/components/planning_applications/assessment/assessment_report_component.html.erb b/app/components/planning_applications/assessment/assessment_report_component.html.erb index bd0912a7f..0bfbe6f38 100644 --- a/app/components/planning_applications/assessment/assessment_report_component.html.erb +++ b/app/components/planning_applications/assessment/assessment_report_component.html.erb @@ -56,11 +56,9 @@ PlanningApplications::ImmunityDetailsAssessmentComponent.new(planning_application: planning_application, evidence_groups: immunity_detail.evidence_groups) ) %>

On the balance of probabilities, is the development immune from enforcement action?

-

- <%= review_immunity_detail.decision %>
- <%= review_immunity_detail.decision_reason %> -

-

<%= review_immunity_detail.summary %>

+

Decision: <%= review_immunity_detail.decision %>

+

Reason: <%= review_immunity_detail.decision_reason %>

+

Summary: <%= review_immunity_detail.summary %>

<% end %> <% if permitted_development_right.persisted? %> diff --git a/app/components/planning_applications/immunity_details_assessment_component.html.erb b/app/components/planning_applications/immunity_details_assessment_component.html.erb index b66581785..55ef0af06 100644 --- a/app/components/planning_applications/immunity_details_assessment_component.html.erb +++ b/app/components/planning_applications/immunity_details_assessment_component.html.erb @@ -1,10 +1,12 @@
-

+

Immunity from enforcement

<%= render(PlanningApplications::ImmunityDetailsComponent.new(immunity_details: planning_application.immune_proposal_details)) %> +

Consideration of evidence

+

Assessment summary — Evidence of immunity

-
- <% for evidence_group in evidence_groups %> -
-

- <%= govuk_link_to sanitize("#{evidence_group.name} (#{evidence_group.documents.count})
#{evidence_group.date_range}"), new_planning_application_assessment_immunity_detail_path(planning_application) + "#accordion-default-heading-#{evidence_group.id}", no_underline: true %> -

- <% if evidence_group.missing_evidence? %> -
- + <% evidence_groups.each do |evidence_group| %> +
+
+
+

+ <%= "#{evidence_group.name} (#{evidence_group.documents.count})" %> +
+ <%= evidence_group.date_range.to_s %> +

+ <% if evidence_group.missing_evidence? %> +
+ +
+ <% end %> +
- <% end %> -
-
+
+
+ <% evidence_group.documents.each do |document| %> +
+
+ Document +
+
+ <%= document.numbers %> + <%= helpers.link_to_document document.numbers, document %> +
+
+ <% end %> +
+

+ Relevant dates: <%= evidence_group.date_range %> +

+ + <% if applicant_comment = evidence_group.applicant_comment %> + <%= bops_ticket_panel(colour: "grey", classes: %w[govuk-!-margin-bottom-2]) do |ticket| %> + <% ticket.with_body { applicant_comment } %> + <% ticket.with_footer { "By applicant" } %> + <% end %> + <% end %> + + <% if comment = evidence_group.last_comment %> + <%= bops_ticket_panel(colour: "yellow", classes: %w[govuk-!-margin-bottom-2]) do |ticket| %> + <% ticket.with_body { comment.text } %> + <% ticket.with_footer { comment.information } %> + <% end %> + <% end %> +
+
<% end %>
diff --git a/app/components/planning_applications/immunity_details_assessment_component.rb b/app/components/planning_applications/immunity_details_assessment_component.rb index 7116284fd..5fc496cba 100644 --- a/app/components/planning_applications/immunity_details_assessment_component.rb +++ b/app/components/planning_applications/immunity_details_assessment_component.rb @@ -10,6 +10,7 @@ def initialize(planning_application:, evidence_groups:) end delegate :immunity_detail, to: :planning_application + delegate :bops_ticket_panel, to: :helpers attr_reader :planning_application, :evidence_groups end diff --git a/app/components/planning_applications/immunity_details_component.html.erb b/app/components/planning_applications/immunity_details_component.html.erb index 2463b4264..bce470265 100644 --- a/app/components/planning_applications/immunity_details_component.html.erb +++ b/app/components/planning_applications/immunity_details_component.html.erb @@ -1,13 +1,23 @@ -

Applicant information

-