|
|
|
<% title = "Collection resources" %>
|
|
|
|
<% content_for :title, title %>
|
|
|
|
<% content_for :before_content do %>
|
|
|
|
<%= govuk_back_link(href: :back) %>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<% if display_next_year_banner? %>
|
|
|
|
<%= govuk_notification_banner(title_text: "Important") do %>
|
|
|
|
<p class="govuk-notification-banner__heading govuk-!-width-full" style="max-width: fit-content">
|
|
|
|
The <%= text_year_range_format(next_collection_start_year) %> collection resources are not yet available to users.
|
|
|
|
<p>
|
|
|
|
<%= next_year_banner_text(@mandatory_lettings_collection_resources_per_year, @mandatory_sales_collection_resources_per_year) %>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
<h1 class="govuk-heading-l"><%= title %></h1>
|
|
|
|
|
|
|
|
<% editable_collection_resource_years.each do |year| %>
|
|
|
|
<h2 class="govuk-heading-m">
|
|
|
|
Lettings <%= text_year_range_format(year) %>
|
|
|
|
</h2>
|
|
|
|
<%= render partial: "collection_resource_summary_list", locals: { mandatory_resources: @mandatory_lettings_collection_resources_per_year[year], additional_resources: @additional_lettings_collection_resources_per_year[year] } %>
|
|
|
|
<h2 class="govuk-heading-m">
|
|
|
|
Sales <%= text_year_range_format(year) %>
|
|
|
|
</h2>
|
|
|
|
<%= render partial: "collection_resource_summary_list", locals: { mandatory_resources: @mandatory_sales_collection_resources_per_year[year], additional_resources: @additional_sales_collection_resources_per_year[year] } %>
|
|
|
|
<% end %>
|