diff --git a/app/views/collection_resources/_collection_resource_summary_list.erb b/app/views/collection_resources/_collection_resource_summary_list.erb index b64f8d41f..148c52500 100644 --- a/app/views/collection_resources/_collection_resource_summary_list.erb +++ b/app/views/collection_resources/_collection_resource_summary_list.erb @@ -1,24 +1,32 @@ -<%= govuk_summary_list do |summary_list| %> - <% mandatory_resources.each do |resource| %> - <% summary_list.with_row do |row| %> - <% row.with_key { resource.short_display_name } %> - <% if file_exists_on_s3?(resource.download_filename) %> - <% row.with_value do %> - <%= render DocumentListComponent.new(items: document_list_edit_component_items([resource]), label: "") %> +
No file uploaded
+ <% end %> + <% row.with_action( + text: "Upload", + href: "/", + ) %> + <% end %> <% end %> - <% row.with_action( - text: "Change", - href: "/", - ) %> - <% else %> - <% row.with_value do %> -No file uploaded
- <% end %> - <% row.with_action( - text: "Upload", - href: "/", - ) %> <% end %> <% end %> - <% end %> -<% end %> \ No newline at end of file +