2024-05-17 09:09:32 -04:00
|
|
|
<%= content_for :return_to_path, return_to_path(params, imports_path) %>
|
|
|
|
|
2024-05-30 22:06:32 -04:00
|
|
|
<div class="mx-auto max-w-[550px] w-full py-24 space-y-4">
|
2024-05-17 09:09:32 -04:00
|
|
|
<h1 class="sr-only"><%= t(".load_title") %></h1>
|
|
|
|
|
|
|
|
<div class="text-center space-y-2">
|
|
|
|
<h2 class="text-3xl text-gray-900 font-medium"><%= t(".subtitle") %></h2>
|
|
|
|
<p class="text-gray-500 text-sm"><%= t(".description") %></p>
|
|
|
|
</div>
|
|
|
|
|
2024-07-16 15:23:45 +02:00
|
|
|
<div data-controller="tabs" data-tabs-active-class="bg-white" data-tabs-default-tab-value="csv-upload-tab">
|
|
|
|
<div class="flex justify-center mb-4">
|
|
|
|
<div class="bg-gray-50 rounded-lg inline-flex p-1 space-x-2 text-sm text-gray-900 font-medium">
|
|
|
|
<button data-id="csv-upload-tab" class="p-2 rounded-lg" data-tabs-target="btn" data-action="click->tabs#select">Upload CSV</button>
|
|
|
|
<button data-id="csv-paste-tab" class="p-2 rounded-lg" data-tabs-target="btn" data-action="click->tabs#select">Copy & Paste</button>
|
2024-05-17 09:09:32 -04:00
|
|
|
</div>
|
|
|
|
</div>
|
2024-07-16 15:23:45 +02:00
|
|
|
<div data-tabs-target="tab" id="csv-upload-tab">
|
|
|
|
<%= render partial: "imports/csv_upload", locals: { import: @import } %>
|
|
|
|
</div>
|
|
|
|
<div data-tabs-target="tab" id="csv-paste-tab" class="hidden">
|
|
|
|
<%= render partial: "imports/csv_paste", locals: { import: @import } %>
|
|
|
|
</div>
|
2024-05-17 09:09:32 -04:00
|
|
|
</div>
|
|
|
|
</div>
|