app/views/lcms/engine/resources/_download_form.html.erb
<div class="o-download-modal" id="downloads-modal" data-reveal> <!-- modal content -->
<div class="o-download-modal__title">
<div class="u-margin-bottom--xs">Download <%= t("resource_types.#{resource.resource_type}") %></div>
<div class="u-hr-small"></div>
</div>
<div class="o-download-modal__content">
<ul class="o-resource__list o-resource__list--icons o-resource__list--<%= resource.subject %>-base">
<% resource.download_categories.each do |k, downloads| %>
<strong><%= k %></strong>
<% indent = resource.downloads_indent category: downloads.first&.download_category %>
<% downloads.select { |d| d.is_a?(ResourceDownload) }.each do |download| %>
<%= render partial: 'lcms/engine/resources/download', locals: { download: download, resource: @resource, indent: indent } %>
<% end %>
<% end %>
</ul>
<div class="o-resource__cc u-margin-top--base u-margin-bottom--zero u-txt--download-copyright">
<%= render partial: 'lcms/engine/resources/copyright_icons_generic', locals: { resource: resource } if resource.generic? %>
<%= copyrights_text(resource) %>
</div>
</div>
<button class="close-button ub-close-button" data-close aria-label="Close modal" type="button">
<span aria-hidden="true"><i class="ub-close"></i></span>
</button>
</div>