|
|
|
|
@ -80,14 +80,16 @@
|
|
|
|
|
</div>
|
|
|
|
|
<% elsif !submission.archived_at? && !template.archived_at? && !submission.expired? && !submitter.declined_at? %>
|
|
|
|
|
<% if current_user.email == submitter.email %>
|
|
|
|
|
<a href="<%= submit_form_url(slug: submitter.slug) %>" data-turbo="false" target="_blank" class="btn btn-sm btn-neutral btn-outline bg-white w-full md:w-36 flex z-[1]">
|
|
|
|
|
<span class="flex items-center justify-center space-x-1 md:space-x-2">
|
|
|
|
|
<% if t('sign_now').length < 12 %>
|
|
|
|
|
<%= svg_icon('writing_sign', class: 'w-4 h-4 stroke-2') %>
|
|
|
|
|
<% end %>
|
|
|
|
|
<span class="inline shrink-0"><%= t('sign_now') %></span>
|
|
|
|
|
</span>
|
|
|
|
|
</a>
|
|
|
|
|
<div class="flex-1 md:flex-none md:w-36 flex">
|
|
|
|
|
<a href="<%= submit_form_url(slug: submitter.slug) %>" data-turbo="false" target="_blank" class="btn btn-sm btn-neutral btn-outline bg-white w-full md:w-36 flex z-[1]">
|
|
|
|
|
<span class="flex items-center justify-center space-x-1 md:space-x-2">
|
|
|
|
|
<% if t('sign_now').length < 12 %>
|
|
|
|
|
<%= svg_icon('writing_sign', class: 'w-4 h-4 stroke-2') %>
|
|
|
|
|
<% end %>
|
|
|
|
|
<span class="inline shrink-0"><%= t('sign_now') %></span>
|
|
|
|
|
</span>
|
|
|
|
|
</a>
|
|
|
|
|
</div>
|
|
|
|
|
<% else %>
|
|
|
|
|
<div class="flex-1 md:flex-none">
|
|
|
|
|
<%= render 'shared/clipboard_copy', text: submit_form_url(slug: submitter.slug), 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('copy'), copied_title_md: t('copied') %>
|
|
|
|
|
|