|
36 | 36 | ["Site constraints", "#site-constraints"],
|
37 | 37 | ["Site history", "#site-history"],
|
38 | 38 | ["Site and surroundings", "#site-and-surroundings"],
|
39 |
| - ["Your pre-application details", "#pre-application-details"], |
| 39 | + ["Considerations and advice", "#considerations-advice"], |
| 40 | + ["Policies and guidance", "#policies-guidance"], |
| 41 | + ["Requirements", "#requirements"], |
40 | 42 | ["Next steps", "#next-steps"],
|
41 | 43 | ["Disclaimer", "#disclaimer"]
|
42 | 44 | ]}
|
|
262 | 264 | No site description set.
|
263 | 265 | </p>
|
264 | 266 | <% end %>
|
| 267 | +</section> |
| 268 | + |
| 269 | +<hr class="govuk-section-break govuk-section-break--l govuk-section-break--visible"> |
| 270 | + |
| 271 | +<section id="considerations-advice"> |
| 272 | + <div class="flex-between govuk-!-margin-bottom-2"> |
| 273 | + <h2 class="govuk-heading-m">Planning considerations and advice</h2> |
| 274 | + <%= govuk_link_to "Edit", main_app.edit_planning_application_assessment_considerations_path( |
| 275 | + @planning_application, |
| 276 | + return_to: "report" |
| 277 | + ) %> |
| 278 | + </div> |
| 279 | + |
| 280 | + <p class="govuk-body"> This section includes the case officer's assessment of your proposal against relevant policy and guidance. The elements of the proposal are grouped by how acceptable they are:</p> |
| 281 | + |
| 282 | + <%= govuk_table(html_attributes: {class: "govuk-table--borderless"}) do |table| %> |
| 283 | + <% table.with_body do |body| |
| 284 | + body.with_row do |row| |
| 285 | + row.with_cell(text: "‘Supported’", header: true) |
| 286 | + row.with_cell(text: "means that the current proposal is likely to be supported") |
| 287 | + end |
| 288 | + body.with_row do |row| |
| 289 | + row.with_cell(text: "‘Needs changes’", header: true) |
| 290 | + row.with_cell(text: "means that an element of the proposal is likely to be supported subject to suggested changes") |
| 291 | + end |
| 292 | + body.with_row do |row| |
| 293 | + row.with_cell(text: "‘Does not comply’", header: true) |
| 294 | + row.with_cell(text: "means that an element of the proposal will not be acceptable and permission is likely to be refused") |
| 295 | + end |
| 296 | + end %> |
| 297 | + <% end %> |
| 298 | + |
| 299 | + <%= govuk_table(html_attributes: {id: "considerations-overview"}) do |table| %> |
| 300 | + <% table.with_head do |head| |
| 301 | + head.with_row do |row| |
| 302 | + row.with_cell(text: "Consideration") |
| 303 | + row.with_cell(text: "Element of proposal") |
| 304 | + row.with_cell(text: "Status") |
| 305 | + end |
| 306 | + end %> |
| 307 | + <% table.with_body do |body| |
| 308 | + @planning_application.considerations.each do |consideration| |
| 309 | + body.with_row do |row| |
| 310 | + row.with_cell(text: consideration.policy_area) |
| 311 | + row.with_cell(text: consideration.proposal) |
| 312 | + row.with_cell(text: render(StatusTags::PreappComponent.new(status: consideration.summary_tag))) |
| 313 | + end |
| 314 | + end |
| 315 | + end %> |
| 316 | + <% end %> |
| 317 | + |
| 318 | + <% @planning_application.considerations.group_by(&:policy_area).each do |policy_area, considerations| %> |
| 319 | + <%= govuk_summary_card(title: policy_area) do %> |
| 320 | + <% considerations.each do |consideration| %> |
| 321 | + <div class="flex-between"> |
| 322 | + <strong class="govuk-heading-s"><%= consideration.proposal %></strong> |
| 323 | + <%= govuk_link_to "Edit", main_app.edit_planning_application_assessment_considerations_path( |
| 324 | + @planning_application, |
| 325 | + return_to: "report" |
| 326 | + ) %> |
| 327 | + </div> |
| 328 | + |
| 329 | + <%= render StatusTags::PreappComponent.new(status: consideration.summary_tag) %><br> |
| 330 | + |
| 331 | + <div class="govuk-body govuk-!-margin-top-4"><strong>Relevant policies</strong><br> |
| 332 | + <ul class="govuk-list"> |
| 333 | + <% consideration.policy_references.each do |reference| %> |
| 334 | + <li class="govuk-body"> |
| 335 | + <% if reference.url.present? %> |
| 336 | + <%= govuk_link_to reference.code_and_description, reference.url %> |
| 337 | + <% else %> |
| 338 | + <%= reference.code_and_description %> |
| 339 | + <% end %> |
| 340 | + </li> |
| 341 | + <% end %> |
| 342 | + </ul> |
| 343 | + </div> |
| 344 | + |
| 345 | + <p class="govuk-body"> |
| 346 | + <%= render(FormattedContentComponent.new(text: consideration.assessment)) %> |
| 347 | + </p> |
| 348 | + <p class="govuk-body"> |
| 349 | + <%= render(FormattedContentComponent.new(text: consideration.conclusion)) %> |
| 350 | + </p> |
| 351 | + <% end %> |
| 352 | + <% end %> |
| 353 | + <% end %> |
| 354 | + |
265 | 355 | <hr class="govuk-section-break govuk-section-break--l govuk-section-break--visible">
|
| 356 | + |
| 357 | + <section id="summary-advice"> |
| 358 | + <div class="flex-between"> |
| 359 | + <h2 class="govuk-heading-m">Summary</h2> |
| 360 | + <% if @summary_of_advice&.summary_tag %> |
| 361 | + <%= govuk_link_to "Edit", main_app.edit_planning_application_assessment_assessment_detail_path( |
| 362 | + @planning_application, @summary_of_advice, category: "summary_of_advice", return_to: "report" |
| 363 | + ) %> |
| 364 | + <% else %> |
| 365 | + <%= govuk_link_to "Add outcome", main_app.new_planning_application_assessment_assessment_detail_path( |
| 366 | + @planning_application, category: "summary_of_advice", return_to: "report" |
| 367 | + ) %> |
| 368 | + <% end %> |
| 369 | + </div> |
| 370 | + |
| 371 | + <p class="govuk-body">This is the case officer's summary of the conclusions and advice.</p> |
| 372 | + <p class="govuk-body grey-border-box"> |
| 373 | + <%= @planning_application.summary_of_advice&.entry || "[none given]" %> |
| 374 | + </p> |
| 375 | + </section> |
| 376 | +</section> |
| 377 | + |
| 378 | +<hr class="govuk-section-break govuk-section-break--l govuk-section-break--visible"> |
| 379 | + |
| 380 | +<section id="policies-guidance"> |
| 381 | + <h2 class="govuk-heading-m">List of relevant policies and guidance</h2> |
| 382 | + <p class="govuk-body">You can view all relevant planning policy and guidance at <%= govuk_link_to @planning_application.local_authority.submission_guidance_url, @planning_application.local_authority.submission_guidance_url %>.</p> |
| 383 | + |
| 384 | + <% @planning_application.considerations.group_by(&:policy_area).each do |policy_area, considerations| %> |
| 385 | + <% references = considerations.map(&:policy_references).flatten %> |
| 386 | + <p class="govuk-body"><strong><%= policy_area.humanize %></strong></p> |
| 387 | + <ul class="govuk-list"> |
| 388 | + <% references.each do |reference| %> |
| 389 | + <li><%= govuk_link_to reference.description, reference.url %></li> |
| 390 | + <% end %> |
| 391 | + </ul> |
| 392 | + <% end %> |
266 | 393 | </section>
|
267 | 394 |
|
| 395 | +<hr class="govuk-section-break govuk-section-break--l govuk-section-break--visible"> |
| 396 | + |
| 397 | +<section id="requirements"> |
| 398 | + <div class="flex-between"> |
| 399 | + <h2 class="govuk-heading-m">Requirements</h2> |
| 400 | + <%= govuk_link_to "Edit", main_app.planning_application_assessment_requirements_path(@planning_application, return_to: "report") %> |
| 401 | + </div> |
| 402 | + |
| 403 | + <p class="govuk-body">Should you wish to submit an application, the following requirements are needed:</p> |
| 404 | + <% @planning_application.requirements.group_by(&:category).each do |category, requirements| %> |
| 405 | + <%= govuk_summary_card(title: category.humanize) do %> |
| 406 | + <ul class="govuk-list govuk-list--divided"> |
| 407 | + <% requirements.each do |requirement| %> |
| 408 | + <li> |
| 409 | + <p class="govuk-body"><%= govuk_link_to requirement.description, requirement.url %></p> |
| 410 | + <% if requirement.guidelines.present? %> |
| 411 | + <p class="govuk-body govuk-hint"><%= requirement.guidelines %></p> |
| 412 | + <% end %> |
| 413 | + </li> |
| 414 | + <% end %> |
| 415 | + </ul> |
| 416 | + <% end %> |
| 417 | + <% end %> |
| 418 | + <!-- TODO pdf link --> |
| 419 | +</section> |
| 420 | + |
| 421 | +<hr class="govuk-section-break govuk-section-break--l govuk-section-break--visible"> |
| 422 | + |
268 | 423 | <section id="next-steps">
|
269 | 424 | <h3 class="govuk-heading-s"><%= t(".next_steps_heading") %></h3>
|
270 | 425 |
|
|
0 commit comments