diff --git a/app/views/organisations/_organisation_list.html.erb b/app/views/organisations/_organisation_list.html.erb new file mode 100644 index 000000000..6fcb19c5c --- /dev/null +++ b/app/views/organisations/_organisation_list.html.erb @@ -0,0 +1,31 @@ +
+ + + + + + + + + + + <% organisations.map do |organisation| %> + + + + + + <% end %> + +
+ + <%= pagy.count %> total <%= title.downcase %> + +
NameRegistration numberType
+ <%= govuk_link_to organisation.name, organisation_path(organisation) %> + + <%= organisation.id %> + + <%= organisation.provider_type %> +
+
diff --git a/app/views/organisations/index.html.erb b/app/views/organisations/index.html.erb index 74fe26918..3fe0ab053 100644 --- a/app/views/organisations/index.html.erb +++ b/app/views/organisations/index.html.erb @@ -1 +1,2 @@ -<%= @organisations.first.id %> +<%= render partial: "organisation_list", locals: { organisations: @organisations, title: "Organisations", pagy: @pagy } %> +<%== render partial: "pagy/nav", locals: { pagy: @pagy, item_name: "organisations" } %>