-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2030 from unboxed/review-conditions
Move review conditions to different partial
- Loading branch information
Showing
3 changed files
with
117 additions
and
106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
111 changes: 111 additions & 0 deletions
111
app/views/planning_applications/review/tasks/_review_conditions.html.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,111 @@ | ||
<h2 class="app-task-list__section govuk-!-margin-top-8"> | ||
Review conditions | ||
</h2> | ||
<ul class="app-task-list__items" id="review-conditions-section"> | ||
<% if @planning_application.possibly_immune? && @planning_application.immunity_detail.reviews.evidence.any? %> | ||
<%= render( | ||
TaskListItems::Reviewing::ImmunityDetailsComponent.new( | ||
planning_application: @planning_application | ||
) | ||
) %> | ||
<% end %> | ||
<% if @planning_application.possibly_immune? && @planning_application.immunity_detail.reviews.enforcement.any? %> | ||
<%= render( | ||
TaskListItems::Reviewing::ImmunityEnforcementComponent.new( | ||
planning_application: @planning_application | ||
) | ||
) %> | ||
<% end %> | ||
<% if @planning_application.review_heads_of_terms? %> | ||
<%= render( | ||
TaskListItems::Reviewing::HeadsOfTermsComponent.new( | ||
planning_application: @planning_application | ||
) | ||
) %> | ||
<% end %> | ||
<% if @planning_application.review_permitted_development_rights? %> | ||
<%= render( | ||
TaskListItems::Reviewing::PermittedDevelopmentRightComponent.new( | ||
planning_application: @planning_application | ||
) | ||
) %> | ||
<% end %> | ||
<% if @planning_application.consideration_set.current_review %> | ||
<%= render( | ||
TaskListItems::Reviewing::ConsiderationsComponent.new( | ||
planning_application: @planning_application | ||
) | ||
) %> | ||
<% end %> | ||
<% if @planning_application.application_type.planning_conditions? %> | ||
<% if @planning_application.condition_set&.current_review&.started? %> | ||
<%= render( | ||
TaskListItems::Reviewing::ConditionsComponent.new( | ||
condition_set: @planning_application.condition_set | ||
) | ||
) %> | ||
<% end %> | ||
<% if @planning_application.pre_commencement_condition_set&.current_review&.started? %> | ||
<%= render( | ||
TaskListItems::Reviewing::ConditionsComponent.new( | ||
condition_set: @planning_application.pre_commencement_condition_set | ||
) | ||
) %> | ||
<% end %> | ||
<% end %> | ||
<% if @planning_application.application_type.informatives? %> | ||
<% if @planning_application.informative_set&.current_review&.started? %> | ||
<%= render( | ||
TaskListItems::Reviewing::InformativesComponent.new( | ||
planning_application: @planning_application | ||
) | ||
) %> | ||
<% end %> | ||
<% end %> | ||
<%= render partial: "policy_classes", locals: {planning_application: @planning_application, policy_class: @policy_class} %> | ||
<% if @planning_application.application_type.assess_against_policies? %> | ||
<%= render partial: "policy_classes_new", locals: {planning_application: @planning_application, policy_class: @policy_class} %> | ||
<% end %> | ||
<% if @planning_application.committee_decision&.current_review %> | ||
<%= render( | ||
TaskListItems::Reviewing::CommitteeComponent.new( | ||
planning_application: @planning_application | ||
) | ||
) %> | ||
<% end %> | ||
<%= render "sign_off_recommendation" %> | ||
<% if @planning_application.committee_decision.present? && @planning_application.committee_decision.recommend? %> | ||
<%= render( | ||
TaskListItems::Reviewing::NotifyCommitteeComponent.new( | ||
planning_application: @planning_application | ||
) | ||
) %> | ||
<% end %> | ||
<% if @planning_application.committee_decision.present? && @planning_application.committee_decision.recommend? %> | ||
<li class="app-task-list__item"> | ||
<span class="app-task-list__task-name"> | ||
<%= link_to_if( | ||
@planning_application.in_committee?, | ||
"Update decision notice after committee", | ||
edit_planning_application_review_recommendation_path(@planning_application, @planning_application.recommendation), | ||
aria: {describedby: "review_assessment-completed"}, | ||
class: "govuk-link" | ||
) %> | ||
</span> | ||
<div class="govuk-task-list__status app-task-list__task-tag"> | ||
<%= render( | ||
StatusTags::AddCommitteeDecisionComponent.new( | ||
planning_application: @planning_application | ||
) | ||
) %> | ||
</div> | ||
</li> | ||
<% end %> | ||
</ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters