<%= form_for '', url: template_submissions_path(template), html: { class: 'space-y-4', autocomplete: 'off' }, data: { turbo_frame: :_top } do |f| %>
<% template.submitters.each_with_index do |item, index| %> <% if template.submitters.size > 1 %> <% end %> <%= tag.input type: 'text', name: 'submission[1][submitters][][name]', autocomplete: 'off', class: 'input input-sm input-bordered w-full', placeholder: 'Name', required: index.zero?, value: params[:selfsign] && index.zero? ? current_user.full_name : '', dir: 'auto' %>
<% end %>
<% if params[:selfsign].blank? %> <%= svg_icon('user_plus', class: 'w-4 h-4 stroke-2') %> Add New <% end %>
<%= render('submitters_order', f:, template:) if Accounts.can_send_emails?(current_account) %> <%= render 'send_email', f:, template: %> <%= render 'send_sms', f: %>
<%= f.button button_title(title: 'Add Recipients'), class: 'base-button' %>
<% end %>