add resubmit from dashboard

This commit is contained in:
Pete Matsyburka
2025-01-25 19:37:15 +02:00
parent 44e848a1f0
commit 37de5e0d0d
4 changed files with 66 additions and 1 deletions
+5
View File
@@ -190,6 +190,11 @@
</a>
</div>
<% end %>
<% if signed_in? && submitter && submitter.completed_at? && submitter.email == current_user.email && submitter.completed_at > 1.month.ago && can?(:update, @submission) %>
<div class="mt-2 mb-1">
<%= button_to t('resubmit'), submitters_resubmit_path(submitter), method: :put, class: 'btn btn-sm btn-primary w-full', form: { target: '_blank' }, data: { turbo: false } %>
</div>
<% end %>
</div>
</div>
<div class="px-1.5 mb-4">