|
|
@ -6,11 +6,12 @@ |
|
|
|
<%= render partial: "organisations/headings", locals: current_user.support? ? { main: "Supported housing schemes", sub: nil } : { main: "Supported housing schemes", sub: current_user.organisation.name } %> |
|
|
|
<%= render partial: "organisations/headings", locals: current_user.support? ? { main: "Supported housing schemes", sub: nil } : { main: "Supported housing schemes", sub: current_user.organisation.name } %> |
|
|
|
|
|
|
|
|
|
|
|
<div class="app-filter-layout" data-controller="filter-layout"> |
|
|
|
<div class="app-filter-layout" data-controller="filter-layout"> |
|
|
|
<% if SchemePolicy.new(current_user, nil).create? %> |
|
|
|
<% display_actions = SchemePolicy.new(current_user, nil).create? %> |
|
|
|
<div class="govuk-button-group app-filter-toggle govuk-!-margin-bottom-6"> |
|
|
|
<div class="govuk-button-group app-filter-toggle <%= "govuk-!-margin-bottom-6" if display_actions %>"> |
|
|
|
<%= govuk_button_link_to "Create a new supported housing scheme", new_scheme_path, html: { method: :post } %> |
|
|
|
<% if display_actions %> |
|
|
|
</div> |
|
|
|
<%= govuk_button_link_to "Create a new supported housing scheme", new_scheme_path, html: { method: :post } %> |
|
|
|
<% end %> |
|
|
|
<% end %> |
|
|
|
|
|
|
|
</div> |
|
|
|
<%= render partial: "schemes/scheme_filters" %> |
|
|
|
<%= render partial: "schemes/scheme_filters" %> |
|
|
|
<div class="app-filter-layout__content"> |
|
|
|
<div class="app-filter-layout__content"> |
|
|
|
<%= render SearchComponent.new(current_user:, search_label: "Search by postcode, scheme name, scheme code or location name", value: @searched) %> |
|
|
|
<%= render SearchComponent.new(current_user:, search_label: "Search by postcode, scheme name, scheme code or location name", value: @searched) %> |
|
|
|