add complete button to signing form header

This commit is contained in:
Alex Turchyn
2026-05-07 16:49:03 +03:00
committed by Pete Matsyburka
parent a7891f89f8
commit 04129ded90
4 changed files with 132 additions and 27 deletions
+2
View File
@@ -22,6 +22,7 @@
<%= @submitter.submission.name || @submitter.submission.template.name %>
</h1>
<div class="flex items-center space-x-2" style="margin-left: 20px; flex-shrink: 0">
<span id="complete_button_container"></span>
<% if @form_configs[:with_delegate] %>
<modal-button data-target="<%= delegate_modal_id = SecureRandom.uuid %>">
<button id="delegate_button" type="button" class="btn btn-sm !px-5"><%= t(:delegate) %></button>
@@ -65,6 +66,7 @@
</div>
</header>
<scroll-buttons inert class="fixed right-5 top-2 hidden md:flex gap-1 z-50 ease-in-out opacity-0 -translate-y-10">
<span id="complete_button_container_mobile"></span>
<% if @form_configs[:with_delegate] %>
<modal-button data-target="<%= delegate_modal_id %>">
<button id="delegate_button_mobile" type="button" class="btn btn-sm px-0" aria-label="<%= t(:delegate) %>">