diff --git a/app/javascript/application.scss b/app/javascript/application.scss index fd02cecf..1050df66 100644 --- a/app/javascript/application.scss +++ b/app/javascript/application.scss @@ -114,6 +114,13 @@ button[disabled] .enabled, button.btn-disabled .enabled { bottom: auto; } +@media (hover: none), (pointer: coarse) { + .tooltip-no-touch:before, + .tooltip-no-touch:after { + display: none; + } +} + .autocomplete { background: white; z-index: 1000; diff --git a/app/views/accounts/show.html.erb b/app/views/accounts/show.html.erb index ba9a9c49..d6d2fec1 100644 --- a/app/views/accounts/show.html.erb +++ b/app/views/accounts/show.html.erb @@ -147,7 +147,7 @@ <%= f.check_box :value, class: 'toggle', checked: account_config.value != false %> <% else %> - " data-turbo="false" data-tip="<%= I18n.t('unlock_with_docuseal_pro') %>" data-on="change" class="flex tooltip"> + " data-turbo="false" data-tip="<%= I18n.t('unlock_with_docuseal_pro') %>" data-on="change" class="flex tooltip tooltip-no-touch"> <%= f.check_box :value, class: 'toggle pointer-events-none', checked: account_config.value != false, disabled: true %> <% end %> @@ -170,7 +170,7 @@ <%= f.check_box :value, class: 'toggle', checked: account_config.value == true %> <% else %> - " data-turbo="false" data-tip="<%= I18n.t('unlock_with_docuseal_pro') %>" class="flex tooltip"> + " data-turbo="false" data-tip="<%= I18n.t('unlock_with_docuseal_pro') %>" class="flex tooltip tooltip-no-touch"> <%= f.check_box :value, class: 'toggle pointer-events-none', checked: account_config.value == true, disabled: true %> <% end %> diff --git a/app/views/dashboard/_toggle_view.html.erb b/app/views/dashboard/_toggle_view.html.erb index 63cdf0c8..54836506 100644 --- a/app/views/dashboard/_toggle_view.html.erb +++ b/app/views/dashboard/_toggle_view.html.erb @@ -1,10 +1,10 @@
- + - + diff --git a/app/views/shared/_github.html.erb b/app/views/shared/_github.html.erb index a27f7f96..be9d7c0b 100644 --- a/app/views/shared/_github.html.erb +++ b/app/views/shared/_github.html.erb @@ -1,4 +1,4 @@ - + <%= svg_icon('start', class: 'h-3 w-3') %> 18k diff --git a/app/views/shared/_settings_nav.html.erb b/app/views/shared/_settings_nav.html.erb index 217854da..4dde21bf 100644 --- a/app/views/shared/_settings_nav.html.erb +++ b/app/views/shared/_settings_nav.html.erb @@ -119,18 +119,18 @@ <%= t('need_help_ask_a_question_') %>
-
+ -
+ <%= capture do %> -
+
<%= svg_icon('message', class: 'w-8 h-8') %> diff --git a/app/views/submissions/_send_sms_button.html.erb b/app/views/submissions/_send_sms_button.html.erb index b8df27cf..33862cf2 100644 --- a/app/views/submissions/_send_sms_button.html.erb +++ b/app/views/submissions/_send_sms_button.html.erb @@ -1,5 +1,5 @@
-
+
<%= link_to submitter.sent_at? ? t('re_send_sms') : t('send_sms'), Docuseal.multitenant? ? console_redirect_index_path(redir: "#{Docuseal::CONSOLE_URL}/plans") : "#{Docuseal::CLOUD_URL}/sign_up?#{{ redir: "#{Docuseal::CONSOLE_URL}/on_premises" }.to_query}", class: 'btn btn-sm btn-primary text-gray-400 w-full' %>
diff --git a/app/views/submissions/show.html.erb b/app/views/submissions/show.html.erb index eb385fa1..89342cee 100644 --- a/app/views/submissions/show.html.erb +++ b/app/views/submissions/show.html.erb @@ -180,7 +180,7 @@
<% if signed_in? && can?(:update, @submission) && submitter && !submitter.completed_at? && !@submission.completed_at? && !submitter.declined_at? && !@submission.archived_at? && !@submission.template&.archived_at? && !@submission.expired? && !submitter.start_form_submission_events.any? %> - + <%= link_to edit_submitter_path(submitter), class: 'shrink-0 inline md:hidden md:group-hover:inline', data: { turbo_frame: 'modal' } do %> <%= svg_icon('pencil', class: 'w-5 h-5') %> <% end %> diff --git a/app/views/submissions_filters/_applied_filters.html.erb b/app/views/submissions_filters/_applied_filters.html.erb index 5924c042..773b111e 100644 --- a/app/views/submissions_filters/_applied_filters.html.erb +++ b/app/views/submissions_filters/_applied_filters.html.erb @@ -11,7 +11,7 @@
<% end %> <% if params[:folder].present? %> -
+
<%= link_to submissions_filter_path('folder', query_params.merge(path: url_for, with_remove: true)), data: { turbo_frame: 'modal' }, class: 'flex items-center space-x-1 flex-1 min-w-0 pr-1' do %> <%= svg_icon('folder', class: 'w-5 h-5 shrink-0') %> <%= params[:folder] %> @@ -22,7 +22,7 @@
<% end %> <% if params[:author].present? %> -
+
<%= link_to submissions_filter_path('author', query_params.merge(path: url_for, with_remove: true)), data: { turbo_frame: 'modal' }, class: 'flex items-center space-x-1 flex-1 min-w-0 pr-1' do %> <%= svg_icon('user', class: 'w-5 h-5 shrink-0') %> <%= current_account.users.accessible_by(current_ability).where(account: current_account).find_by(email: params[:author])&.full_name || 'NA' %> @@ -33,7 +33,7 @@
<% end %> <% if query_params[:completed_at_from].present? || query_params[:completed_at_to].present? %> -
+
<%= link_to submissions_filter_path('completed_at', query_params.merge(path: url_for, with_remove: true)), data: { turbo_frame: 'modal' }, class: 'flex items-center space-x-1 flex-1 min-w-0 pr-1' do %> <%= svg_icon('calendar_check', class: 'w-5 h-5 shrink-0') %> @@ -52,7 +52,7 @@
<% end %> <% if query_params[:created_at_from].present? || query_params[:created_at_to].present? %> -
+
<%= link_to submissions_filter_path('created_at', query_params.merge(path: url_for, with_remove: true)), data: { turbo_frame: 'modal' }, class: 'flex items-center space-x-1 flex-1 min-w-0 pr-1' do %> <%= svg_icon('calendar', class: 'w-5 h-5 shrink-0') %> diff --git a/app/views/templates/_submission.html.erb b/app/views/templates/_submission.html.erb index 73fe8e75..829dd3ab 100644 --- a/app/views/templates/_submission.html.erb +++ b/app/views/templates/_submission.html.erb @@ -52,7 +52,7 @@ <%= submitter.name || submitter.email || submitter.phone %> <% 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 %> <%= svg_icon('pencil', class: 'w-5 h-5') %> <% end %> @@ -102,12 +102,12 @@
<% if !submission.archived_at? && !template&.archived_at? && can?(:destroy, submission) %> - + <%= button_to button_title(title: nil, disabled_with: nil, icon: svg_icon('archive', class: 'w-6 h-6'), icon_disabled: svg_icon('loader', class: 'w-6 h-6 animate-spin')), submission_path(submission), class: 'btn btn-outline btn-sm w-full md:w-fit', form: { class: 'flex' }, title: t('archive'), method: :delete %> <% end %> <% if local_assigns[:archived] && can?(:destroy, submission) %> - + <%= button_to button_title(title: nil, disabled_with: nil, icon: svg_icon('trash', class: 'w-6 h-6'), icon_disabled: svg_icon('loader', class: 'w-6 h-6 animate-spin')), submission_path(submission, permanently: true), class: 'btn btn-outline btn-sm w-full md:w-fit', form: { class: 'flex' }, title: t('remove'), method: :delete, data: { turbo_confirm: t('submission_deletion_is_irreversible_and_will_permanently_remove_all_associated_signed_documents_with_it_are_you_sure_') } %> <% end %> @@ -117,7 +117,7 @@
<% if is_submission_completed %> <% latest_submitter = submitters.select(&:completed_at?).max_by(&:completed_at) %> - + <%= t(latest_submitter.status) %> @@ -134,7 +134,7 @@
<% if !is_submission_completed && !submission.expired? %> - + <%= t(submitter.status) %> @@ -145,7 +145,7 @@ <%= submitter.name || submitter.email || submitter.phone %> <% 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 %> <%= svg_icon('pencil', class: 'w-5 h-5') %> <% end %> @@ -209,12 +209,12 @@
<% if !submission.archived_at? && !template&.archived_at? %> - + <%= button_to button_title(title: nil, disabled_with: nil, icon: svg_icon('archive', class: 'w-6 h-6'), icon_disabled: svg_icon('loader', class: 'w-6 h-6 animate-spin')), submission_path(submission), class: 'btn btn-outline btn-sm w-full md:w-fit', form: { class: 'flex' }, title: t('archive'), method: :delete %> <% end %> <% if local_assigns[:archived] && can?(:destroy, submission) %> - + <%= button_to button_title(title: nil, disabled_with: nil, icon: svg_icon('trash', class: 'w-6 h-6'), icon_disabled: svg_icon('loader', class: 'w-6 h-6 animate-spin')), submission_path(submission, permanently: true), class: 'btn btn-outline btn-sm w-full md:w-fit', form: { class: 'flex' }, title: t('remove'), method: :delete, data: { turbo_confirm: t('submission_deletion_is_irreversible_and_will_permanently_remove_all_associated_signed_documents_with_it_are_you_sure_') } %> <% end %> diff --git a/app/views/templates/_template.html.erb b/app/views/templates/_template.html.erb index 5e705441..80f93c5c 100644 --- a/app/views/templates/_template.html.erb +++ b/app/views/templates/_template.html.erb @@ -31,35 +31,35 @@