-

+
<% if (local_assigns[:with_signature_id] || field.dig('preferences', 'reason_field_uuid').present?) && attachment = attachments_index[value] %>
@@ -34,7 +34,7 @@
<% end %>
<% elsif field['type'].in?(['image', 'initials', 'stamp', 'kba']) && attachments_index[value].image? %>
-

+
![<%= field['name'].presence || t(](<%= attachments_index[value].url %>)
" loading="lazy">
<% elsif field['type'].in?(['file', 'payment', 'image']) %>
diff --git a/app/views/submissions/show.html.erb b/app/views/submissions/show.html.erb
index a40d0c9a..eabe1cd1 100644
--- a/app/views/submissions/show.html.erb
+++ b/app/views/submissions/show.html.erb
@@ -81,7 +81,7 @@
<% document = @submission.schema_documents.find { |a| item['attachment_uuid'] == a.uuid } %>
<% if document.preview_images.first %>
-
+
<%= item['name'].presence || document.filename.base %>
@@ -105,7 +105,7 @@
<% (document.metadata.dig('pdf', 'number_of_pages') || (document.preview_images.loaded? ? preview_images_index.size : document.preview_images.size)).times do |index| %>
<% page = preview_images_index[index] || page_blob_struct.new(metadata: lazyload_metadata, url: preview_document_page_path(document.signed_uuid, "#{index}.jpg")) %>
" class="block before:border before:absolute before:top-0 before:bottom-0 before:left-0 before:right-0 before:rounded relative mb-4" style="container-type: size; aspect-ratio: <%= width = page.metadata['width'] %> / <%= height = page.metadata['height'] %>">
-
+
<% document_annots_index[index]&.each do |annot| %>
<%= render 'submissions/annotation', annot: %>
@@ -260,10 +260,10 @@
<% if field['type'].in?(%w[signature initials]) %>
-

+
![<%= field['name'].presence || t(](<%= attachments_index[value].url %>)
" loading="lazy">
<% elsif field['type'].in?(['image', 'stamp', 'kba']) && attachments_index[value].image? %>
-

+
![<%= field['name'].presence || t(](<%= attachments_index[value].url %>)
" loading="lazy">
<% elsif field['type'].in?(['file', 'payment', 'image']) %>
<% Array.wrap(value).each do |val| %>
diff --git a/app/views/submit_form/show.html.erb b/app/views/submit_form/show.html.erb
index 9e73f00d..0723870a 100644
--- a/app/views/submit_form/show.html.erb
+++ b/app/views/submit_form/show.html.erb
@@ -67,7 +67,7 @@
<% (document.metadata.dig('pdf', 'number_of_pages') || (document.preview_images.loaded? ? preview_images_index.size : document.preview_images.size)).times do |index| %>
<% page = preview_images_index[index] || page_blob_struct.new(metadata: lazyload_metadata, url: preview_document_page_path(document.signed_uuid, "#{index}.jpg")) %>
-
+
<% if annots = document_annots_index[index] %>
<%= render 'submit_form/annotations', annots: %>