<%= svg_icon('download', class: 'w-5 h-5 max-sm:w-4 max-sm:h-4 stroke-2') %>
<%= t('download') %>
@@ -82,7 +82,7 @@
<% elsif !submission.archived_at? && !template&.archived_at? && !submission.expired? && !submitter.declined_at? %>
<% if current_user.email == submitter.email %>
<% else %>
- <%= render 'shared/clipboard_copy', text: submit_form_url(slug: submitter.slug, host: form_link_host), class: 'btn btn-sm max-sm:normal-case btn-neutral text-white md:w-36 flex z-[1]', icon_class: 'w-6 h-6 max-sm:w-[18px] max-sm:h-[18px] text-white', copy_title: t('copy_link').length < 10 ? t('copy_link') : t('copy'), copy_title_md: t('link'), copied_title_md: t('copied') %>
+ <%= render 'shared/clipboard_copy', text: submit_form_url(slug: submitter.slug, host: form_link_host), class: 'btn btn-sm max-sm:text-[13px] btn-neutral text-white md:w-36 flex z-[1]', icon_class: 'w-6 h-6 max-sm:w-[18px] max-sm:h-[18px] text-white', copy_title: t('copy_link').length < 10 ? t('copy_link') : t('copy'), copy_title_md: t('link'), copied_title_md: t('copied') %>
<% end %>
<% end %>
@@ -119,13 +119,13 @@
<% if is_submission_completed %>
<% latest_submitter = submitters.select(&:completed_at?).max_by(&:completed_at) %>
-
+
<%= t(latest_submitter.status) %>
<% elsif submission.expired? %>
-
+
<%= t('expired') %>
@@ -158,7 +158,7 @@
<% if submitter.completed_at? && !is_submission_completed %>
-
+
<%= svg_icon('download', class: 'w-4 h-4 stroke-2') %>
<%= t('download') %>
@@ -171,14 +171,14 @@
<% elsif !template&.archived_at? && !submission.archived_at? && !is_submission_completed && !submission.expired? && !submitter.declined_at? %>
<% if current_user.email == submitter.email %>
-
+
<%= svg_icon('writing_sign', class: "w-4 h-4 stroke-2 #{'md:hidden' if t('sign_now').length >= 12}") %>
<%= t('sign_now') %>
<% else %>
- <%= render 'shared/clipboard_copy', text: submit_form_url(slug: submitter.slug, host: form_link_host), class: 'relative btn btn-xs max-sm:normal-case text-xs btn-neutral text-white w-12 md:w-36 flex z-[1]', icon_class: 'w-4 h-4 text-white', copy_title: t('copy_link') %>
+ <%= render 'shared/clipboard_copy', text: submit_form_url(slug: submitter.slug, host: form_link_host), class: 'relative btn btn-xs text-xs btn-neutral text-white w-12 md:w-36 flex z-[1]', icon_class: 'w-4 h-4 text-white', copy_title: t('copy_link') %>
<% end %>
<% end %>
@@ -192,7 +192,7 @@
<% latest_submitter = submitters.select(&:completed_at?).max_by(&:completed_at) %>
-
+
<%= svg_icon('download', class: 'w-5 h-5 max-sm:w-4 max-sm:h-4 stroke-2') %>
<%= t('download') %>
@@ -206,7 +206,7 @@
<% elsif !template&.archived_at? && !submission.archived_at? && !submission.expired? && (sign_now_submitter = submitters.find { |item| !item.completed_at? && !item.declined_at? && current_user.email == item.email }) %>
<% end %>
diff --git a/app/views/templates/_template.html.erb b/app/views/templates/_template.html.erb
index b3667f6d2..d677facb4 100644
--- a/app/views/templates/_template.html.erb
+++ b/app/views/templates/_template.html.erb
@@ -28,48 +28,50 @@
-
-
- <% if can?(:update, template) && !template.archived_at? && template.account_id == current_account.id %>
-
-
- <%= svg_icon('folder_share', class: 'w-4 h-4') %>
-
-
- <% end %>
- <% if template.archived_at? && can?(:destroy, template) %>
-
- <%= button_to template_restore_index_path(template), class: 'btn btn-xs hover:btn-outline bg-base-200 btn-circle' do %>
- <%= svg_icon('rotate', class: 'w-4 h-4 enabled') %>
- <%= svg_icon('loader', class: 'w-4 h-4 animate-spin disabled') %>
- <% end %>
-
- <% elsif !template.archived_at? && can?(:update, template) %>
-
-
- <%= svg_icon('pencil', class: 'w-4 h-4') %>
-
-
- <% end %>
- <% if can?(:create, template) %>
-
-
- <%= svg_icon('copy', class: 'w-4 h-4') %>
-
-
- <% end %>
- <% if can?(:destroy, template) %>
-
- <%= button_to template_path(template), data: template.archived_at? ? { turbo_confirm: t('template_deletion_is_irreversible_and_will_permanently_remove_all_associated_signed_documents_with_it_are_you_sure_') } : {}, params: { permanently: template.archived_at? }.compact_blank, method: :delete, class: 'btn btn-xs hover:btn-outline bg-base-200 btn-circle', aria: { label: template.archived_at? ? t('delete') : t('archive') } do %>
- <%= svg_icon(template.archived_at? ? 'trash' : 'archive', class: 'w-4 h-4 enabled') %>
- <%= svg_icon('loader', class: 'w-4 h-4 animate-spin disabled') %>
- <% end %>
-
- <% end %>
+ <% unless turbo_native_app? %>
+
+
+ <% if can?(:update, template) && !template.archived_at? && template.account_id == current_account.id %>
+
+
+ <%= svg_icon('folder_share', class: 'w-4 h-4') %>
+
+
+ <% end %>
+ <% if template.archived_at? && can?(:destroy, template) %>
+
+ <%= button_to template_restore_index_path(template), class: 'btn btn-xs hover:btn-outline bg-base-200 btn-circle' do %>
+ <%= svg_icon('rotate', class: 'w-4 h-4 enabled') %>
+ <%= svg_icon('loader', class: 'w-4 h-4 animate-spin disabled') %>
+ <% end %>
+
+ <% elsif !template.archived_at? && can?(:update, template) %>
+
+
+ <%= svg_icon('pencil', class: 'w-4 h-4') %>
+
+
+ <% end %>
+ <% if can?(:create, template) %>
+
+
+ <%= svg_icon('copy', class: 'w-4 h-4') %>
+
+
+ <% end %>
+ <% if can?(:destroy, template) %>
+
+ <%= button_to template_path(template), data: template.archived_at? ? { turbo_confirm: t('template_deletion_is_irreversible_and_will_permanently_remove_all_associated_signed_documents_with_it_are_you_sure_') } : {}, params: { permanently: template.archived_at? }.compact_blank, method: :delete, class: 'btn btn-xs hover:btn-outline bg-base-200 btn-circle', aria: { label: template.archived_at? ? t('delete') : t('archive') } do %>
+ <%= svg_icon(template.archived_at? ? 'trash' : 'archive', class: 'w-4 h-4 enabled') %>
+ <%= svg_icon('loader', class: 'w-4 h-4 animate-spin disabled') %>
+ <% end %>
+
+ <% end %>
+
-
+ <% end %>
<% if !template.archived_at? && (can?(:create, Submission) || can?(:update, template) || can?(:create, template) || can?(:destroy, template)) %>
-
+
@@ -77,40 +79,40 @@
<% if can?(:create, Submission) %>
- <%= link_to new_template_submission_path(template), class: 'flex items-center gap-2 px-4 py-2', data: { turbo_frame: :modal, native_modal: :medium } do %>
+
<%= svg_icon('send', class: 'w-5 h-5 flex-shrink-0') %>
<%= t('send') %>
- <% end %>
+
<% end %>
<% if can?(:update, template) %>
- <%= link_to edit_template_path(template), class: 'flex items-center gap-2 px-4 py-2', data: { native_title: template.name } do %>
+
<%= svg_icon('pencil', class: 'w-5 h-5 flex-shrink-0') %>
<%= t('edit') %>
- <% end %>
+
<% end %>
<% if can?(:update, template) && template.account_id == current_account.id %>
- <%= link_to edit_template_folder_path(template.id), class: 'flex items-center gap-2 px-4 py-2', data: { turbo_frame: :modal, native_title: t('move_into_folder'), native_modal: :medium } do %>
+
<%= svg_icon('folder_share', class: 'w-5 h-5 flex-shrink-0') %>
<%= t('move') %>
- <% end %>
+
<% end %>
<% if can?(:create, template) %>
- <%= link_to new_template_clone_path(template), class: 'flex items-center gap-2 px-4 py-2', data: { turbo_frame: :modal, native_title: t('clone_template'), native_modal: :medium } do %>
+
<%= svg_icon('copy', class: 'w-5 h-5 flex-shrink-0') %>
<%= t('clone') %>
- <% end %>
+
<% end %>
diff --git a/app/views/templates/_title.html.erb b/app/views/templates/_title.html.erb
index b8e328c5e..5b4963126 100644
--- a/app/views/templates/_title.html.erb
+++ b/app/views/templates/_title.html.erb
@@ -94,7 +94,7 @@
<% end %>
<% if !template.archived_at? && can?(:update, template) %>
-
+