|
|
|
|
@ -17,6 +17,7 @@
|
|
|
|
|
<% end %>
|
|
|
|
|
<% if last_submitter = @submission.submitters.to_a.select(&:completed_at?).max_by(&:completed_at) %>
|
|
|
|
|
<% is_all_completed = @submission.submitters.to_a.all?(&:completed_at?) %>
|
|
|
|
|
<% if is_all_completed || !is_combined_enabled %>
|
|
|
|
|
<div class="join relative">
|
|
|
|
|
<download-button data-src="<%= submitter_download_index_path(last_submitter.slug, { sig: params[:sig], combined: is_combined_enabled }.compact) %>" class="base-button <%= '!rounded-r-none !pr-2' if is_all_completed && !is_combined_enabled %>">
|
|
|
|
|
<span class="flex items-center justify-center space-x-2" data-target="download-button.defaultButton">
|
|
|
|
|
@ -52,6 +53,7 @@
|
|
|
|
|
</div>
|
|
|
|
|
<% end %>
|
|
|
|
|
</div>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% elsif @submission.submitters.to_a.size == 1 && !@submission.expired? && !@submission.submitters.to_a.first.declined_at? %>
|
|
|
|
|
<%= render 'shared/clipboard_copy', text: submit_form_url(slug: @submission.submitters.to_a.first.slug), class: 'base-button', icon_class: 'w-6 h-6 text-white', copy_title: t('copy_share_link'), copied_title: t('copied_to_clipboard') %>
|
|
|
|
|
<% end %>
|
|
|
|
|
|