You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
1.0 KiB
22 lines
1.0 KiB
<% item_label = format_label(@pagy.count, "scheme") %> |
|
<% title = format_title(@searched, "Supported housing schemes", current_user, item_label, @pagy.count, @organisation.name) %> |
|
|
|
<% content_for :title, title %> |
|
|
|
<%= render partial: "organisations/headings", locals: current_user.support? ? { main: @organisation.name, sub: nil } : { main: "Schemes", sub: current_user.organisation.name } %> |
|
|
|
<% if current_user.support? %> |
|
<%= render SubNavigationComponent.new( |
|
items: secondary_items(request.path, @organisation.id), |
|
) %> |
|
<% end %> |
|
|
|
<h2 class="govuk-visually-hidden">Supported housing schemes</h2> |
|
|
|
<%= render SearchComponent.new(current_user:, search_label: "Search by scheme name or code", value: @searched) %> |
|
|
|
<hr class="govuk-section-break govuk-section-break--visible govuk-section-break--m"> |
|
|
|
<%= render partial: "schemes/scheme_list", locals: { schemes: @schemes, title:, pagy: @pagy, searched: @searched, item_label:, total_count: @total_count } %> |
|
|
|
<%== render partial: "pagy/nav", locals: { pagy: @pagy, item_name: "schemes" } %>
|
|
|