|
|
|
@ -12,9 +12,9 @@
|
|
|
|
|
<p class="govuk-body">This organisation does not currently have any housing providers.</p> |
|
|
|
|
<% end %> |
|
|
|
|
<% if current_user.support? %> |
|
|
|
|
<%= govuk_button_link_to "Add a housing provider", add_housing_provider_organisation_path(organisation_id: @organisation.id), html: { method: :get } %> |
|
|
|
|
<%= govuk_button_link_to "Add a housing provider", housing_providers_add_organisation_path(organisation_id: @organisation.id), html: { method: :get } %> |
|
|
|
|
<% elsif current_user.data_coordinator? %> |
|
|
|
|
<%= govuk_button_link_to "Add a housing provider", add_housing_provider_organisation_path, html: { method: :get } %> |
|
|
|
|
<%= govuk_button_link_to "Add a housing provider", housing_providers_add_organisation_path, html: { method: :get } %> |
|
|
|
|
<% end %> |
|
|
|
|
<% if @total_count != 0 %> |
|
|
|
|
<%= render SearchComponent.new(current_user:, search_label: "Search for a housing provider", value: @searched) %> |
|
|
|
|