diff --git a/app/views/profile/index.html.erb b/app/views/profile/index.html.erb index 9f1ec645..1a30a1ca 100644 --- a/app/views/profile/index.html.erb +++ b/app/views/profile/index.html.erb @@ -36,7 +36,7 @@ <% if signature %>
<%= button_to button_title(title: t('remove'), disabled_with: t('removing')), user_signature_path, method: :delete, class: 'right-0 top-0 absolute link' %> - + <%= t('your_signature') %>
<% end %> @@ -49,7 +49,7 @@ <% if initials %>
<%= button_to button_title(title: t('remove'), disabled_with: t('removing')), user_initials_path, method: :delete, class: 'right-0 top-0 absolute link' %> - + <%= t('your_initials') %>
<% end %>
diff --git a/app/views/submissions/_value.html.erb b/app/views/submissions/_value.html.erb index a0b3205d..8e6ddc9f 100644 --- a/app/views/submissions/_value.html.erb +++ b/app/views/submissions/_value.html.erb @@ -10,7 +10,7 @@ <% is_narrow = area['h'].positive? && ((area['w'] * local_assigns[:page_width]).to_f / (area['h'] * local_assigns[:page_height])) > 4.5 %>
- + <%= field['name'].presence || t('signature_field') %>
<% 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(" 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 %> - + <%= t('preview_of') %> <%= item['name'].presence || document.filename.base %>
<%= 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'] %>"> - + <%= t('page') %> <%= index + 1 %> <%= t('of') %> <%= item['name'].presence || document.filename.base %>
<% 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(" loading="lazy">
<% elsif field['type'].in?(['image', 'stamp', 'kba']) && attachments_index[value].image? %> - + <%= field['name'].presence || t(" 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")) %> - + <%= t('page') %> <%= index + 1 %> <%= t('of') %> <%= item['name'].presence || document.filename.base %>
<% if annots = document_annots_index[index] %> <%= render 'submit_form/annotations', annots: %>