diff --git a/app/controllers/concerns/iframe_authentication.rb b/app/controllers/concerns/iframe_authentication.rb index 0683b361..ea767ec1 100644 --- a/app/controllers/concerns/iframe_authentication.rb +++ b/app/controllers/concerns/iframe_authentication.rb @@ -31,7 +31,9 @@ module IframeAuthentication return end - Rails.logger.error "#{self.class.name}: Authentication failed" + Rails.logger.error "#{self.class.name}: Authentication failed - no token found. " \ + "Params: #{params.keys}, Session has token: #{session[:auth_token].present?}, " \ + "Referer: #{request.referer}" render json: { error: 'Authentication required' }, status: :unauthorized end end diff --git a/app/javascript/elements/scroll_buttons.js b/app/javascript/elements/scroll_buttons.js index 6525adf9..567829f7 100644 --- a/app/javascript/elements/scroll_buttons.js +++ b/app/javascript/elements/scroll_buttons.js @@ -36,6 +36,7 @@ export default class extends HTMLElement { } isHeaderNotVisible () { + if (!this.header) return true const rect = this.header.getBoundingClientRect() return rect.bottom <= 0 || rect.top >= window.innerHeight } diff --git a/app/javascript/submission_form/completed.vue b/app/javascript/submission_form/completed.vue index 43228f63..c33fd570 100644 --- a/app/javascript/submission_form/completed.vue +++ b/app/javascript/submission_form/completed.vue @@ -33,36 +33,6 @@ {{ completedButton.title || 'Back to Website' }} - - -
- {{ t('powered_by') }} - DocuSeal - {{ t('open_source_documents_software') }} -
diff --git a/app/views/submissions/show.html.erb b/app/views/submissions/show.html.erb index 122521b6..308dc3c2 100644 --- a/app/views/submissions/show.html.erb +++ b/app/views/submissions/show.html.erb @@ -4,10 +4,7 @@ <% with_signature_id, is_combined_enabled = AccountConfig.where(account_id: @submission.account_id, key: [AccountConfig::COMBINE_PDF_RESULT_KEY, AccountConfig::WITH_SIGNATURE_ID], value: true).then { |configs| [configs.any? { |e| e.key == AccountConfig::WITH_SIGNATURE_ID }, configs.any? { |e| e.key == AccountConfig::COMBINE_PDF_RESULT_KEY }] } %>
- - <%= render 'submissions/logo' %> - <% (@submission.name || @submission.template.name).split(/(_)/).each do |item| %><%= item %><% end %> - +
<% last_submitter = @submission.submitters.to_a.select(&:completed_at?).max_by(&:completed_at) %> <% is_all_completed = @submission.submitters.to_a.all?(&:completed_at?) %> @@ -230,11 +227,6 @@
<% end %> - <% if signed_in? && submitter && submitter.completed_at? && submitter.email == current_user.email && submitter.completed_at > 1.month.ago && can?(:update, @submission) %> -
- <%= button_to t('resubmit'), submitters_resubmit_path(submitter), method: :put, class: 'btn btn-sm btn-primary w-full', form: { target: '_blank' }, data: { turbo: false } %> -
- <% end %> <% if signed_in? && submitter && submitter.completed_at? && !submitter.declined_at? && !submitter.changes_requested_at? && current_user == @submission.template.author %>
<%= link_to 'Request Changes', request_changes_submitter_path(submitter.slug), diff --git a/app/views/submit_form/_docuseal_logo.html.erb b/app/views/submit_form/_docuseal_logo.html.erb index 3f3ac923..e69de29b 100644 --- a/app/views/submit_form/_docuseal_logo.html.erb +++ b/app/views/submit_form/_docuseal_logo.html.erb @@ -1,3 +0,0 @@ - - <%= Docuseal.product_name %> - diff --git a/app/views/submit_form/completed.html.erb b/app/views/submit_form/completed.html.erb index 8fde2c79..be5ee7cf 100644 --- a/app/views/submit_form/completed.html.erb +++ b/app/views/submit_form/completed.html.erb @@ -16,36 +16,6 @@
- <% if (Docuseal.multitenant? || Accounts.can_send_emails?(@submitter.account)) && @submitter.email.present? %> - - <%= button_to button_title(title: t('send_copy_to_email'), disabled_with: t('sending'), icon: svg_icon('mail_forward', class: 'w-6 h-6')), send_submission_email_index_path, params: { submitter_slug: @submitter.slug }, class: 'white-button w-full' %> - - <% if Templates.filter_undefined_submitters(@submitter.submission.template_submitters).size != 1 %> -
<%= t('or') %>
- <% else %> -
- <% end %> - <% end %> - <% if @submitter.completed_at > 30.minutes.ago || (current_user && current_user.account.submitters.exists?(id: @submitter.id)) %> - - - <%= svg_icon('download', class: 'w-6 h-6') %> - <%= t('download_documents') %> - - - - <% end %>
- <% undefined_submitters = Templates.filter_undefined_submitters(@submitter.submission.template_submitters) %> - <% if undefined_submitters.size == 1 && undefined_submitters.first['uuid'] == @submitter.uuid && %w[api embed].exclude?(@submitter.submission.source) && @submitter.account.account_configs.find_or_initialize_by(key: AccountConfig::ALLOW_TO_RESUBMIT).value != false && @submitter.template && !@submitter.template.archived_at? %> -
<%= t('or') %>
- - <%= button_to button_title(title: t('resubmit'), disabled_with: t('resubmit'), icon: svg_icon('reload', class: 'w-6 h-6')), resubmit_form_path, params: { resubmit: @submitter.slug }, method: :put, class: 'white-button w-full' %> - - <% end %>
-<%= render 'shared/attribution', link_path: '/start', account: @submitter.account %> diff --git a/app/views/submit_form/show.html.erb b/app/views/submit_form/show.html.erb index 8ec61a66..c9e7d340 100644 --- a/app/views/submit_form/show.html.erb +++ b/app/views/submit_form/show.html.erb @@ -14,44 +14,7 @@ <%# flex block w-full sticky top-0 z-50 space-x-2 items-center bg-yellow-100 p-2 border-y border-yellow-200 transition-transform duration-300 %> <%= local_assigns[:banner_html] || capture do %> <%= render('submit_form/banner') %> -
-
- <%= @submitter.submission.name || @submitter.submission.template.name %> -
-
- <% if @form_configs[:with_decline] %> - <% decline_modal_checkbox_uuid = SecureRandom.uuid %> -
- <%= render 'shared/html_modal', title: t(:decline), btn_text: t(:decline), btn_class: 'btn btn-sm !px-5', button_id: 'decline_button', uuid: decline_modal_checkbox_uuid do %> - <%= render 'submit_form/decline_form', submitter: @submitter %> - <% end %> -
- <% end %> - <% if @form_configs[:with_partial_download] %> - - - <%= svg_icon('download', class: 'w-6 h-6 inline md:hidden') %> - - - - - <% end %> -
-