+
- <%= svg_icon('download', class: 'w-5 h-5 stroke-2') %>
+ <%= svg_icon('download', class: 'w-5 h-5 max-sm:w-4 max-sm:h-4 stroke-2') %>
<%= t('download') %>
- <%= svg_icon('loader', class: 'w-5 h-5 animate-spin') %>
+ <%= svg_icon('loader', class: 'w-5 h-5 max-sm:w-4 max-sm:h-4 animate-spin') %>
<%= t('download')[..-2] %>...
@@ -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 btn-neutral text-white md:w-36 flex z-[1]', icon_class: 'w-6 h-6 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:normal-case btn-neutral text-white md:w-36 flex z-[1]', icon_class: 'w-6 h-6 max-sm:w-5 max-sm:h-5 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 %>
@@ -149,7 +149,7 @@
<% if !submitter.completed_at? && !submission.completed_at? && can?(:update, submission) && !submitter.start_form_submission_events.any? && !submission.archived_at? && !submission.expired? && !submitter.declined_at? %>
- <%= link_to edit_submitter_path(submitter), class: 'shrink-0', data: { turbo_frame: 'modal' } do %>
+ <%= link_to edit_submitter_path(submitter), class: 'shrink-0', data: { turbo_frame: 'modal', native_modal: 'medium' } do %>
<%= svg_icon('pencil', class: 'w-5 h-5') %>
<% end %>
@@ -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 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 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') %>
<% end %>
<% end %>
@@ -192,13 +192,13 @@
<% latest_submitter = submitters.select(&:completed_at?).max_by(&:completed_at) %>
-
+
- <%= svg_icon('download', class: 'w-5 h-5 stroke-2') %>
+ <%= svg_icon('download', class: 'w-5 h-5 max-sm:w-4 max-sm:h-4 stroke-2') %>
<%= t('download') %>
- <%= svg_icon('loader', class: 'w-5 h-5 animate-spin') %>
+ <%= svg_icon('loader', class: 'w-5 h-5 max-sm:w-4 max-sm:h-4 animate-spin') %>
<%= t('download')[..-2] %>...
@@ -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 b2f3c2754..936de7e85 100644
--- a/app/views/templates/_template.html.erb
+++ b/app/views/templates/_template.html.erb
@@ -32,7 +32,7 @@
<% if can?(:update, template) && !template.archived_at? && template.account_id == current_account.id %>
-
+
<%= svg_icon('folder_share', class: 'w-4 h-4') %>
@@ -53,7 +53,7 @@
<% end %>
<% if can?(:create, template) %>
-
+
<%= svg_icon('copy', class: 'w-4 h-4') %>
diff --git a/app/views/templates/_title.html.erb b/app/views/templates/_title.html.erb
index ad6bf0dd9..16f4bdf49 100644
--- a/app/views/templates/_title.html.erb
+++ b/app/views/templates/_title.html.erb
@@ -39,7 +39,7 @@
<% if can?(:update, template) %>
-
+
<%= svg_icon('pencil_share', class: 'w-5 h-5') %>
@@ -71,7 +71,7 @@
<% end %>
- <%= link_to template_share_link_path(template), class: 'btn btn-xs md:btn-sm whitespace-nowrap btn-neutral text-white px-2', data: { turbo_frame: :modal } do %>
+ <%= link_to template_share_link_path(template), class: 'btn btn-xs md:btn-sm whitespace-nowrap btn-neutral text-white px-2', data: { turbo_frame: :modal, native_modal: :medium } do %>
<%= svg_icon('link', class: 'w-4 h-4 md:w-6 md:h-6') %>
<%= t('link') %>
@@ -85,11 +85,11 @@
<% unless template.archived_at? %>
<% if can?(:create, Submission) %>
-
+
<% end %>
-
+
<% end %>
<% if !template.archived_at? && can?(:update, template) %>
@@ -102,7 +102,7 @@
<% end %>
<% if can?(:create, current_account.templates.new(author: current_user)) %>
-
+
<% end %>
<% if template.archived_at? || (!can?(:update, template) && can?(:read, template)) %>
@@ -112,12 +112,12 @@
<% end %>
<% if local_assigns[:with_export] %>
-
+
<% end %>
<% if !template.archived_at? && can?(:update, template) && @template.account_id == current_account.id %>
-
+
<% end %>
<% if can?(:destroy, template) %>
@@ -145,7 +145,7 @@
<% end %>
<% if can?(:create, current_account.templates.new(author: current_user)) %>
- <%= link_to new_template_clone_path(template), class: 'btn btn-outline btn-sm w-full', data: { turbo_frame: :modal } do %>
+ <%= link_to new_template_clone_path(template), class: 'btn btn-outline btn-sm w-full', data: { turbo_frame: :modal, native_modal: :medium } do %>
<%= svg_icon('copy', class: 'w-6 h-6') %>
<%= t('clone') %>
diff --git a/app/views/templates/show.html.erb b/app/views/templates/show.html.erb
index 62c875da4..c7faec664 100644
--- a/app/views/templates/show.html.erb
+++ b/app/views/templates/show.html.erb
@@ -8,7 +8,7 @@
<% if !@template.archived_at? && can?(:create, Submission) %>
-
+
<% end %>
<% end %>
@@ -24,13 +24,13 @@
<% if !turbo_native_app? && (params[:q].present? || params[:status].present? || filter_params.present? || @pagy.pages > 1) %>
<%= render 'shared/search_input' %>
<% end %>
- <%= link_to new_template_submissions_export_path(@template, params.permit(:q, *Submissions::Filter::ALLOWED_PARAMS)), class: 'hidden md:flex btn btn-ghost text-base', data: { turbo_frame: 'modal' } do %>
+ <%= link_to new_template_submissions_export_path(@template, params.permit(:q, *Submissions::Filter::ALLOWED_PARAMS)), class: 'hidden md:flex btn btn-ghost text-base', data: { turbo_frame: 'modal', native_modal: 'medium' } do %>
<%= svg_icon('download', class: 'w-6 h-6 stroke-2') %>
<%= t('export') %>
<% end %>
<% if !@template.archived_at? && can?(:create, Submission) %>
- <%= link_to new_template_submission_path(@template), id: 'add_recipients_button', class: 'white-button !border', data: { turbo_frame: 'modal' } do %>
+ <%= link_to new_template_submission_path(@template), id: 'add_recipients_button', class: 'white-button !border', data: { turbo_frame: 'modal', native_modal: ('medium' if @template.submitters.size < 3) } do %>
<%= svg_icon('plus', class: 'w-6 h-6 stroke-2') %>
<%= t('add_recipients_html') %>
<% end %>
@@ -104,7 +104,7 @@
<% if can?(:create, Submission) %>
- <%= link_to new_template_submission_path(@template, with_link: true), id: 'send_to_recipients_button', class: 'base-button', data: { turbo_frame: 'modal' } do %>
+ <%= link_to new_template_submission_path(@template, with_link: true), id: 'send_to_recipients_button', class: 'base-button', data: { turbo_frame: 'modal', native_modal: ('medium' if @template.submitters.size < 3) } do %>
<%= svg_icon('plus', class: 'w-6 h-6 stroke-2') %>
<%= t('send_to_recipients') %>
<% end %>
@@ -117,7 +117,7 @@
<% end %>
<% else %>
- <%= link_to new_template_submission_path(@template, selfsign: true), id: 'sign_yourself_button', class: 'white-button', data: { turbo_frame: 'modal' } do %>
+ <%= link_to new_template_submission_path(@template, selfsign: true), id: 'sign_yourself_button', class: 'white-button', data: { turbo_frame: 'modal', native_modal: ('medium' if @template.submitters.size < 3) } do %>
<%= svg_icon('writing', class: 'w-6 h-6') %>
<%= t('sign_it_yourself') %>
<% end %>
diff --git a/app/views/templates_archived_submissions/index.html.erb b/app/views/templates_archived_submissions/index.html.erb
index 4fd0efa90..2f5456b0f 100644
--- a/app/views/templates_archived_submissions/index.html.erb
+++ b/app/views/templates_archived_submissions/index.html.erb
@@ -30,7 +30,7 @@
<%= render 'submissions_filters/applied_filters', filter_params:, with_status: true, with_default_status: true %>
<% unless turbo_native_app? %>
- <%= link_to new_template_submissions_export_path(@template, archived: true), class: 'btn btn-ghost text-base h-10 min-h-10', data: { turbo_frame: 'modal' } do %>
+ <%= link_to new_template_submissions_export_path(@template, archived: true), class: 'btn btn-ghost text-base h-10 min-h-10', data: { turbo_frame: 'modal', native_modal: 'medium' } do %>
<%= svg_icon('download', class: 'w-6 h-6 stroke-2') %>
<%= t('export') %>
<% end %>
diff --git a/app/views/templates_dashboard/index.html.erb b/app/views/templates_dashboard/index.html.erb
index b50076b4a..65c121375 100644
--- a/app/views/templates_dashboard/index.html.erb
+++ b/app/views/templates_dashboard/index.html.erb
@@ -33,7 +33,7 @@
<%= render 'templates/upload_button' %>
- <%= link_to new_template_path, class: 'white-button !border gap-2', data: { turbo_frame: :modal } do %>
+ <%= link_to new_template_path, class: 'white-button !border gap-2', data: { turbo_frame: :modal, native_modal: :medium } do %>
<%= svg_icon('plus', class: 'w-6 h-6 stroke-2') %>
<%= t('create') %>
<% end %>
diff --git a/app/views/templates_preferences/show.html.erb b/app/views/templates_preferences/show.html.erb
index 8f5c435bd..a6b2f8f7f 100644
--- a/app/views/templates_preferences/show.html.erb
+++ b/app/views/templates_preferences/show.html.erb
@@ -5,7 +5,7 @@
<% options << [t('recipients'), 'recipients'] if show_recipients %>
<% options << [safe_join([tag.span('API', class: 'md:hidden'), tag.span(t('api_and_embedding'), class: 'hidden md:inline')]), 'api'] if show_api %>
<% if options.size > 1 %>
-
+
<% options.each_with_index do |(label, value), index| %>
diff --git a/app/views/templates_share_link/show.html.erb b/app/views/templates_share_link/show.html.erb
index 6dcb12332..fd45fef69 100644
--- a/app/views/templates_share_link/show.html.erb
+++ b/app/views/templates_share_link/show.html.erb
@@ -24,7 +24,9 @@
<% end %>