2 changed files with 29 additions and 23 deletions
@ -1,24 +1,32 @@ |
|||||||
<%= govuk_summary_list do |summary_list| %> |
<div class="govuk-grid-row"> |
||||||
<% mandatory_resources.each do |resource| %> |
<div class="govuk-grid-column-two-thirds"> |
||||||
<% summary_list.with_row do |row| %> |
<%= govuk_summary_list do |summary_list| %> |
||||||
<% row.with_key { resource.short_display_name } %> |
<% mandatory_resources.each do |resource| %> |
||||||
<% if file_exists_on_s3?(resource.download_filename) %> |
<% summary_list.with_row do |row| %> |
||||||
<% row.with_value do %> |
<% row.with_key { resource.short_display_name } %> |
||||||
<%= render DocumentListComponent.new(items: document_list_edit_component_items([resource]), label: "") %> |
<% if file_exists_on_s3?(resource.download_filename) %> |
||||||
|
<% row.with_value do %> |
||||||
|
<%= render DocumentListComponent.new(items: document_list_edit_component_items([resource]), label: "") %> |
||||||
|
<% end %> |
||||||
|
<% row.with_action( |
||||||
|
text: "Change", |
||||||
|
href: "/", |
||||||
|
) %> |
||||||
|
<% else %> |
||||||
|
<% row.with_value do %> |
||||||
|
<p class="govuk-body app-!-colour-muted">No file uploaded</p> |
||||||
|
<% end %> |
||||||
|
<% row.with_action( |
||||||
|
text: "Upload", |
||||||
|
href: "/", |
||||||
|
) %> |
||||||
|
<% end %> |
||||||
<% end %> |
<% end %> |
||||||
<% row.with_action( |
|
||||||
text: "Change", |
|
||||||
href: "/", |
|
||||||
) %> |
|
||||||
<% else %> |
|
||||||
<% row.with_value do %> |
|
||||||
<p class="govuk-body app-!-colour-muted">No file uploaded</p> |
|
||||||
<% end %> |
|
||||||
<% row.with_action( |
|
||||||
text: "Upload", |
|
||||||
href: "/", |
|
||||||
) %> |
|
||||||
<% end %> |
<% end %> |
||||||
<% end %> |
<% end %> |
||||||
<% end %> |
<div class="govuk-!-margin-bottom-6"> |
||||||
<% end %> |
<%= govuk_link_to "Add new #{mandatory_resources.first.log_type} #{text_year_range_format(mandatory_resources.first.year)} resource", href: "/" %> |
||||||
|
</div> |
||||||
|
<hr class="govuk-section-break govuk-section-break--visible govuk-section-break--m"> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
|||||||
Loading…
Reference in new issue