<%= form_for @template, url: template_preferences_path(@template), method: :post, html: { autocomplete: 'off', class: 'mt-4 pt-4 border-t border-base-300' }, data: { close_on_submit: false } do |f| %>
          <% link_form_fields = @template.preferences.fetch('link_form_fields', ['email']) %>
          
          
            <% %w[name email phone].each do |field| %>
              <%= label_tag "link_form_fields_#{field}", t(field), class: 'relative flex w-full md:w-1/3 items-center h-14 border-base-300 py-3.5 border rounded-xl' do %>
                <%= check_box_tag 'template[preferences][link_form_fields][]', field, link_form_fields.include?(field), class: 'absolute !animate-none checkbox left-3', id: "link_form_fields_#{field}" %>
                <%= t(field) %>
              <% end %>
            <% end %>
          
        <% end %>
        <% if multiple_submitters && enough_defined_submitters %>
          
        <% end %>
        <% if Docuseal.multitenant? || Accounts.can_send_emails?(current_account) %>
          <%= form_for @template, url: template_preferences_path(@template), method: :post, html: { autocomplete: 'off', class: 'mt-4' }, data: { close_on_submit: false } do |f| %>
            <%= f.fields_for :preferences, Struct.new(:shared_link_2fa).new(@template.preferences['shared_link_2fa'] == true) do |ff| %>
              
            <% end %>
          <% end %>
        <% end %>