<%= content_for :header_nav do %> <%= render "imports/nav", import: @import %> <% end %> <%= content_for :previous_path, import_upload_path(@import) %> <% if @import.suggested_template.present? && params[:template_hint] == "true" %>

<%= icon "sparkles" %> Template configuration found

We found a configuration from a previous import for this account. Would you like to apply it to this import?

<%= render DS::Link.new(text: "Manually configure", href: import_configuration_path(@import), variant: "outline") %> <%= render DS::Button.new(text: "Apply template", href: apply_template_import_path(@import), method: :put, data: { turbo_frame: :_top }) %>
<% else %>

<%= t(".title") %>

<%= t(".description") %>

<%= render partial: permitted_import_configuration_path(@import), locals: { import: @import } %> <%= render "imports/table", headers: @import.csv_headers, rows: @import.csv_sample, caption: "Sample data from your uploaded CSV" %>
<% end %>